GLOBALS.php not created on installation [message #159909] |
Thu, 09 July 2009 03:04 |
LADave
Messages: 19 Registered: July 2009 Location: Los Angeles
Karma: 0
|
Junior Member |
|
|
I'm having trouble installing FUDForum 2.8 and was hoping someone could lend me a hand. The installation runs through without any errors, the tables in MySQL are created and I get to the final step telling me to delete the 'install.php' file before continuing. When I click the 'Finished' button from there I get a page with these PHP errors:
Warning: main(./GLOBALS.php) [function.main]: failed to open stream: No such file or directory in /home/davidhun/public_html/collegeultimate_net/fud/index.php on line 12
Warning: main(./GLOBALS.php) [function.main]: failed to open stream: No such file or directory in /home/davidhun/public_html/collegeultimate_net/fud/index.php on line 12
Warning: main(./GLOBALS.php) [function.main]: failed to open stream: No such file or directory in /home/davidhun/public_html/collegeultimate_net/fud/index.php on line 12
Fatal error: main() [function.require]: Failed opening required './GLOBALS.php' (include_path='/usr/lib/php:.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/davidhun/public_html/collegeultimate_net/fud/index.php on line 12
From what I've read there is supposed to be a GLOBALS.php file in the 'include' folder but I don't see one there. Also, if there was a GLOBALS.php file there then I should have a symlink in the same folder as index.php as well as the 'adm' directory.
So, where do I start tracking the problem down? The error logs on the webserver aren't much help because they just show file not found errors. I searched the forums and couldn't find much information regarding the GLOBALS.php file simply never being created. I made sure to chmod everyting to 777 so I don't think that is the problem.
Any help would be appreciated.
Thanks,
Dave
|
|
|
|
|
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: 3772 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);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: GLOBALS.php not created on installation [message #160620 is a reply to message #160542] |
Tue, 06 October 2009 16:54 |
LADave
Messages: 19 Registered: July 2009 Location: Los Angeles
Karma: 0
|
Junior Member |
|
|
naudefj wrote on Mon, 28 September 2009 10:41 | Hi Dave,
The patch is part of FUDforum 3.0.0RC1. Please download it and let us know if it's working. If not, please PM or mail me the SSH access details.
Best regards.
Frank
|
FUDforum 3.0.0 RC1 installed perfectly. Having some trouble staying logged in as an admin but I'll hopefully be able to figure that one out. Thanks for all your help.
|
|
|