Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Nov 2003
    Location
    Australia
    Posts
    28

    Question cgi-bin not found from http

    Hi all, I'm hoping someone is able to help. I have one account out of about 40 that were transferred to a new VPS that is having a cgi-bin problem.

    I can view the contents of the cgi-bin folder from FTP, from the cpanel File Manager, from SSH in the directory listings, etc. But If I http://domain.com/cgi-bin/ it always reports "Page not found". I'm sure there's an alias or something missing somewhere but I honestly can't find it.

    Anyone got any ideas?

    PS: I'm fairly new to SSH commands, so if you offer some help, could you please put the "whole" command Thanks.

    Robyn.

  2. #2
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    the cgi-bin seems not copied. Try creating a cgi-bin folder in any of the domain and check.

  3. #3
    Member
    Join Date
    Nov 2003
    Location
    Australia
    Posts
    28

    Default

    Thanks, but as I said, the cgi-bin folder is there in the /HOME/USERNAME directory. In fact, I can even FTP files to it, and view it fine from the file manager within cPanel. What I can't do is display any of the files or folders within it using a http: request. For example, the file admin.cgi is in the ADMIN folder of the CGI-BIN. But when I go to http://domain.com/cgi-bin/admin/admin.cgi I get a Page Not Found error. Not a 500 error, just a regular 404. And it's definitely there. So if there's any other ideas would be much appreciated.

  4. #4
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    well.. it should be inside: /home/username/public_html folder and NOT /home/username/.

  5. #5
    Member
    Join Date
    Nov 2003
    Location
    Australia
    Posts
    28

    Default

    Sorry I was just trying to do a quick reply and wasn't thinking clearly. What I'm trying to say is the folder already exists.

    It is in /HOME/USERNAME/PUBLIC_HTML/CGI-BIN.

    The point is, I can't view it from the web, but I can from everywhere else. And my other 48 accounts do not have this problem.

  6. #6
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Are you missing the script alias line in httpd.conf?

  7. #7
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    but casey; even then shouldn't it show the cgi-bin folder if taken as http://domainname.com/cgi-bin/
    just taking it as a folder under the public_html folder

  8. #8
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    I don't know. I'm too lazy to check.

    I think if you have Options -ExecCGI in the virtualhost that might cause this behavior, too.

  9. #9
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    i will try some experiments

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 05-19-2011, 07:16 AM
  2. What's the difference between scgi-bin and cgi-bin?
    By jols in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-26-2009, 04:38 AM
  3. accessing php code in cgi-bin=>500 http error
    By dmgens in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-19-2009, 01:59 PM
  4. cgi-bin vs. scgi-bin vs. perl
    By Boboss in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-21-2006, 11:27 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube