Hi David,
The new features you've introduced are an excellent addition to PT. I have a couple quick questions. Can you tell what is the correct overall file permission (read/Write/execute) for the feeds folder as described in :
http://www.pricetapestry.com/node/4123
"Then give WRITE access to all users - Owner / Group / World."
also do file permissions determines whether Automation Unzip Programs are available? Thanks
Allan
Thanks for the quick response David as always. I had the automation tool working when I first installed the admin update. I'm not sure if my logging on to my PT admin from a different PC will have any affect on it but I will try the suggestions above. thanks
Hi David,
Both unzip and gzip are still showing as unavailable. PHP and CURL are both fine. I checked paths are correct to all using the web panel and Putty SSH. The unzip did work when I first used it but strangely not anymore. I am using Parallels Power Panel on a 1 & 1 Virtual Linux Server. Hope you can help. Thanks.
Allan
Hi Allan,
Unavailable is displayed if the file_exists() call returns FALSE, so with the paths being correct that would indicate that PHP is running in restricted mode without full access to the file system. As you have full command line access via SSH, I would try as follows:
Assuming the path to your website is, for example:
/home/username/public_html/
Create a new folder:
/home/username/bin/
Within that folder, create symbolic links to unzip and gzip as follows:
ln -s /usr/bin/unzip unzip
ln -s /bin/gzip gzip
Finally, change the file locations in config.advanced.php as follows:
$config_automationUnzipPrograms["unzip"] = "/home/username/bin/unzip";
$config_automationUnzipPrograms["gzip"] = "/home/username/bin/gzip";
Hope this helps!
Cheers,
David.
--
PriceTapestry.com
Hi David,
I already have a directory called 'bin', can I call it something else? Also when you say create a new folder is that the same as ctreate a new directory? All this server stuff is pretty alien to me. Thanks
Hi Allan,
Sure - you can use any name you like, e.g. "programs" for example.
However, since your account already has a folder called /bin/ that indicates that it has been set-up specifically for providing access to programs outside the protected "shell" that PHP is running inside, so as an alternative to the above, login via SSH, and then change directory into the /bin/ folder using
cd bin
...and then copy unzip and gzip into that folder:
cp /usr/bin/unzip .
cp /bin/gzip .
...and then use the same $config_automationUnzipPrograms values as above:
$config_automationUnzipPrograms["unzip"] = "/home/username/bin/unzip";
$config_automationUnzipPrograms["gzip"] = "/home/username/bin/gzip";
Cheers,
David.
--
PriceTapestry.com
Thanks David,
All working again! Strange it worked at initial install but not afterwards.
Hi Allan,
The UNIX permissions value that is normally required for Apache/PHP to be able to write to a folder within your website is 666 (e.g. Read/Write for Owner / Group / All). This is because the website folder is typically owned by a user, with that user belonging to a group of the same name (or sometimes ftpusers), whereas Apache does not belong to a group that has Write access, hence the "All" Write access is required.
What may also happen is that if files already exist in the /feeds/ folder that are owned by another user, then Apache/PHP won't actually have permission to overwrite them. If this appears to be happening, delete any files that already exist in /feeds/ that you wish to set-up Automation Tool jobs for and that should do the trick. I'll add a note to this effect to the documentation.
The permissions don't affect which unzip programs are available at all - if these are showing as Unavailable check the paths in config.advanced.php in the $config_automationUnzipPrograms array are correct for your server...
Hope this helps!
Cheers,
David.
--
PriceTapestry.com