Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
bad man Posted October 18, 2017 Posted October 18, 2017 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
AlexWright Posted October 18, 2017 Posted October 18, 2017 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.
Aiwa Posted October 18, 2017 Posted October 18, 2017 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.
AlexWright Posted October 18, 2017 Posted October 18, 2017 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.
bad man Posted October 19, 2017 Author Posted October 19, 2017 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: 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)
bad man Posted October 19, 2017 Author Posted October 19, 2017 Also my ipboard licence needs to be renewed, is this issue caused by the licence?
bad man Posted October 19, 2017 Author Posted October 19, 2017 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
AlexWright Posted October 19, 2017 Posted October 19, 2017 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?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.