Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Debian Lenny with PHP 5.3.8 with fastCGI and Apache 2.2.9-10+lenny11.
Everything seems to work smoth except all PHP scripts where ini_set() is used cause a 500 error. For example:
Yes, not my thing, but looks like a simple syntax error. Regardless it's not really a debian problem, you should ask for this to be moved maybe the "Linux - Server" forum.
Thats also what i guessed. I already tried everything:
ini_set("memory_limit","48M");
ini_set("memory_limit","48");
ini_set("memory_limit",48);
No matter what i try, I immediately get the 500 error.
I am sure that it has nothing to do with the PHP script itself because it is working if i leave the ini_set away (indeed i need it so thats not a soloution ;-)
btw ini_set("max_execution_time", "60"); works and does not throw an 500 error so i am really not sure what it could be.
I have to say, that the problem appeared after upgrading Apache and PHP from 5.2.x to 5.3.8.
PS: sorry for posting in the wrong place. I thought the right place is the debian forum as I am using debian lenny. So I would appreciate if a moderator could move my thread - thanks :-)
Last edited by Flowsen; 09-12-2011 at 10:22 AM.
Reason: misspelling
PS: sorry for posting in the wrong place. I thought the right place is the debian forum as I am using debian lenny. So I would appreciate if a moderator could move my thread - thanks :-)
NP, moved it to the Linux Software forum to help your thread/question get the exposure it deserves.
Is there anything in /var/log/apache2/error.log that would help?
Quote:
[Tue Sep 13 09:34:14 2011] [notice] mod_fcgid: process /var/syscp/webs/xxx/xxx.php(28681) exit(communication error), get unexpected signal 11
[Tue Sep 13 09:34:14 2011] [notice] mod_fcgid: process /var/syscp/webs/xxx/xxx.php(28680) exit(communication error), get unexpected signal 11
Furthermore syslog shows:
Quote:
Sep 13 09:41:46 srv kernel: [98524.331525] php-cgi[28919] general protection ip:6d6f82 sp:7ffff563c590 error:0 in php5-cgi[400000+792000]
Thats the only message i get. Any way to extend this error message? I already looked into other log files without success.
I just wanted to inform you that I solved the problem.
The reason is that suhosin memory limit may not exceed 2047M.
Please dont ask me if this is a bug or not but if i keep in range up to 2047M setting memory limit in php.ini, .htaccess, PHP etc. everything works like a charm.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.