最近几天比较彷徨于PHP的运行方式,suphp到底有没那么好

最近几天比较彷徨于PHP的运行方式,suphp到底有没那么好

Apache Module:
----------------------
You would add "php_flag" commands to a .htaccess file in the account
you want to modify OR add "php_admin" commands in the vhost section
of the main httpd.conf file for your server for that specific site.

phpSuExec
-----------------------
You would create a custom "php.ini" file with the settings you want to change
and drop that in the home of the account you want to update.

SuPHP
----------------------
You would add a "suPHP_ConfigPath" command giving the folder location
of a custom PHP.INI file with the the vhost section of the httpd.conf file
for the site you want to modify settings.
------------------------------无耻的分隔线-------------------------------------------
之前一直在用Apache Module+PHP open_basedir 的方式,可是每次总是要改文件权限,但Cpanel该死的还是只支持apache1.37终于忍无可忍自己手动编译加Fix搞定了
2.24现在彷徨于到底选择哪一种方式跑PHP。

第一种是跑了N年没问题并且非常稳定的,但是和其他两个比好像速度加易用性都有差。

大家是用哪一种跑的呢?

越安全,易用性肯定随之受到阻扰的。
在安全性不是非常苛刻的条件下,当然性能第一。
我用了suphp,目前看来运行很流畅,极度推荐!!!!!!!!!!!!