Jump to content

Upgraded to php7 and now website does not work


Recommended Posts

Posted

Hi guys

Upgraded to php7 and now website does not work

However what I found was that if I delete the .htaccess file then the homepage loads, but if I click on any link to go to a post for example then I get:

Not Found

The requested URL /forums/ was not found on this server.

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

 

 

The contents of the .htaccess file are:

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

 

If I try and load the site in firefox then it tries to download the file: application/x-httpd-ea-php56 (398 bytes)

 

Please advise

 

Thanks

 

B

 

Posted

For technical support please submit a ticket via your client area. You're likely to get better help there anyways. I'm assuming you are self hosted, but are you on a shared server or VPS/Dedicated?

 

PS, I found THIS file very helpful in finding out the problems:

 

 

Upload, and then browse to it.

Posted

Server configuration issue. Contact your host not IPS. 

It's likely that removing the htaccess is defaulting to php 5.6. Something may be wrong with php 7 your server. 

Posted
2 minutes ago, Aiwa said:

Server configuration issue. Contact your host not IPS. 

It's likely that removing the htaccess is defaulting to php 5.6. Something may be wrong with php 7 your server. 

True. I'd be interested to see still what the "Get Ready" file says, and what type of hosting they're on, or if they're self-managed.

Posted
20 hours ago, Lord Nowe said:

For technical support please submit a ticket via your client area. You're likely to get better help there anyways. I'm assuming you are self hosted, but are you on a shared server or VPS/Dedicated?

 

PS, I found THIS file very helpful in finding out the problems:

 

 

Upload, and then browse to it.

Hi

I am on a self managed dedicated server

 

Here is the output of the file:

 

image.thumb.png.786c1d0011655ed37967f1ac3000c625.png

Any other suggestions?

I think this is a clue, when you load the site in firefox it tries to make you download a file: : application/x-httpd-ea-php56 (398 bytes)

Posted

I just checked the php.ini file and it makes references to php56

 

Example: "PHPSESSID"
hash_function                            = 0
save_path                                = "/var/cpanel/php/sessions/ea-php56"
use_strict_mode

 

Is the fix to just change the values directly in this file to ea-php70

 

?

 

Thanks

Posted

Are you doing this through WHM or Cpanel? If you're doing it through WHM, I suggest using EasyApache4 to manage the php version. It shouldn't be referencing 5.6 if 5.6 isn't installed.

Regards,

Nowe

 

Edit: another thought just occured to me. Have you changed anything else about the environment? Added nginx, enabled PHP-FPM, etc? Or was it just the swap from 5.6 to 7.0?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...