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.
|
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. |