LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cgi (https://www.linuxquestions.org/questions/linux-newbie-8/cgi-16590/)

JSP 03-19-2002 06:26 AM

Cgi
 
I just install Apache web server with MySql and PHP in Red Hat Linux. When I downloaded and try to run a program that has CGI file, it does not run at all. What could be the error? How am I going to know whether my web server supports any CGI files or program.

CragStar 03-19-2002 07:29 AM

You have to configure apache through the /etc/httpd/httpd.conf file to run cgi scripts in different directories - although /var/www/cgi-bin will more than likely be set-up to run them to start with. Place the file in there.

To view the script, type in a browser:

http://localhost/cgi-bin/cgifilename.cgi

Make sure that the file is set-up to execute to global permissions - i.e. try:

chmod 755 cgifilename.cgi

what was the error you received already? You can always take a look at the apache logs in /var/log/httpd for errors.


All times are GMT -5. The time now is 07:46 AM.