1)Copy /usr/local/cpanel/cgi-sys/php5.cgi to /home/username/ public_html/cgi-bin
2)Add the below given script
root [/home/username/public_html/cgi-bin]# vi phpini.cgi
#!/bin/sh
export PHPRC=/home/username/public_html
exec /home/username/public_html/cgi-bin/php5.cgi
3)And added a php.ini in the location (/home/username/public_html)
4)In the .htaccess put the following.
AddHandler php-cgi .php
Action php-cgi /cgi-bin/phpini.cgi
5) Permission of phpini.cgi should be 755
Wednesday, June 10, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment