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/
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://
or http://
No comments:
Post a Comment