• Sales: 1-800-961-2888
  • Support: 1-800-961-4454

My CGI/Perl script is not working. What should I do?


If your CGI/Perl script is not working, please check the following:

1. Is CGI/Perl scripting enabled on your domain? How do I enable/disable CGI/Perl scripting on my site?

2. Did you save the file with ".cgi" or ".pl" extension?

3. Did you upload the file to the "cgi-bin" directory? Where do I upload my CGI/Perl files?

4. Did you set the permissions on the file to 755?

5. Did you upload the file in ASCII? Should my CGI/Perl script be uploaded in ASCII or binary?

6. Did you set the path to Perl correctly? What is the path to Perl?

If you are continuing to have issues, check to see if the script requires any additional modules that must be installed. You can run a PerlDigger script as shown here, How can I test CGI/Perl functionality?, for additional information about our environment.



© 2011-2013 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER

2 Comments

I am new to Perl and am having trouble getting my scripts to run properly. Where am I supposed to put the actual Perl scripts in order for them to run correctly? I am testing everything out on my lap top and am trying to call a script from a html page and all I get is the actual script (code) itself displayed in my web browser as opposed to the information that the code is designed to produce.

If you are working with Cloud Sites, then double-check steps 2, 3, and 4 above. You'll need the script in the cgi-bin directory, it would need a proper filename extension, and would need permissions set that allow it to be executed as a script. What you describe makes it sound like it's either a matter of changing the name or of checking that it's in the cgi-bin directory.

If you're using Cloud Servers instead, the setup will be a bit more complicated. In that case you'll also need to enable cgi in the configuration and make sure the right filename extensions are set up to be processed as scripts. If you're using nginx you'd also need to install a cgi processing service like fastcgi,

Add new comment