Keyword

(SOLVED) 404 after migrate from a domain to another

  • STEPHAN HERBY
  • STEPHAN HERBY's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 1 month ago - 7 years 4 weeks ago #161094 by STEPHAN HERBY
Hi,
I have a website which recently change its domain.
On the old domain (cgpme.nc) the website works on PHP 7.0.16 with A joomla 3.6.5 and a K2 2.7.1

I moved that website from the old domain to a new one : cpme.nc
I have changed nothing, it is just a Akeeba backup installed on the new domain (cpme.nc).
The Host is the same (Siteground), the account on Cpanel is the same level ...
But now it is impossible to make it run under PHP 7.0.16 again, i get only 404, and only with K2 URL

If I try Docman URL or Joomla Core URL it works on PHP 7.0.16
I get no error message if I enable error to Develomment, just the 404 message.

I have tried to disable all cache things, plugin optimizer like JCH,...
I have tried different htaccess file (include the joomla original one)

For the moment I make this website running under PHP 5.6 and it is OK (the website is in production)
I just don't know where it could come from, but I will be very pleased to have any advice cause i really would like to have my php 7 back :-)
Last edit: 7 years 4 weeks ago by STEPHAN HERBY.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 4 weeks ago #161146 by Krikor Boghossian
Replied by Krikor Boghossian on topic 404 after migrate from a domain to another
Are you using any SEO/SEF extensions?
Furthermore you are using NGINX, so the htaccess files are not being used.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • STEPHAN HERBY
  • STEPHAN HERBY's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 4 weeks ago - 7 years 4 weeks ago #161168 by STEPHAN HERBY
Replied by STEPHAN HERBY on topic 404 after migrate from a domain to another
Hi Krikor,
Thank you for your interest here :)
I found the bug and solve it :
There was a php.ini file which follow the migration.
There were 2 lines in it :
zend_extension=/usr/local/php56/lib/php/extensions/ioncube.so
zend_extension=/usr/local/php56/lib/php/extensions/ZendOptimizer.so
The error was coming from them... I also found a topic on joomla.org talking about this lines and SiteGround hosting.
Their advice was to erase that 2 lines in the php.ini and place 2 lines in the htaccess so the php is version 7 without calling inocule or zend extension which doesn't exist in this version of PHP :
SetEnv PHPRC /home/mysite/public_html/php.ini
AddHandler application/x-httpd-php70 .php .php5 .php4 .php3
I don't have enough knowledge to explain what I did, but it works, so... :-)
But what I still understand (even if it works now) is :
  • How the php.ini can have a "php56" in the path of extension as the website was running on a PHP7 there
  • How it was working there and not in the new domain...
Beautiful mystery of code :-)
Last edit: 7 years 4 weeks ago by STEPHAN HERBY.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 4 weeks ago #161186 by Krikor Boghossian
Replied by Krikor Boghossian on topic 404 after migrate from a domain to another
It's a mystery for me as well since my sysadmin skills are minimal :)
I think you should also contact Siteground about this issue.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum