500 internal server error after half-done upgrade

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
rbl1971
Posts: 8
Joined: Sun 5. Jun 2005, 18:14
Location: Birkeroed, Denmark

500 internal server error after half-done upgrade

Post by rbl1971 »

Hi,
Upgrading from v1.2.3 (i believe it was) to 1.4.1 didn't go very well and now my site seems to be stuck between a rock and a hard place.

I tried to follow the german instructions for installing/upgrading phpwcms from phpwcms-docu. After renaming folders, changing foldernames in conf.inc.php and setting permissions i tried to run the upgrade script.

This gave an error ("You cannot access this script directly, Have a nice day), which was fixed by adding the following entry in conf.inc.php:

Code: Select all

define('PHPWCMS_INCLUDE_CHECK', true);
Now i tried to run the script again, but something went very wrong and resulted in the upgrade giving this error:
"500 Internal server error".

The servers logfile shows these entries, when i try to run either /setup/upgrade.php or /setup/setup.php:

Premature end of script headers: php-script
Directory index forbidden by rule: /home/virtual/site216/fst/var/www/html/
File does not exist: /home/virtual/site216/fst/var/www/html/favicon.ico

I can get the phpwcms login interface and login to the site, but the errors in the interface gives the impression that the upgrade wasn't succesfull. And accessing my site gives me this error:

There is no pagelayout available. Please login to the admin section and create one here!

I hope someone can give some directions about how to fix these half-baked upgrade. And unfortunately my SQL database backup has an error, so restoring it is not an option :-(

Best regards,
René
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: 500 internal server error after half-done upgrade

Post by Oliver Georgi »

Does setup folder exists?
Disable Bad behavior in conf.inc.php
Remove or rename .htaccess
Check Site URL in conf.inc.php
Use your backup to try again.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
rbl1971
Posts: 8
Joined: Sun 5. Jun 2005, 18:14
Location: Birkeroed, Denmark

Re: 500 internal server error after half-done upgrade

Post by rbl1971 »

Hi Oliver,

Thank you for the suggestions - i really appreciate it.
Does setup folder exists?
Yes
Disable Bad behavior in conf.inc.php
Done.
Remove or rename .htaccess
Renamed to __.htaccess
Check Site URL in conf.inc.php
The site URL looks correct.
Use your backup to try again.
That's the problem - the backup file is corrupt, so i don't have the data from the SQL database :(

I've tried accessing the site after the above changes - this give the error: "You cannot access this script directly, Have a nice day"
Trying to call /setup/setup.php gives still the error: 500 internal server error

Any other suggestions on how to proceed from here.
The meaning of life is subject to change without notice
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: 500 internal server error after half-done upgrade

Post by Oliver Georgi »

No I have not.

Seems files are missing.

Re-Upload new files again.
You cannot start setup.php - only use setup/upgrade.php
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
rbl1971
Posts: 8
Joined: Sun 5. Jun 2005, 18:14
Location: Birkeroed, Denmark

Re: 500 internal server error after half-done upgrade

Post by rbl1971 »

Hi Oliver,

Thanks for the advice - i'll try and re-upload the files and run the /setup/upgrade.php again.

I'll post the result here.

Best regards,
René
rbl1971
Posts: 8
Joined: Sun 5. Jun 2005, 18:14
Location: Birkeroed, Denmark

Re: 500 internal server error after half-done upgrade

Post by rbl1971 »

I re-uploaded the complete "upgrade-package" again, changed the permissions as per the guide and ran the upgrade again.

Same result - i get this message: "There is no pagelayout available. Please login to the admin section and create one here!"

I expected the upgrade to keep the old layout and settings, so before i start redoing the site (configuring the layout, adding articles etc.) and changing the current content of the DB i'd like to hear from anyone who has an idea how to fix this?

Best regards,
René
The meaning of life is subject to change without notice
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: 500 internal server error after half-done upgrade

Post by Oliver Georgi »

I really don't know what you did.

Maybe you really missed some upgrade steps - first upgrade db then do the manul upgrade steps listed above SQL field! You cannot upgrade and the re-up the old db! This will also fail.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply