getting apache to show pages
sorry if this seems stupid bit i have installed apache on my machine as i want to test cgi scripts etc that i write. When i point the browser to my machine i get the apache test page which means its running ok. It says that i shuld replace this page. Where is it to replace? What im asking is where do i save my work to in prder for the server to show it? many thanks.
|
Depending on which linux system you're running, the directory where you should place your cgi files should be in /var/www/
you should also make sure your httpd.conf file has the appropriate seetings for apache to serve cgi script cheers |
Quote:
|
you'll need to run as root and have something similar to the following in your httpd.conf section 2:
<Directory "/var/www/your_directory_of_cgi_stuff"> Options ExecCGI AllowOverride Limit Order allow,deny Allow from all </Directory> hope that works for ya |
Quote:
|
have changed the file and nave saved my little cgi file in cgi-bin but it wont run. the browser just shows the code.
|
chmod the file to 755.
Either that or you have to set up apache to process files that are .cgi as cgi files. Do you have perl installed? |
Quote:
Quote:
|
All times are GMT -5. The time now is 04:11 AM. |