|
Re: Upgrade script does not work [message #981 is a reply to message #980] |
Mon, 18 March 2002 22:13 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
djupsjob wrote on Mon, 18 March 2002 4:00 PM | I ran the upgrade scripts for 1.x to 1.2.3 and got this:
Must be able to write to the UPDATE_STATUS Execute the following lines chmod 777 chmod -f 666 UPDATE_STATUS
I tried to execute the lines but the file UPDATE_STATUS is nowhere to be found. What's wrong?
|
Nothing wrong, simply you're doing the upgrade for the 1st time and the file is not there...
Your safe_mode settings do not allow the upgrade script to create the file I believe...
Could you tell me what are the permissions (including owner) of the errors directory?
FUDforum Core Developer
|
|
|
|
Re: Upgrade script does not work [message #1008 is a reply to message #1004] |
Tue, 19 March 2002 16:43 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Okie 1 last question then, could you please open your GLOBALS.php file and tell me what is the path you have to the error directory.
FUDforum Core Developer
|
|
|
|
Re: Upgrade script does not work [message #1017 is a reply to message #1016] |
Tue, 19 March 2002 23:32 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
djupsjob wrote on Tue, 19 March 2002 6:29 PM |
prottoss wrote on Tue, 19 March 2002 6:43 PM | Okie 1 last question then, could you please open your GLOBALS.php file and tell me what is the path you have to the error directory.
|
/www/int2000/a/7676/html/forum_data/errors/
|
Is this what ALL your GLOBALS.php file say, especially the one in the forum's main web dir?
FUDforum Core Developer
|
|
|
|
Re: Upgrade script does not work [message #1049 is a reply to message #1034] |
Wed, 20 March 2002 15:53 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
There should be ONLY 1 GLOBALS.php file and it should be inside the include dir. There are to symlinks to this file, 1 from adm/ directory and one from the forum's main web dir.
I wanted to make sure you do not have multiple copies of the GLOBALS.php file in your forum installation. Some FTP clients tend to replace simlinks with REAL files when you're uploading.
FUDforum Core Developer
|
|
|
|
Re: Upgrade script does not work [message #1055 is a reply to message #1052] |
Wed, 20 March 2002 19:24 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
No symlinks?
Hmmm that would DEFINATELY be a problem.
Try creating them yourself and then run the update script.
FUDforum Core Developer
|
|
|
|
Re: Upgrade script does not work [message #1057 is a reply to message #1056] |
Wed, 20 March 2002 20:38 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
djupsjob wrote on Wed, 20 March 2002 3:36 PM | Could it be the lousy safe_mod that's behind the problems again?
This might be a stupid question, but how do I create symlinks with an ftp client? I've never done that before and when I tried it didn't work quite as I expected.
|
the command is called "symlink [source] [dest]"
ex: symlink /some/dir/blah/GLOBALS.php /new/dir/cool/GLOBALS.php
FUDforum Core Developer
|
|
|
|
Re: Upgrade script does not work [message #1066 is a reply to message #1065] |
Wed, 20 March 2002 22:11 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
djupsjob wrote on Wed, 20 March 2002 4:59 PM | Is there any other way to do this? All my ftp clients spit out "server said SITE SYMLINK not understood" in one form or another.
|
you can use php to do that:
exec("ln -s /source/GLOBALS.php /dest/GLOBALS.php");
FUDforum Core Developer
|
|
|
|
Re: Upgrade script does not work [message #1121 is a reply to message #1107] |
Thu, 21 March 2002 15:46 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The 2 symlinks I've mentioned in previous messages are the only ones that the forum creates.
you can create UPDATE_STATUS file your self by doing:
exec("touch /path/to/file/UPDATE_STATUS");
This way the file will have webserver's UID & GID and the upgrade script will be able to edit the file...
FUDforum Core Developer
|
|
|
|
Re: Upgrade script does not work [message #1135 is a reply to message #1134] |
Thu, 21 March 2002 19:38 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hm... if the symlinks are not there, I cannot imagine the forum working at all. Could it be that your FTP client is hiding the symlinks from you? Can you running ls -lia via your FTP client?
FUDforum Core Developer
|
|
|
|
|
Re: Upgrade script does not work [message #1151 is a reply to message #980] |
Thu, 21 March 2002 22:38 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Problem Resolved.
Once again we must thank the person who invented safe_mode in php, for that piece of "brilliant" code.
FUDforum Core Developer
|
|
|