Support

Site Restoration

#24156 Local restoration fails : You choose to open index.php from your site

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by tampe125 on Tuesday, 12 January 2016 01:30 CST

titi333
 I have a problem in local restoration of a running main web site.
When finishing clean up step, I want to
visit my site’s front end
or visit my site’s back end,
a new window opens saying:
You choose to open index.php from your site
What Firefox must do:
Open with
Download record…..

I did a first backup using com.akeeba 4.5.1, restore with kickstart 4.1.2, get this above issue
Then a second backup using com.akeeba 4.5.1 pro, restore with kickstart pro 4.1.2, get same issue.
On second test, Alice don’t show any error on backup.


My web site is hosted by o2switch.
O2switch allows to host several websites on same account.
File organization is like that:
public_html /my main web site
/sites/second site
/third one
/fourth one
I exclude /site from my main web site backup before backup.
The problem is only about my main web site, other sites are locally restored correctly.


Distant site is using php 5.5.30
Local php 5.5.38

Distant site is using mysql 5.5.46-37.6
Local mysql is

Attached is log file

If you need other information, please ask.

Thank you

tampe125
Akeeba Staff
Hello,

it seems that your local website is not configured properly to handle php files instead of downloading them.
Please update your .htaccess file and add this line:
AddHandler application/x-httpd-php5 .php
That should fix your issue.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

titi333
Hello,
I already have something in my current .htaccess

#PHP 5.5 :
<FilesMatch \.php$>
SetHandler application/x-httpd-php55
</FilesMatch>
AddHandler application/x-httpd-php55 .php

What do you suggest to modify ?

Thank you

tampe125
Akeeba Staff
Oh ok, now I got it.
Please remove all the above lines, that should fix your issue. Since you are on localhost there's no need to set a specific handler.
Just to be sure, which operating system are you using locally (windows, mac, linux)?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

titi333
Hello

I am using Mac OSX Snow leopard and MAMP.
If I remove all content in .htaccess
it works fine.

Thank you very much.

You can set this ticket as closed

tampe125
Akeeba Staff
you're welcome!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!