To setup Correctly and Getting Started with the CGI process in Hostgator is quite Tricky…
If you don’t know Exactly How to Setup all the Details.
CGI Setup, CGI Tutorial, CGI Python, Hostgator Hosting, Hosting Hosting
-
Perl and Python CGI Scripts must reside in the cgi-bin directory
-
You must use the .pl and .py Extension, .cgi extension doesn’t works out of the box
-
You must give Exactly a 755 Permission, 775… Don’t work
-
Your Perl‘s testing script must contains an Header
-
Is the same to use as path either /usr/bin or /usr/local/bin
-
Make this Prerequisite Test:
After if you Did Not Get Any Warning from this Latest Test you Can Follow with CGI Setup!
Make this Latest Test:
After you Take into Consideration All the previous Details here below are the testing scripts…
For Perl upload in your cgi-bin directory as test.pl this script:
#!/usr/bin/perl -w
print "Content-type: text/htmlnn";
print "";
print "CGI Test ";
print "";
print "";
Test page using Perl.
print "";
To test your working CGI script open in your browser:
http://yourHostgatorDomain/cgi-bin/test.pl
For Python Upload in your cgi-bin directory as test.py this script:
#!/usr/bin/python
print "Content-type: text/htmlnn";
print "";
print "CGI Test ";
print "";
print "Test page using Python
";
print "";
To test your working CGI script open in your browser:
http://yourHostgatorDomain/cgi-bin/test.py