LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2007, 03:47 PM   #1
misulica
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Rep: Reputation: 0
cg-bin not working


hey guys..this might be silly but here it goes..
I`m on a dedicated server with CentOS 5
my proglem is:
using WHM i added several domains wich i own..so far so good
On one of them i have a script that uses .pl files.
I uploaded my script files in: /home/kinetix/public_html/cgi-bin (My local directory)
Then i runned the script and it sais that there is no .pl file that he needs in the cgi-bin/ directory...
My guess is that something is not configured right so that cgi-bin path is something like: /home*/public_html/cgi-bin/

Thanks and i appreciate the help
 
Old 10-06-2007, 03:49 PM   #2
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Well, if this is the typical webhoster file upload, you probably don't have to set permissions.

But possibly, a .pl won't work. Try .cgi instead.
 
Old 10-06-2007, 03:53 PM   #3
misulica
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Original Poster
Rep: Reputation: 0
It`s not file upload...nothing that i place in the /public_html/cgi-bin directory works...it sais that tehre`s nothing there
Can it be something from httpd.conf..like ScriptALias not set?
 
Old 10-06-2007, 04:05 PM   #4
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Well, check it.

The reason for a CGI not loading could be a) permissions, b) filename, c) missing interpreter of the programming language or interpreter in the wrong place, d) cgi-dir not configured at all or pointing to somewhere else...

And my Apache NEVER says "there's nothing there", so I would recommend to really cut and paste the error message.

Is the file executable?
 
Old 10-06-2007, 04:26 PM   #5
misulica
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Code:
#
        ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

    #
    # "/usr/local/apache/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    #
    <Directory "/usr/local/apache/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>
That is in the httpd.conf
so basicaly it`s not pointing to /public_html/cgi-bin
I need it so that all the cgi-bin/ `s on all the domains work

Last edited by misulica; 10-06-2007 at 04:29 PM.
 
Old 10-06-2007, 04:41 PM   #6
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Check in the Apache manual mod_vhost_alias, that's probably what you want/need:

This module creates dynamically configured virtual hosts, by allowing the IP address and/or the Host: header of the HTTP request to be used as part of the pathname to determine what files to serve. This allows for easy use of a huge number of virtual hosts with similar configurations.

And don't forget to check the configuration for filename endings.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 11:30 AM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09:30 PM
/usr/bin/less not working Mikko Slackware 1 11-11-2004 06:25 PM
/bin/grub-install not working cucolin@ Linux - Newbie 2 02-06-2004 03:45 PM
Newbie needs help Installing j2sdk-1_4_2-nb_3_5_1-bin-linux.bin bendoku Linux - Newbie 5 10-11-2003 10:27 AM


All times are GMT -5. The time now is 06:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration