Support

Akeeba Backup for Joomla!

#9274 Directories are messed up, I think.

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
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

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Thursday, 12 January 2012 11:56 CST

user7349
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes. During installation I got a warning about directories. I thought I corrected them by adding the new directories with permissions. Guess I was wrong.

Have I searched the forum before posting? Yes. I've found similar problems but I can't quite seem to get anywhere.

Have I read the documentation before posting (which pages?)? Yes. Tried looking at chapter 2.
Joomla! version: Joomla! 1.7.0 Stable [ Ember ] 19-Jul-2011 14:00 GMT
PHP version: 5.2.17
MySQL version: (unknown)
Host: hostgator.com
Akeeba Backup version: Akeeba Backup Core3.3.5 (2011-11-01)

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

(CANT FIND A LOG FOR IT)

Description of my issue:

I've just used kickback to install this site. I got a warning about the directories being incorrect. I thought I corrected the issue by adding the directories. I found a post in the joomla forums and tried to follow it.

I can access the front end and back end with no problem. HOWEVER, when I try and install a new extension, the system just hangs. No errors. Just nothing.

I'm assuming that the directories are pretty standard and I just don't understand it. Can you please help me correct this?

Best Regards,

Ben

nicholas
Akeeba Staff
Manager
Actually, it has nothing to do with the borked directories (which are due to a bug in 3.3.5 - you are six versions behind, please upgrade to 3.3.11). It doesn't even have anything to do with permissions or Akeeba Backup itself. What you experience (the blank page) is a server timeout or PHP memory outage. You need to ask your host to help you by increasing both the max_execution_time to 30 or 45 seconds and the memory_limit to something higher (32Mb is tight, 64Mb is good, 128Mb is plenty).

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!

user7349
just checked with hostgator. looks like i've got a whopping 256Mb of memory and the timeout limit is 30 seconds. just tried to install another component again and it's the same problem. any other ideas?

Ben

nicholas
Akeeba Staff
Manager
Hi Ben,

I have one idea, yes! Try disabling the "System - System Restore Points" plugin if it exists and is enabled on your site. This will allow you to install Akeeba Backup Core 3.3.11 which remove this plugin (the whole feature and the bugfixes to it are now available only to the Professional release).

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!

user7349
alright I'll give it a shot!

user7349
Nope. Didn't work. Got this warning from the extension manager though. Can you help me through this?

"The PHP temporary directory is the directory that PHP uses to store an uploaded file before Joomla! can access this file. Whilst the directory not being set isn't always a problem, if you are having issues with manifest files not being detected or uploaded files not being detected, setting this in your php.ini file might fix the issue."

nicholas
Akeeba Staff
Manager
You actually have to ask your host about that. It's a php.ini setting which sets up the temporary directory PHP uses for uploads. Most likely it is a false alarm, as Joomla! will detect the common setting (/tmp) or a blank setting (which PHP replaces with the system's default temporary directory, /tmp) and freak out. On most hosts this is just fine.

What's more. There's still hope! You can actually disable the "System - System Restore Points" plugin. Then, follow our manual installation instructions. Any luck with that?

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!

user7349
I did disable the plugin. Well, actually the plugin was removed when I updated. That's confusing too. I can't upload any new extensions but your component would update. Go figure. So what will a manual installation do? Is that my last best hope? If I do a better upgrade for service, will you go in and correct it for me?

Best,

Ben

nicholas
Akeeba Staff
Manager
Hi Ben,

I am 99.99% sure that you have caught yourself in a "permissions hell". This happens when some of your files/folders are owned by Apache's user, some are owned by your FTP user and using any permissions except 0777 makes it impossible to install most extensions (it depends on the ownership of a crapload of folders and files). Let's try the easy workaround:
- Change all folders' and files' permissions to 0777. You may have to do this twice, one time with your FTP client and one time with your host control panel's file manager.
- Turn off the FTP mode.
- Install Akeeba Backup. It should install.
- Take a backup and store it locally.
- Nuke your site. Remove all files and folders.
- Restore your site from the backup, using Kickstart in FTP mode. IMPORTANT: You MUST select the "Upload using FTP" option in Kickstart, otherwise this solution will NOT work.
- While restoring, enable Joomla!'s FTP option.
- Using Admin Tools, change all file permissions to 0644 and folder permissions to 0755. However you should use the Configure Permissions feature to change the permissions of the tmp, cache, administrator/cache and logs folders to 0777.
- In those four folders with 0777 permissions upload a small text file called .htaccess with the following content:
order deny, allow
deny from all

- Go to your Global Configuration and delete the FTP password. Leave everything else as it is (do NOT disable the "Enable FTP" option).

Now your site should work correctly and every time you are about to install/update an extension you can either provide your FTP password in Global Configuration or type it in in the extensions installer page.

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!

user7349
BTW, I just read through the manual install. So, if I create a clean cpanel account, install joomla, and then do the manual backup, will it wipe out the permissions problems?

Ben

nicholas
Akeeba Staff
Manager
The trick is in how you restore the backup, not taking one. The idea is that all files and folders must be owned by the same user, no matter if it's the Apache user or your FTP user. Problems begin when some files are owned by one user and some owned by the other.

Ultimately, the best solution is using a server with suPHP or Apache's mod_itk which essentially make sure that the Apache and FTP user are the same. Moreover, they ensure that each account uses its own Apache/FTP user, increasing filesystem security.

I think that you already know what I'm going to propose next: transferring your site to a host which uses suPHP or mod_itk, such as CloudAccess.net, iRedHOST or Rochen :) They are slightly more expensive than their cheap competitors, but the increased speed and security pay off BIG TIME. Simply put, you have now wasted a week working around ownership/permissions issues. Multiply the time you spent with how much you'd charge per hour to a client to do that. This is how much money you are wasting on troubleshooting. You realise that this sums up pretty fast and the expensive host (where no such problems exist) is actually much cheaper than the cheap host (where such problems do exist). Cheap hosting is very expensive!

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!

user7349
Thank you for your insight Nicholas. It's invaluable as usual.

nicholas
Akeeba Staff
Manager
You're welcome! I'm happy if I can help :)

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!

user7349
Here's another piece to the puzzle. I can uninstall and sucessfully reinstall one of my components but can't reinstall a new one. Any light on that one?

Ben

nicholas
Akeeba Staff
Manager
It's exactly what I said: Permissions Hell.

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!