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.

Function-get-contents :: Failed to open stream (500 Server errror)

Discussion in 'General Discussion' started by BitClusterUK, Jan 29, 2013.

  1. BitClusterUK

    BitClusterUK Registered

    Joined:
    Jan 29, 2013
    Messages:
    0
    Likes Received:
    0
    Trophy Points:
    0
    cPanel Access Level:
    Website Owner
    Hi cPanel,

    Wanted to know if you guys could help me. I've just tried to install an uploading script and there seems to be an issue with the site. The following error is what I am getting.

    Code:
     Warning: file_get_contents(http://bitcluster.co.uk/cgi-bin/upload.cgi) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /home/bitclust/public_html/install/index.php on line 141
    When I go to the installer file I get another error:

    Code:
    CGI Bin is not setup correctly! Please contact your webhost about allowing CGI to be accessed/excuted publicly.
    I know the error is due to CGI-bin, I've tried CHMOD 777, 775

    Any Help?


    Just encase this could be a htaccess problem. below is the .htaccess file.


    Code:
    ## BEGIN SETTINGS FOR UPLOAD SCRIPT, DO NOT REMOVE ##
    <IfModule mod_security.c>
        SecFilterEngine Off
        SecFilterScanPOST Off
        SetEnvIfNoCase Content-Type "^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
    </IfModule>
    <IfModule mod_gzip.c>
    	mod_gzip_on No
    </IfModule>
    <IfModule mod_deflate.c>
    	SetEnvIfNoCase Request_URI upload.cgi no-gzip dont-vary
    </IfModule> 
    ## END SETTINGS FOR UPLOAD SCRIPT, DO NOT REMOVE ##
    
    # turn rewrite engine on #
    RewriteEngine On
    
    RewriteRule ^/es/(.+)$ /$1
    
    # links with .html appended ##
    RewriteRule ^members/delete/(.*)/(.*).html$ /delete_file.php?delete_id=$1&file_id=$2 [L]
    RewriteRule ^files/(.*).html$ /download.php?file_id=$1 [L]
    RewriteRule ^delete/(.*)/(.*).html$ /delete_file.php?delete_id=$1&file_id=$2 [L]
    RewriteRule ^info/(.*).html$ /info_file.php?info_id=$1 [L]
    
    # links with .html removed #
    RewriteRule ^members/delete/(.*)/(.*)$ /delete_file.php?delete_id=$1&file_id=$2 [L]
    RewriteRule ^files/(.*)$ /download.php?file_id=$1 [L]
    RewriteRule ^delete/(.*)/(.*)$ /delete_file.php?delete_id=$1&file_id=$2 [L]
    
    # normal links #
    RewriteRule ^members/(.*)$ /$1 [L]
    RewriteRule ^help/(.*)$ /$1 [L]
    RewriteRule ^get/(.*)/(.*)/(.*)$ /get_file.php?file_id=$1&time=$2&filename=$3 [L]
    
    # error docs #
    ErrorDocument 404 /error_404.php
    
     
    #1 BitClusterUK, Jan 29, 2013
    Last edited: Jan 29, 2013
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you asked your Hosting Provider about this point?
     
Loading...

Share This Page