Quote:
|
Ok I will look more into getting cgi setup on my server when I get home on saturday and I will ask if I have an questions.
|
OK I have tried and I can not find any kind of anything to install cgi and set it up. I have never used cgi before but I think you need like a cgi-bin and then all cgi files have to be in there.
|
Quote:
|
I just enabled it on my server yesterday, wasn't as bad as I thought...
Make sure you have in your httpd config; LoadModule cgi_module modules/mod_cgi.so Uncomment; AddHandler cgi-script .cgi Down in your <Directory /home/*/public_html> section add below to the Options line; ExecCGI That should be it, you will be allowed to execute Perl scripts from anywhere. |
Ok I think I set it up right but when I go to this address I get a page saying page can not be displayed. Do I have to change anything in the file?
http://mitchellmeffert.com/cgi-bin/nph-proxy.cgi Do I need anything else installed like mod_perl? |
To get an idea of the problem, login to your server using ssh, and run the command :-
tail -f /var/log/httpd/error_log If your server is setup with the defaults, that should be the location of your error log file. Then go to the URL you have problems with, and see what gets printed on the screen. It will usually give you an idea of what the problem is. Depending on how you have cgi setup, you may need to enable mod_perl, but be warned, it is not possible to run mod_perl and mod_php in the same instance of apache. If you need to run both, then the normal practice is to add a line :- #! /bin/perl to the start of your script, and to make the file executable by world. This can be done with a :- chmod 0755 file.cgi from the ssh prompt, assumiong you are already in the directory containing the file. Having done that, the file should run like any other program on a unix system. |
All times are GMT -5. The time now is 12:55 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.