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

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

1 Answer 1

suPHP:

  • 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

DSO:

  • 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

 
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.