My question is quite similar to this one in that I'm trying to reduce the memory footprint of my website on a somewhat meager shared hosting solution. I'm going to be playing around with my own Apache settings like he did, but I'd also like to try getting PHP-ZTS and MPM Workers functioning rather than using Prefork.

The problem is, when I enable Workers, all I get is a blank white page instead of my Wordpress homepage. A phpinfo() page shows that PHP is functioning correctly, but that MySQL isn't. My server is Fedora 12.

Does anyone have any experience with getting Workers, php-zts, and MySQL functioning together properly? Any help appreciated. I will be diligent in upvoting and providing follow-up info.

Thank you in advance.


Note the last recommendation in the question you linked! Use nginx and PHP-CGI for a low-memory web server that must share RAM with a database server. Nginx has a tiny footprint and is definitely your best bet. Here is a wiki page listing some of the performance characteristics of nginx versus Apache. The configuration syntax is very similar to Apache, and you can probably migrate in an evening or two.

This is assuming, of course, that you have a choice of web server...

  • Thank you for replying! I will consider switching to nginx as a last resort. I'd really like to see what I can do with Apache before I dump it completely, and to that end I still wish to get zts working with MySQL. – daveycroqet Feb 11 '12 at 9:07
  • Welp, looks like no one else is interested in posting. I will not deprive you of your answer point. =) Thanks for at least chiming in. – daveycroqet Feb 12 '12 at 0:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.