500 Internal Server Error - after restoring backup

Pedja68

Registered
Dec 24, 2010
4
0
51
I have reinstalled the OS on my VDS (Centos 5.5), and then I restored backups for several accounts (uploading it to /home directory and then using /scripts/restorepkg username). Here is the final message I'm getting:

Restore Complete

Account Restore Complete

Unlocking password for user USERNAME.passwd: Success.
When I try to see restored websites from my browser I'm getting 500 Internal Server Error message. Do you have any idea what is going on? For at least one account I'm sure I'm using the same IP address I was using before.

Any help would be appreciated. Thank you in advance.

Cheers!
 

wayne_mu

Member
Dec 12, 2009
12
0
51
Hi,

You may need to check the file permissions or the ownership under the accounts.
Mostly the accounts are resotred as it is with /scripts/restorepkg , but stil you check it ..

:)
 

Pedja68

Registered
Dec 24, 2010
4
0
51
Hi,

You may need to check the file permissions or the ownership under the accounts.
Mostly the accounts are resotred as it is with /scripts/restorepkg , but stil you check it ..

:)
I have tried to change the ownership of /home/USERNAME/public_html to USERNAME:nobody, but the result is still the same. What exactly permissions should I set?
 

Pedja68

Registered
Dec 24, 2010
4
0
51
Check what you get in the logs , it will help to track the exact issue.
Here are the latest errors for the accounts I have restored this morning:

[Tue Dec 28 02:16:43 2010] [error] [client IP] SoftException in Application.cpp:431: Mismatch between target GID (503) and GID (99) of file "/home/USERNAME/public_html/member.php"
[Tue Dec 28 02:16:43 2010] [error] [client IP] Premature end of script headers: member.php
[Tue Dec 28 09:15:46 2010] [error] [client IP] File does not exist: /home/USERNAME/public_html/500.shtml
[Tue Dec 28 02:16:33 2010] [error] [client IP] SoftException in Application.cpp:256: File "/home/USERNAME/public_html/index.php" is writeable by group
[Tue Dec 28 02:16:33 2010] [error] [client IP] Premature end of script headers: index.php
 

Pedja68

Registered
Dec 24, 2010
4
0
51
Here is the solution (in my case):

1. logged in as root type
chown -R username:username /home/USERNAME/public_html/
2. stil as root type:
chmod -R 0755 /home/USERNAME/public_html
3. Fix permissions for files you have to (config files, etc...)

@wayne_mu: thank you for your help m8.

Cheers!