LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   php cgi scripting (https://www.linuxquestions.org/questions/linux-server-73/php-cgi-scripting-761002/)

umarzuki 10-10-2009 12:02 PM

php cgi scripting
 
how do i setup a apache with php cgi script support (eg: view server's top output on web browser)?

eth1 10-11-2009 05:28 AM

You can always put the CGI program in cgi-bin directory inside the DocumentRoot directory. Check for the ScriptAlias directive in Apache configuration file httpd.conf

Once you've determined/setup the cgi-bin directory and configured Apache, you should be able to run CGI programs via the browser.

Since you're planning on doing this using PHP, you need to check for PHP exec function,



All times are GMT -5. The time now is 03:16 AM.