Hello,
In my VPS, PHP info page is not working. Its not showing changes when I do modifications. Please help me to fix the issue.?
Solution:
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
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
No comments:
Post a Comment