Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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...

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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