Open main menu

CDOT Wiki β

Changes

Tung httpd conf

129 bytes added, 21:37, 27 July 2011
Create a cgi script in user's home
#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 Edit diskfree.cgiand write below code to the file#:<font color=orange ><code>#!/bin/bash#:echo "Content-type: text/plain"#:echo ""#:df -h </code></font>
#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