Pages

Categories

Archives

Meta

To install PHP CGI,

> Connect through SSH and root to the server :
> Install php with the following :

% vinstall php(enter version here)-cgi

> Select the extension that are required
> Please make sure you only select the appropriate extensions
> At any point of time, you may edit php.ini file and add the exntensions
> It is always advisable to upgrade to the recent version
> PHP CGI on VPS Hosting package is installed at ~/usr/local/bin/php

% cd ~/www/cgi-bin

% ln ../../../bin/php.cgi php

> Also, you can make the following changes to httpd.conf file :

Changes in the directory file in order to include PHP CGI

> Also, add the lines so that all files and extensions will be redirected to PHP CGI executables :

for e.g.

Action php4-script /cgi-bin/php
AddHandler php4-script .php .php3 .php4 .phtml

> Restart the VPS by running restart_apache

> In order to check PHP installation, create the following :

~/www/htdocs/test.php(Version) and you may view it in the web browser

phpinfo();
?>

This is how to install PHP CGI on linux vps hosting

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment