home Cheap Adult Web Hosting
contact us : About Us : Members : Home 




Virtual Adult Hosting

Custom Plan

Company Information

FAQ Section

Our Network

Terms of Service

Privacy Policy

Resources



FAQ Database

How can I get my CGI script to run OUTSIDE the cgi-bin?
 
First of all you need to create .htaccess file in dir from which you want to use your CGI scripts(If you want that dir be mainwebsite_html you just need to add rules into file because it is already created. Do not erase your .htaccess file in your mainwebsite_html dir because that will brake your Frontpage Extensions configuration):

Options +FollowSymlinks
Options +ExecCGI
AddHandler cgi-script cgi pl

After that in editor create a simple test program:

#!/usr/bin/perl

print "Content-type: text/html";
print "This is a test";

After that save it under the name test.cgi change the attribute of that file to 755 that is, do a command chmod 755 test.cgi. Than go to http://www.yourdomain.com/test.cgi and check does your CGI script works.


 





Smoke'n hot deal for Sep 10, 2010

FREE installation of WordPress
WordPress is a state-of-the-art semantic personal publishing platform with a focus on aesthetics, web standards, and usability. What a mouthful. WordPress is both free and priceless at the same time.




© 1996-2010 Datona Communications All Rights Reserved.