Category Archive: Script

Nov 01

sample python script

You can use following python script to check whether python is running correctly on your server. 1) Create a script with extension py say sample.py and add following code to it.   #!/usr/bin/python import cgi print(“<Content-Type: text/html\n”) print(“ok”)   2) Access script in the browser. http://www.your-site-name.com/sample.py 3) Output of this script should be “OK” If you see …

Continue reading »

Mar 29

changing all file and directory permissions.at same time

1) Following command will search for all the directory in the current directory and change the permission. find -type d -exec chmod 755 ‘{}’ \; 2) Following command will search for all the files in the current directory and change the permission. find -type f -exec chmod 644 ‘{}’ \ contact@webhostingsupport.info

Mar 29

Test cgi script

If for some reason your cgi script is not working, then you can create a test cgi script to check if it works. If test cgi script is also not working then there seems to be some server configuration problem. Before creating cgi scrip check for the perl path on server. You can check the …

Continue reading »