500 Internal Server Error

passgad

New member
I am a new hosted member.

I have transferred all my website files (the web site is working fine on my local PC) by FTP to the server in /public_html/

I can load my index.html into the browser just fine but not PHP pages.

I get this error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@passgad.gi9.co and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at passgad.gi9.co Port 80



Do I have to activate something (or give some permissions) for the server to process PHP pages ?
 

Genesis

Administrator
Staff member
Would be helpful if you provide your cpanel name (refer the Technical Admin's instructions in red on top of the window).

Ways to get your questions answered quicker
To expedite the process of answering the multitude of questions for your hosting account, please include the following information when posting your problems:

Your cPanel username
Detailed description of your problem, including steps to reproduce if necessary
URL to your website to specific problematic page
Screenshot or error text, verbatim

I'm not an expert in PHP however it would make sense that it could be a PHP problem, check the version of the PHP that is being used as the scripts may be on an older version. There is a feature in cPanel where you can change versions. Otherwise best to wait for the technical admin to check it out, but it would be helpful if you provided full information as requested by him in the meanwhile.
 

passgad

New member
Genesis said:
Would be helpful if you provide your cpanel name (refer the Technical Admin's instructions in red on top of the window).

Ways to get your questions answered quicker
To expedite the process of answering the multitude of questions for your hosting account, please include the following information when posting your problems:

Your cPanel username
Detailed description of your problem, including steps to reproduce if necessary
URL to your website to specific problematic page
Screenshot or error text, verbatim

I'm not an expert in PHP however it would make sense that it could be a PHP problem, check the version of the PHP that is being used as the scripts may be on an older version. There is a feature in cPanel where you can change versions. Otherwise best to wait for the technical admin to check it out, but it would be helpful if you provided full information as requested by him in the meanwhile.

Sorry I provided my cPanel username and URL already in another post but forgot it here !

cPanel: passgad
url: http://passgad.gi9.co/
 

Genesis

Administrator
Staff member
Are the permissions on the files set to allow public access? Suggest you check your FTP client help files to see how to set permissions in FTP or you could set them manually in File Manager. All CGI files (all files in the cgi-bin folder) need to be executable by other. The value for this is 755 (readable by User, Group, and World, writable by User, executable by User, Group, and World). It is not set automatically when you upload files.

Here are some detailed instructions to explain how it works. There is a FTP client suggestion right at the bottom of this article:
http://support.internetplanners.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=167
 

passgad

New member
jaran said:
Its maybe coming from MySQL configuration is incorrect or wrong htaccess variable.

I have change ALL the permissions for 755.

I changed the content of my http://passgad.gi9.co/index.php page to keep it simple (without any MySQL reference; it is a copy of my index.html which is working...) and I still get the same error.

If I check the logs:
[Fri May 09 17:54:11 2014] [error] [client 70.68.150.236] File does not exist: /home/passgad/public_html/500.shtml, referer: http://passgad.gi9.co/
 

jaran

New member
passgad said:
jaran said:
Its maybe coming from MySQL configuration is incorrect or wrong htaccess variable.

I have change ALL the permissions for 755.

I changed the content of my http://passgad.gi9.co/index.php page to keep it simple (without any MySQL reference; it is a copy of my index.html which is working...) and I still get the same error.

If I check the logs:
[Fri May 09 17:54:11 2014] [error] [client 70.68.150.236] File does not exist: /home/passgad/public_html/500.shtml, referer: http://passgad.gi9.co/

Try to empty htacces first. Then let we know.
 

GigaGreg

Moderator
Staff member
The server encountered an internal error or misconfiguration and was unable to complete your request.

It says that the server encountered misconfiguration, make sure that you have configured your script properly.

EDIT:

You should wait for our Tech Admin if you won't solve this problem.
 

passgad

New member
I have deleted the htacces file. Is it what you wanted me to do ?

Still getting the same error: 500 Internal Server Error
 

Genesis

Administrator
Staff member
No, I think Jaran meant you need to clear out your DNS cache. If you don't know already this is how you do it:

1. cmd
2. ipconfig/flushdns

Do that a couple of times

I think it is your php.ini that is the problem. Or there are files missing. I've written to both owner and tech admin to check this out. Kind'a weird as this is the first time we've come across something like this.

In the meanwhile, I'm still Googling the problem, particularly on the error log info you've provided.
 

GigaGreg

Moderator
Staff member
I think that there are lots of reasons for this problem Genesis.

@Passgad you should give us more details so we could fix it for you.
 

passgad

New member
I did ipconfig/flushdns on my machine => error still there.

DJB said:
What script are you using?

Are you asking which version of PhP I am using on my DEV machine ? It's 5.5.12.

I have configured the PhP version in my cPanel (Software/Services > Select PHP Version) to 5.5.


The source of my index.php:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
    <head>
        <title>CANADIAN AQUATICS</title>
        
        <style media="screen" type="text/css">
            html, body, #wrapper {
               margin: 0;
               padding: 0;
               border: none;
               text-align: center;
            }
            #wrapper {
               margin: 0 auto;
               text-align: center;
               vertical-align: middle;
               width: 100%;
            }
            p{
                font-family: arial, Geneva, sans-serif
            }
        </style>
        
    </head>
    
<body> 
    <br/><br/>
 
    <table id="wrapper" border="0">
        <tr>
            <td align="center"><img  src="images/logo.png"/></td>
        </tr>
        
        <tr height="20"><td>&nbsp;</td></tr>
        
        <tr>
            <td align="center"><img src="images/logo_bg.png" style="width:40%" /></td>
        </tr>

        <tr height="20"><td>&nbsp;</td></tr>

        <tr>
            <td align="center" style="vertical-align: top"><p style="font-size: 36pt; color: black;">Coming soon...</p></td>
        </tr>
    </table>

</body>
</html>

This is the same code used in my other file : index.html (which I can load in my browser)
 

Genesis

Administrator
Staff member
I checked another error log of yours in your File Manager and it comes up repeatedly with:
[09-May-2014 11:24:12 America/Vancouver] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Which means that there could be a problem with your php extensions in php.ini.
 

passgad

New member
Genesis said:
I checked another error log of yours in your File Manager and it comes up repeatedly with:
[09-May-2014 11:24:12 America/Vancouver] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Which means that there could be a problem with your php extensions in php.ini.

Good catch Genesis !

This Php.ini was from another site !

I deleted it and boom, everything is working; database included !

Thank you all for your support.