The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

suphp restrictions

Discussion in 'General Discussion' started by Pigeon, Oct 20, 2012.

  1. Pigeon

    Pigeon Registered

    Joined:
    Oct 20, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi Guys

    My server has incorporated suphp restrictions on the server side without notice.

    My site has worked with no issue for 5 years, but now it is coming up with Internal 500 error.

    I got this from support:
    You are trying to access the perl script uploaded in cgi-bin folder of
    onlinepigeonauctions.com.au in browser, but because of suphp
    restrictions it is not possible to access scripts present in cgi-bin in
    browser.

    You need to modify the way your script works and adjust them to work
    with suphp.


    Currently my index.html is:
    <html>
    <head>
    <META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://www.onlinepigeonauctions.com.au/cgi-bin/auction.pl">
    </head>
    </body>
    </html>

    Which as mentioned has been fine for 5 years, but now I need to change to run the perl script.

    Any Clues?

    Thanks
     
  2. Escobar

    Escobar Member

    Joined:
    Aug 11, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    The SuPHP environment requires for folders to be set to 755 and files to be set to 644. However, files inside the /cgi-bin/ folder must be set to 755 as well. To correct this, just set your auction.pl file to 755.
     
  3. Pigeon

    Pigeon Registered

    Joined:
    Oct 20, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thanks for the reply Escobar.

    The permissions for auction.pl is and always has been 755.

    I am still offline and struggling to understand why.
     
  4. jack01

    jack01 Well-Known Member

    Joined:
    Jul 21, 2004
    Messages:
    200
    Likes Received:
    0
    Trophy Points:
    16
    Pigeon,

    Did you ever get a solution for this please?
     
  5. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Anytime you see an internal server error on a Web site, look in the Apache error log, /usr/local/apache/logs/error_log. It will normally tell you the exact cause of the problem. Use tail -f to watch the log file while you load the page that causes the error.

    If you do not see the error there, look at the suexec log, /usr/local/apache/logs/suexec_log. The actual error that is reported as an internal server error is going to be in one of those two log files. Looking at the actual error in the log is much more effective than guessing.
     
Loading...

Share This Page