|
|
|
Re: GLOBALS.php not created on installation [message #159912 is a reply to message #159911] |
Thu, 09 July 2009 05:22   |
The Witcher
 Messages: 675 Registered: May 2009 Location: USA
Karma: 3
|
Senior Member |
|
|
My knowledge is limited, so I am speaking from what little I know.
But It must installed to a publicly available directory.
Hosts manage that in a variety of ways and it is sometimes confusing (at least to me) which is why I seldom use certain hosts.
The way I do it in such situations is check to see if the installation file displays when I enter the domain name in my browser.
So if I upload the install file to the wrong or subdirectory it won't be available. So that is what I am asking.
I'm Guessing that the domain is collegeultimate.net and when When I ping that I get this.
ww.collegeultimate.net CNAME collegeultimate.net
collegeultimate.net A 207.210.105.96
PING collegeultimate.net (207.210.105.96) 56(84) bytes of data.
--- collegeultimate.net ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2000ms
So it appears to me that you have no files publicly availabe
"I'm a Witcher, I solve human problems; not always using a sword!"
[Updated on: Thu, 09 July 2009 05:22] Report message to a moderator
|
|
|
Re: GLOBALS.php not created on installation [message #159948 is a reply to message #159909] |
Sun, 12 July 2009 07:46   |
ANiko
 Messages: 30 Registered: May 2009
Karma: 0
|
Member |
|
|
When installing FUDforum 2.8.1 on a Linux Web server I had no errors (but I had a few warnings) during installation, but like you, after I deleted the install.php file and clicked on finish to log in as the admin user, I received the same error messages as you did. Sure enough, the symbolic links to GLOBALS.php were missing.
Cause: the Web host had disabled the PHP symlink() function.
[Updated on: Sun, 12 July 2009 09:34] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: GLOBALS.php not created on installation [message #160006 is a reply to message #160002] |
Tue, 14 July 2009 14:22   |
 |
naudefj
 Messages: 3775 Registered: December 2004
Karma: 28
|
Senior Member Administrator Core Developer |
|
|
Here is it (note the -a flag):
bash-3.2$ cvs diff -ua -r1.176 -r1.177 install.php
Index: install.php
===================================================================
RCS file: /forum21/install.php,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -a -r1.176 -r1.177
--- install.php 11 Jul 2009 11:15:56 -0000 1.176
+++ install.php 13 Jul 2009 17:20:17 -0000 1.177
@@ -621,8 +621,8 @@
} while (($pos = strpos($data, "\n//", $pos)) !== false);
}
-/* win32 does not have symlinks, so we use this crude emulation */
-if ($WINDOWS) {
+/* Older windows systems doesn't have symlinks and some hosts disable them - use crude emulation */
+if ($WINDOWS || !function_exists('symlink')) {
function fud_symlink($src, $dest)
{
if (!($fp = fopen($dest, 'wb'))) {
@@ -783,14 +783,14 @@
@unlink($SERVER_DATA_ROOT . 'scripts/GLOBALS.php');
/* make symlinks to GLOBALS.php */
- if (!$WINDOWS) {
+ if ($WINDOWS || !function_exists('symlink')) {
+ fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'GLOBALS.php');
+ fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'adm/GLOBALS.php');
+ fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_DATA_ROOT . 'scripts/GLOBALS.php');
+ } else {
symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'GLOBALS.php');
symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'adm/GLOBALS.php');
symlink($INCLUDE . 'GLOBALS.php', $SERVER_DATA_ROOT . 'scripts/GLOBALS.php');
- } else {
- fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'GLOBALS.php');
- fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'adm/GLOBALS.php');
- fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_DATA_ROOT . 'scripts/GLOBALS.php');
}
$url_parts = parse_url($WWW_ROOT);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|