Submitted by unsalkorkmaz on Fri, 06/22/2012 - 07:58
http://eldapo.lembobrothers.com/2012/06/22/mpm-worker-on-rhel-6/
CAUTION: shipping php packages are not compiled thread safe and will abend with worker mpm.
If you do mpm on Red Hat you need to disable php support: rename /etc/httpd/conf.d/php.conf to php.conf.off.
You have been warned.
I am using httpd.worker and believing its faster. But this dude said remove php.conf and i tried it. Got this error:
Starting httpd: Syntax error on line 1088 of /etc/httpd/conf/httpd.conf:
Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
i check that like and line was:
php_value memory_limit 640M
php_value upload_max_filesize 20M
php_value post_max_size 40M
I removed those from virtualmin panel and removed php.conf .. But now i cant increase memory_limit or post_max_size etc.. I manually edit /etc/php.ini , for example i did memory_limit = 512M but in virtual server's phpinfo memory_limit says 128M Example: http://unsalkorkmaz.com/phpinfo.php
How can i increase those limits? why /etc/php.ini is not working? Thanks for your time
Status:
Active
Comments
Submitted by andreychek on Fri, 06/22/2012 - 08:24 Comment #1
Howdy -- it is indeed correct that mod_php is not thread safe. If you wish to use Apache's mpm_worker mode, you would need to disable mod_php.
You could then make changes to your php.ini file by editing the php.ini file in $HOME/etc/php.ini, for each domain on your system.
Submitted by unsalkorkmaz on Fri, 06/22/2012 - 08:31 Comment #2
hmm.. I dont know systems and effects that much tbh. I was just trying some and thought Apache's mpm_worker looks faster.
Sorry if i understand wrong but.. there is no global php.ini that affects domains in this worker mode.. My only option is editing domain's php.ini file directly.. is it?
Submitted by andreychek on Fri, 06/22/2012 - 08:43 Comment #3
Well, think of the /etc/php.ini as mod_php's php.ini file. If you wish to use mod_php, that's how you would change those values.
The other available modes you can use -- PHP via CGI and PHP via FCGID, both have individual php.ini files.
If you aren't using mod_php, you would need to use PHP via CGI or FCGID.
The individual php.ini files are actually considered a feature -- it's a more secure design, and it allows users to make whatever changes they need to their own php.ini files.
However, if that's not what you want -- then you'd need to weigh whether the speed increase of using Apache's MPM worker is worth it to you :-)