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.

migrated from webmasters.stackexchange.com 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
  • 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 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.