Support

Site Restoration

#12596 How do I run kickstart to extract into a sub-directory of my main site folder

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 nicholas on Friday, 08 June 2012 12:05 CDT

user64512
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? As much as possible
Have I searched the tickets before posting? As much as possible
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 1.7
PHP version: 5.2.17
MySQL version: 5.5.23-55
Host: Hostgator (Linux)
Akeeba Backup version which took the backup: 3.4
Kickstart version used to extract the backup: 3.5.1

Description of my issue:

I have an existing legacy website (old HTML) which I prefer not to overwrite. I was hoping to install my new Joomla 1.7 based site into a sub-folder of the /public_html folder. It looks like kickstart.php will run if it is in the /public_html folder but I get an "Internal Server Error" with an additional 404 error. I've temporarily set the file permissions on my sub-folder to be 777.

I used Akeeba to backup my local version of my Joomla website and I've ftp'd that to the sub-folder on my hosted website. I did use binary transfer, not ASCII.

Is it not possible to extract into a sub-folder? Or do I need additional installation files in there other than kickstart.php and my jpa file?

nicholas
Akeeba Staff
Manager
You lost me somewhere. Do you get the Internal Server Error when you try running Kickstart in your site's root or the subdirectory?

In any case, a white page or a page with a 500 Internal Server Error is, in fact, either a .htaccess issue to a PHP fatal error in disguise.

First, let's see if it is a .htaccess issue. Try renaming the .htaccess file in your site's root (the parent directory to your subdirectory) to htaccess.bak If that solves the problem, the issue was with a directive in your .htaccess file. We'd like to recommend you to try removing directives from your .htaccess until you find the one which causes the problem.

If that doesn't help, the error you are receiving is in fact a PHP error in disguise. First, check your server's error logs (not the access logs) immediately after visiting the page which throws the error. There should be an exact description of the PHP fatal error which occurred. Sometimes you can find the error messages in files called error_log or error.log inside the directory Kickstart is in. If unsure about the error log location, please consult your host. Most likely the error logs are available in your site's cPanel, Plesk control panel or similar hosting account management facility. Try accessing Kickstart, immediately go to the error log and copy the PHP fatal error message here.


If you still get a white page, edit the .htaccess file in your site's root. If you don't have a file named .htaccess create a new one. Beware that htaccess.txt is a DIFFERENT FILE and will NOT work! Add the following to the end of the file:
php_flag display_errors On
php_value error_reporting 32767
and retry loading Kickstart. Once you get the error message, copy it here and remove those two lines from .htaccess.

If none of these methods work, we're stuck and it's impossible to debug this issue. In this case you can try the scenic route. Extract the backup archive locally using Akeeba eXtract Wizard. Then upload all extracted files to your site's subdirectory. Let's say that your subdirectory is called test. Now visit http://www.example.com/test/installation/index.php with your browser, where www.example.com is, of course, to be substituted with your site's domain name. If the restoration page doesn't come up we're stuck. Most likely there is a conflicting .htaccess directive in your main site's .htaccess which doesn't allow the files in the subdirectory to be accessed or the permissions of the uploaded files and/or the directory you created cause this issue. In that case try giving the directory 0755 permissions. For all of its contents, give its directories 0755 permissions and all files 0644 permissions.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user64512
I get the internal server error when I start in the sub-directory.

If I start in /public_html then kickstart starts ok but I haven't gone further than that as I want to extract into the sub-directory.

I have an empty .htaccess file in my /public_html directory

Found the error log in cpanel (thanks for that tip)...two lines at the top...

[Fri Jun 08 11:56:53 2012] [error] [client 92.7.140.214] File does not exist: /home/visualre/public_html/500.shtml

[Fri Jun 08 11:56:53 2012] [error] [client 92.7.140.214] SoftException in Application.cpp:256: File "/home/visualre/public_html/rezen/kickstart.php" is writeable by group


Does that help?

nicholas
Akeeba Staff
Manager
Yes, it's very helpful! Give kickstart.php 0644 permissions and you're set.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
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!