Sunday, March 16, 2008

apache configuration in fc5

apache cofiguration in fc5 to see html scripts on your own system

Open the file httpd.conf (generally in /etc/httpd/conf/httpd.conf or
locate it by running locate httpd.conf).

-->Find this line 'UserDir public_html'(generally around 355-365 line) and
uncomment it

-->Find 'UserDir Disable'(a few lines above the previous one) and comment
it.

-->Find 'ScriptAlias /cgi-bin/ "/var/www/cgi-bin" and uncomment it if it
is commented.(around 555-565 line)

-->In the code segment that begins like this ...(immeadiatley below the
above one)



change the line 'Options None' to 'Options ExecCGI'

-->Find the line 'AddHandler cgi-script .cgi' and uncomment it.

-->And include this segment of code to enable
execution of cgi scripts in ur /home//public_html/cgi-bin (for
that matter any directory of the path you mention).



AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all






AND MOST IMPORTANTLY.. Dont forget to start your http server,as simple as
that..

root@localhost#service httpd start

now goto http:///~/cgi-bin

or http:///cgi-bin (the default)

No comments: