Exactly what do you recommend for establishing a shared server with php from the security/performance perspective?

  • Apache mod_php (how can you secure that? apart from safe_mode because it will not maintain PHP6)
  • Apache CGI + suexec
  • Lighttpd and spawn a FastCGI per user

LE: I am not thinking about utilizing an already made user interface as i am attempting to write my very own so i wish to know what's the easiest method to setup this myself. I had been thinking in making use of Lighttpd and spawn a fastcgi for each located user making the fcgi process run under his qualifications (there's a tutorial with this on lighttpd wiki). This is somewhat secure but would this affect performance (plenty of customers / memory required for every fcgi) a lot it's not really a viable solution?