moving a site problems: php version issues?
Permalink
I was developing and running a site in a subfolder of a testing server at bluehost. Now I moved the site according tohttps://www.concrete5.org/documentation/installation/moving_a_site/... to a new host and registered the new domain.
I used phpMyAdmin at both ends to export and import the site files from the concrete5/htdocs folder on my localhost to the target host.
There was no sitemap.xml file on my running site so I just ignored that.
After the move, entering the URL, results in a download dialogue box offering to download a file called "download" with the exact content of the index.php file, which is:
<?php
require('concrete/dispatcher.php');
It doesn´t open any html file at all. I went into the .htaccess file which says:
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
So I checked with my hosting company and was told that they run version 5.3.3
But according to the Conrete5 system requirements php 5.3 should be fine. My site was built with concrete version 5.6.2.1 so I tried to do a fresh install of concrete 5.6.2.1 in a subfolder on my new host, but had the same result: dowload window and no html at all!
Any idea how to solve this?
Thanks!
I used phpMyAdmin at both ends to export and import the site files from the concrete5/htdocs folder on my localhost to the target host.
There was no sitemap.xml file on my running site so I just ignored that.
After the move, entering the URL, results in a download dialogue box offering to download a file called "download" with the exact content of the index.php file, which is:
<?php
require('concrete/dispatcher.php');
It doesn´t open any html file at all. I went into the .htaccess file which says:
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
So I checked with my hosting company and was told that they run version 5.3.3
But according to the Conrete5 system requirements php 5.3 should be fine. My site was built with concrete version 5.6.2.1 so I tried to do a fresh install of concrete 5.6.2.1 in a subfolder on my new host, but had the same result: dowload window and no html at all!
Any idea how to solve this?
Thanks!
You could try simply commenting out the AddHandler line of htaccess.
If that does not work, you can try changing the php version in the AddHandler to match the php version you have available. However, you will probably need to contact your host for the precise details as it could depend on how they have set other configurations.