CGI Not Working

Discussion in 'Server Operation' started by mfiendd, Jul 6, 2006.

  1. mfiendd

    mfiendd New Member

    Hey everyone, I'm using Fedora 5 following the How To Guide. I'm not using ISPConfig since the enivorment is only for one site. I managed to setup everything just fine except running CGI scripts. I also changed the path to the folder and moved the folder. I made the appropriate changes in the httpd.conf. I also uncommented the Add Handlers for CGI and added one for PL scripts. I chmod the files to 755 to be executable. When calling the script I get Error 403 Forbidden. To also note, I did enable the use of .htaccess files, I do not have one in the cgi-bin or root html folder.


    I have attached the httpd.conf file since it is too large.


    I searched the site and found topics on Debian, and when using ISPConfig, nothing usefull for me.

    Any help is greatly appreciated. Many thanks in advance.

    MfiendD
     

    Attached Files:

  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /path/to/cgi-bin
    ?
     
  3. mfiendd

    mfiendd New Member

    Output of ls -la /path/to/cgi-bin
    Code:
    drwxr-xr-x 3 apache   apache   4096 Jul  5 18:23 .
    drwxr-xr-x 3 myusername myusername 4096 Jul  5 18:23 ..
    -rwxr-xr-x 1 myusername myusername  379 Jul  5 18:23 hello_world.pl
    drwxr-xr-x 2 myusername myusername 4096 Jul  5 16:27 htedit
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Can you post the real path here?
     
  5. mfiendd

    mfiendd New Member

    /var/www/html/scripts/cgi-bin/
     
  6. falko

    falko Super Moderator ISPConfig Developer

  7. mfiendd

    mfiendd New Member

    http://ipaddresss/scripts/cgi-bin

    I edited the httpd.conf file to change the location of the cgi-bin to the correct path of /var/www/html/scripts/cgi-bin/. Even with the defualt path, nothing was working.
     
  8. falko

    falko Super Moderator ISPConfig Developer

Share This Page