Author Topic: Error 500 on several standard PHP pages (except CWP itself)  (Read 6707 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error 500 on several standard PHP pages (except CWP itself)
« on: February 09, 2016, 07:51:01 PM »
Hello, I did a fresh install of CWP on a CentOS 6 VPS yesterday.

Currently it says CWP version: 0.9.8.11

However there were 2 lines with maroon / red text in them (on the right side of the screen)  (not sure if it said error or not) running over the SSH terminal screen when I installed, but it didn't report any errors at the end (also I didn't find any logs of the install yet).

While the CWP PHP pages itself work fine, pages of i.e. phpMyAdmin and roundcube webmail give a 500 Internal Server error.

Here is what if found in the apache logs:

I tried to open this from the CWP:
http://xxx.stratoserver.net/roundcube/

error_log:
Code: [Select]
[Tue Feb 09 20:33:27 2016] [error] [client x.x.x.x] SoftException in Application.cpp:555: Directory / is not owned by nobody, referer: https://xxx.stratoserver.net:2031/index.php
[Tue Feb 09 20:33:27 2016] [error] [client x.x.x.x] Premature end of script headers: index.php, referer: https://xxx.stratoserver.net:2031/index.php

Is there something wrong with the CWP install script or is it me or my VPS?
I thought the install script would take care of the directory permissions :/

Maybe it's something easy / stupid, please don't be angry =D

Also the VPS has this option in the VPS control panel, but I am not sure if it's related:
Quote
With the default setting, you can limit the amount of storage space (quota) for users and groups on your V-Server. For system reasons, this restricts the number of UIDs and GIDs that can be used on your V-Server. Remove the tick to deactivate quota for your V-Server.

 Please note: For your changes to take effect, your Server will be rebooted.

Edit:

Turns out some directories are not owned by root, but by 1000 instead, so maybe it has to do with my VPS after all:
Code: [Select]
drwxr-xr-x 23 1000 1000  4096 Feb  9 04:02 .
drwxr-xr-x 23 1000 1000  4096 Feb  9 04:02 ..
...
drwxr-xr-x 67 1000 1000  4096 Feb  8 19:48 etc
...
(all others owned by "root")
« Last Edit: February 09, 2016, 08:11:20 PM by ripieces »

Offline
*
Re: Error 500 on several standard PHP pages (except CWP itself)
« Reply #1 on: February 09, 2016, 08:08:58 PM »
I did

Code: [Select]
chown root:root /
chown root:root /etc

And the problem is solved now!

Thread can be closed :D