Hosting provider upgraded PHP and now my website doesn't work

the_Dsigner

Well-Known Member
Jan 2, 2014
48
1
8
Montreal, Canada
cPanel Access Level
Website Owner
I asked my hosting provider if it was possible to easily upgrade the server PHP version so I could run a new blogging platform that I found on the web. The original version was V5.2.x.x and the minimum for the platform I was looking at installing needed min 5.3. The hosting provider said it wouldn't be a problem and it was a straightforward install and it would be done over the holidays. Fast track to today and I find both my company's current website which is a static html page with php "require" calls for the navbar and a new Magento online store which I was working on in the background have both stopped working. The php require calls no longer bring up my navigation bar and when trying to access the magento site I get a 500 Internal server error. If I go into the cPanel and change the index.php permissions for the magento store from 666 to 664 the site comes back, but certain parts still don't work e.g: The thumbnails for the products listed which are called through scripts dont show up. My hosting provider is being very slow in responding to this big problem and I'm not sure what to do now?

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster @ domain.com 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.
Any ideas? Thanks for your time. Happy New Year!
 

Wabun

Well-Known Member
Oct 6, 2012
89
5
8
Antwerpen
cPanel Access Level
Root Administrator
Hi,

Create a php.ini file in the / of the website [might need in more folders]

content of php.ini file.

display_errors = off
error_reporting = E_ALL & ~E_NOTICE


At least it should stop displaying the errors on the website, so you have time to update/fix your website to be compatible with newer php.

File rights: Depending on how the server is configured, try for folders 755 and files 644.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

I suggest reviewing the full error logs for your website to determine the specific cause of the internal server error message. You can paste a snippet of the log output here for review.

Thank you.
 

the_Dsigner

Well-Known Member
Jan 2, 2014
48
1
8
Montreal, Canada
cPanel Access Level
Website Owner
Hi,

Create a php.ini file in the / of the website [might need in more folders]

content of php.ini file.

display_errors = off
error_reporting = E_ALL & ~E_NOTICE


At least it should stop displaying the errors on the website, so you have time to update/fix your website to be compatible with newer php.

File rights: Depending on how the server is configured, try for folders 755 and files 644.
What do you mean fix to make compatible with newer php? The magento site I have running in the background was supposed to be compatible from V5.2 all the way to the latest. How does it go from working one min and errors the next?

I have already switched the folder containing the magento site to permissions 755 and the index.php file is set to either 666 or 644 and it still doesn't work.

permission644.png

- - - Updated - - -


[Fri Jan 03 09:49:06 2014] [error] [client 69.196.162.201] SoftException in Application.cpp:256: File "/home/thoughtt/public_html/new/index.php" is writeable by group
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
This error:
Code:
[Fri Jan 03 09:49:06 2014] [error] [client 69.196.162.201] SoftException in Application.cpp:256: File "/home/thoughtt/public_html/new/index.php" is writeable by group
tells that permissions of index.php are not correct.
Make sure that all php files have permissions 644, and directories 755.

If file's permissions are 664 it means it's "writeable by group" (as the error message states).
 

the_Dsigner

Well-Known Member
Jan 2, 2014
48
1
8
Montreal, Canada
cPanel Access Level
Website Owner
This error:
Code:
[Fri Jan 03 09:49:06 2014] [error] [client 69.196.162.201] SoftException in Application.cpp:256: File "/home/thoughtt/public_html/new/index.php" is writeable by group
tells that permissions of index.php are not correct.
Make sure that all php files have permissions 644, and directories 755.

If file's permissions are 664 it means it's "writeable by group" (as the error message states).
How come this problem didn't show up with the previous version of PHP with the current permission settings?

Thanks
 

the_Dsigner

Well-Known Member
Jan 2, 2014
48
1
8
Montreal, Canada
cPanel Access Level
Website Owner
I'm put the directory and all php files including index.php as permission 644 and it still is giving me errors.

- - - Updated - - -

[Fri Jan 03 13:47:55 2014] [error] [client 66.249.75.239] File does not exist: /home/thoughtt/public_html/protocol
[Fri Jan 03 13:45:29 2014] [error] [client 66.249.75.193] File does not exist: /home/thoughtt/public_html/404.shtml
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Please ensure you only post the specific error messages related to the website error message. There is no need to post the full output with all "File Does Not Exist" error messages. It looks like you will have to receive assistance from your web hosting provider because the only errors from the error log you posted are for "File Does Not Exist" errors.

Thank you.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
I'm put the directory and all php files including index.php as permission 644 and it still is giving me errors.

- - - Updated - - -

[Fri Jan 03 13:47:55 2014] [error] [client 66.249.75.239] File does not exist: /home/thoughtt/public_html/protocol
[Fri Jan 03 13:45:29 2014] [error] [client 66.249.75.193] File does not exist: /home/thoughtt/public_html/404.shtml

Those have nothing to do with file / directory permissions, seems like googlebot requesting file(s) that do not exist.
They don't prevent your site from working.
 

MesinHosting

Member
Mar 25, 2011
13
0
51
from reading from your posted. i have separated two different topic regarding to your problems.

the first one you need and want to upgrade php version from php v.5.2 to php v.5.3. but it's cant be made by your host.
second, i think you have a problem with file permission on your server.

this typical question have different essential and has nothing the same one and other.

for the first question. i suggest you to move from your old host to new host. now so many hosting were used cloudlinux os and find the fit one for you. on this typical hosting, you can choice your own php version. i guest now starting from php 5.2 to 5.5 at current momment. beside, cloudlinux much better and newer rather than old typical hosting os.

and for the second question i think it's can be solved by runing
[root]# chown youruserid:yourusergroup /path/yourfile.php

or you can read the php manual about chown and chmod

i hope it's will solved your problems