Getting 500 Internal server error with SUPHP

shojib

Active Member
Mar 31, 2014
28
2
3
Sylhet, Bangladesh
cPanel Access Level
Root Administrator
Hi all,
I am trying to configure my hosting business,
Already compiled the apache and php with easy apache with my choice.
After that I made some tweaks , like changing apache confuuguration (there is no problem)
SSH access, Jailed shell , SUPHP , Open basedir tweak.
Now I am getting a 500 internal server error on SUPHP , bout others like CGI and DSO works , and they can't handle most of the scripts , like wordpress core scripts.
And I have found this on error log:

[Tue Apr 01 03:05:56 2014] [error] [client 27.147.229.194] SecurityException in Application.cpp:186: Do not have root privileges. Executable not set-uid root?
[Tue Apr 01 03:05:56 2014] [error] [client 27.147.229.194] Premature end of script headers: index.php
And I searched in google for this problem, and executed this command , but this did not helped me .

chmod +s /opt/suphp/sbin/suphp
I hope you got a solution for me , and guys its urgent!
So Please help me :)

Best Regards,
Shahriar
 

quizknows

Well-Known Member
Oct 20, 2009
1,008
87
78
cPanel Access Level
DataCenter Provider
You must make sure all files in public_html are owned by the cPanel user; files owned by 'nobody' or 'root' (or other users) will cause a 500 with cPanel's configuration of SuPHP.
 

es2alna

Well-Known Member
Mar 30, 2014
67
0
6
Egypt
cPanel Access Level
Root Administrator
To all people that will come from search engines, Here is the fix for your first problem, just execute this command:
Code:
chmod +s /opt/suphp/sbin/suphp
About the wordpress admin panel, what's the problem exactly?
 

shojib

Active Member
Mar 31, 2014
28
2
3
Sylhet, Bangladesh
cPanel Access Level
Root Administrator
To all people that will come from search engines, Here is the fix for your first problem, just execute this command:
Code:
chmod +s /opt/suphp/sbin/suphp
About the wordpress admin panel, what's the problem exactly?
Hi ,
The main problem that I am feeling that,When I update any settings , like permalinks , or others, the settings page loads successfully , but after doing the changes , when I click save now , its shows nothing , just a blank screen without any error, I can't see the error in apache error log and php error log.
And the problem also affects other settings like activating plugins , theme options etc.
And for your reference : the screen shows blank , but the queries being successfully done by wordpress , like my changes is being saved when I click save , but it show's nothing :(
 

quizknows

Well-Known Member
Oct 20, 2009
1,008
87
78
cPanel Access Level
DataCenter Provider
You might just need to increase the php memory_limit in php.ini, I had similar problems with WP that were solved that way. Updates need a fair amount of RAM for the php process.

Otherwise again verify file permissions and try turning on display_errors for PHP temporarily.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello :)

You mentioned reinstalling your OS/cPanel previously. I just wanted to note that it's rarely necessary to reinstall the OS/cPanel to resolve an issue. It's better to troubleshoot an issue directly to determine the cause of the problem.

Thank you.