Internal Server Error after activating suhosin

fibre72

Registered
Jul 11, 2012
4
0
1
cPanel Access Level
Root Administrator
Hello Community,

after ive activated suhosin and suexec i get internal server errors on scripts like dokuwiki and piwik.

On another script i get wirte access errors.

When i switch to cgi or fcgi without suexec everything is working. cgi and fcgi with activated suexec didnt work.

Anyone a idea?

Best regards!
 
Last edited:

fibre72

Registered
Jul 11, 2012
4
0
1
cPanel Access Level
Root Administrator
Hello,
thank you for the link.

But i think there is any conifguration problem. I think it isnt pure coincidence that 5 scripts dont work with suhosin.
I think the problem is that the scripts are installed on cgi or something like that.

Best regards
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,211
363
Hello :)

Please post the full error message that is output to /usr/local/apache/logs/error_log when you attempt to access the website and receive the "internal server error" message.

Thank you.
 

nwtg

Active Member
Dec 24, 2010
34
0
56
Portland, Oregon
cPanel Access Level
Root Administrator
I just tested something in my QA environment that may assist in researching, cause this stinks of a permissions/ownership conflict.

The last time I ran EA on the testing VM (although we were testing various options) certain existing software installed from Softaculous & Fantastico started throwing error 500s. Upon examining the contents of the effected public_html, I found this:

/http://jetfi.re/1.jpg
Also created the "/home/user/public_html/$foo" is writable by group in the error_log.

Verified that /http://j0hn.net/dev-qa/test.php (with the incorrect ownership seen above) threw a 500, then verified the write access error was created.

I adjusted the uid/gid as seen here: /http://jetfi.re/2.jpg

I then called up /http://j0hn.net/dev-qa/test2.php which is an exact replica of test.php and it loaded.
Can also try chmod 755 /home/user/public_html (drwxr-x---) if it's not already. May have to do some exploring until you find the folders/files with incorrect ownership.

Hope this gets you on the right path.

-JM
 
Last edited:

Infopro

Well-Known Member
May 20, 2003
17,113
511
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Why would someone want to chmod public_html to 755?

The last time I ran EA on the testing VM (although we were testing various options) certain existing software installed from Softaculous & Fantastico started throwing error 500s. Upon examining the contents of the effected public_html, I found this:
Running EasyApache should not be touching files on a users account.

If you suspect an issue with EasyApache you might want to bring in the troops to have a look at your box:
http://go.cpanel.net/bugs
 

nwtg

Active Member
Dec 24, 2010
34
0
56
Portland, Oregon
cPanel Access Level
Root Administrator
Why would someone want to chmod public_html to 755?



Running EasyApache should not be touching files on a users account.

If you suspect an issue with EasyApache you might want to bring in the troops to have a look at your box:
http://go.cpanel.net/bugs

Easy big fella. Everyone's situation is different. It occurred in our QA environment, so perhaps I will have it looked at if it occurs again.