Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a basic php installation. I want to install apc + memcached and squid to speed up the website.

I have run into various resouorces regarding this, but one thing is not clear.

Should php be in suPHP or DSO

What can be the advantages and disadvantages.

The server is running cpanel/whm. And I will be installing drupal with around 2 lac nodes and a lot of visitors.

share|improve this question

migrated from Nov 24 '10 at 16:34

This question came from our site for pro webmasters.

server default is suPHP – Nikhil Sep 24 '10 at 3:10


  • executes script as the user instead of as the webserver
  • runs as CGI; spawns a new process for each request
  • is generally more secure and popular among shared hosting environments
  • can't set php directives in .htaccess
  • can have per-user/per-host php.ini files


  • loads once so a new process doesn't need to be spawned for each request
  • faster of the two
  • can set php directives in .htaccess
share|improve this answer
SO what should be used with memcached and squid – Nikhil Sep 18 '11 at 5:38
It really depends on your setup, how paranoid you are about security, and how much performance you are willing to sacrifice. If you are running a shared server you should go with suPHP, but if you trust the users that have access to your accounts(i.e. they are all created by you or you strictly control access) you may want the performance of the DSO. – Inigoesdr Sep 19 '11 at 14:35

Your Answer


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.