Changes

Jump to: navigation, search

Tung httpd conf

102 bytes added, 22:19, 27 July 2011
Create a web script in user's home
#*For non-cgi files: <b><code><font color=green >semanage fcontext -at httpd_user_content_t "/home/[^/]*/public_html/.+"</font></code></b>
#Apply the context: restorecon <b><code><font color=green >-vRF public_html</font></code></b>
#Confirm the context type is correct: <b><code><font color=green >ls -Z public_html</font></code></b>
#Logout root
#Create diskfree.cgi and change its permission to executable: <b><code><font color=green >chmod 705 /home/user/public_html/*.cgi</font></code></b>
#Write lines in diskfree.cgi
#Open a browser, and enter <code>http://hostname/~your-user-id/diskfree.cgi</code> . The disk usage of your computer should be displayed.
1
edit

Navigation menu