Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I have an apache server running three virtual hosts. I am trying to put a counter on one of the pages but it doesn't seem to run. It is supposed to use gif images but I don't get anything on the page. I have used the instructions on this page: http://aitech.ac.jp/~inomoto/ino/cgi/counter2.htm
I know the file perl@ is where it should be. I have .htaccess in the folder where the html file is. I have the counter.cgi script in both a subdirectory of the website and the cgi folder in apache dir.
I have added Options +ExecCGI to the httpd.conf file.
I am not getting any errors in the log file to say it can't find the cgi file.
I have made the permissions accessible for all for the cgi folders and the folder with the pictures.
It just seems as though the cgi script isn't running and I don't know where to look next. Can anyone point me in the right direction?
Check that the script itself is executable; does it run from the command-line? (It may not do anything useful in that context, but BASH should not give you any error messages).
Also, make sure that the directories where the script is are readable and executable by the user that apache runs as (usually “nobody”).
You should also make sure that if your scripts have "#!" (pronounced "sharp bang") lines at the top, that they point toward their respective CGI interpreters.
/etc/local/perl and /etc/local/perl@ are different files. The script wants /etc/local/perl. The #! should point to an executable file that is a perl interpreter.
To test if it works, try something like
hmm that didn't work (as you said)
so did it not get installed with my installation? I am sure I had it installed. how can I check?
do I download it from somewhere and re-install it?
Don't reinstall Perl. You have a Perl that's working well enough to tell you it's version. Where is it?
Set the correct location in the #! line in the CGI script.
#!/usr/bin/perl is quite common.
Alternativly, create a symlink to it in /etc/local:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.