.htaccess里加:
<IfModule mod_fcgid.c>
FcgidWrapper /usr/local/cpanel/cgi-sys/php53 .php
</IfModule>
php53内容:
root@host [/usr/local/cpanel/cgi-sys]# cat php53
#!/bin/sh
# If you customize the contents of this wrapper script, place
# a copy at /var/cpanel/conf/apache/wrappers/php5
# so that it will be reinstalled when Apache is updated or the
# PHP handler configuration is changed
exec /usr/php53/bin/php-cgi -d open_basedir=/home/`whoami`:/tmp