Changes

Jump to: navigation, search

Tung httpd conf

146 bytes added, 22:21, 27 July 2011
Create a web script in user's home
#Login as a root
#Edit configuration file <b><code><font color=brown >/etc/httpd/conf/httpd.conf </font></code></b>again. Add lines
#:<font color=orange ><code><Directory /home/*/public_html>
#:: Options +ExecCGI
#:: AddHandler cgi-script .cgi
#:</Directory> </code></font>
#Restart the Apache server: <b><code><font color=green >service httpd restart</font></code></b>
#By default, selinux doesn't allow Apache Server to read file inside user's home. Change the default setting:<b><code><font color=green > setsebool -P httpd_enable_cgi 1</font></code></b>
1
edit

Navigation menu