I've installed PT "successfully" however the admin/support info says:-
Automation Handlers
php Available
curl Available
Automation Unzip Programs
unzip Not Available
gzip Not Available
CRON
Option 1 Not Available
I've tried the alternative automation edit shown here: http://www.pricetapestry.com/node/5029
but it does not give "available" either.
The install is on a fresh installation of CENTOS6 and Kloxo control panel.
when I check unzip and gzip at the command line, the programs run fine (under root user)
I have this on a dedicated server, so I have full root access to change anything needed
Please help - most feeds are zipped these days, so I can't really proceed with further installation and customisation until this problem is solved.
Hi David,
Thanks for the welcome and the quick reply (I wasn't expecting anything until tomorrow!)
The link is:
{link saved}
Hi,
Thanks for the link - it does look like it's an openbase_dir issue, however I see that the "Master Value" is no value which means that it is being set after the main php.ini. I searched regarding Kloxo control panel and this setting, and it looks like you need to login to Kloxo as the admin user, navigate to the domain you wish to configure, go to "Misc config" and from there it looks like you should be able to "disable openbasedir" and update the settings.
The forum topic I found does go on to indicate that Kloxo supports individual per-domain php.ini files, but looking at the Additional .ini files parsed section of your phpinfo() output this doesn't appear to be the case in this situation as the only additional files parsed are PHP extension specific files from /etc/php.d.
That should be all it is but if you're not sure of course let me know and I'll help you check it out further...
Cheers,
David.
--
PriceTapestry.com
Hi David,
Thanks ever so much for your quick reply. I have found the "Misc config" option and you were right that "disable openbasedir" was unchecked, so I checked that box and rebooted the server. Still no joy though, it still says unzip and gzip unavailable.
Any further suggestions?
Steve.
Hi Steve,
Yes - I see that phpinfo() is still showing an open_basedir of:
/home/admin:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script:/home/kloxo/httpd/disable/:
This was one of the threads I came across which elaborates on the setting to locate within the control panel (last post - with reference to "domains -> your domain-> Web : apache ->Misc Config".
I also found this page which references domain specific config files - see if you have
/home/httpd/example.com/
/home/httpd/example.com/conf
or maybe (from looking at the current values)
/home/kloxo/httpd/example.com/
/home/kloxo/httpd/example.com/conf
...in which you may find a php.ini, check for open_basedir=.... and delete the line (although you might want to make a backup copy first - I always rename files e.g. php.ini.orig before making changes!) - don't forget to restart Apache after making changes, it shouldn't be necessary to reboot, just (as root)
/etc/init.d/apache2 restart
If still not joy if you're happy to give me temporary access to the server feel free to email me with temporary access details and I'll login and check it all out for you...
Cheers,
David.
--
PriceTapestry.com
php.ini was found at
/home/httpd/{link saved}/
but there is no open_basedir value anywhere in there (I did a search!)
I have emailed you login details, good luck.... I am stumped!
Steve
Hello Steve,
Thanks for the temporary server access. I have followed up by email, but for the benefit of the thread should anybody else discovering a similar issue with the same control panel find this page, I located where open_basedir is configured for the domain in the file:
/home/apache/conf/domains/example.com.conf
...in which is a line beginning
php_admin_value open_basedir
This line can be commented out, and then after a restart of the web server access to all required scripts for unzip, gzip, and cron command derivation will work fine.
Cheers,
David.
--
PriceTapestry.com
Can I just add my thanks to David on this thread for the speedy response to this noodle-scratcher of a problem. I have been using Centos 5 & 6 servers coupled with Kloxo for a few years now, while I don't consider myself to be a *nix expert by any means, I've configured enough servers to know a hell of a lot. Still, this one stumped me.
Confirm, the feature is now available.
Thanks again.
Steve.
David,
I'm still having problems. When I import a ZIP or GZIP'd file, it now says UNZIP FAILED. Also, it's not storing the file in /feeds/ (or that I can see). I tried fetch.php and it says its fetching but then says unzip failed. The compressed file doesn't seem to download, but I'm not sure what is going on.
I tried your alternative automation.php but that didn't work either (phpgzip remained "unavailable").
The login details are as before, can you have another look please?
The compressed files I am trying to download are from Affiliate Window - I've tried 3 different merchants with both XML and CSV and tried compression with both ZIP and GZIP, none will work.
Help!
Appreciate your assistance.
Steve.
Hi Steve,
All up and running - i've put in place a more recent version of the PHP gzip implementation modification - using your FTP program download includes/automation.php to update your local copy.
I also tested the AW URL with both /compression/zip/ and /compression/gzip/ and both have worked fine - so you should have no problems with other networks requiring one or the other. The oakfurnitureland.csv feed is now ready and waiting in your /admin/ home page for registration!
Cheers,
David.
--
PriceTapestry.com
Ahh, you are a star. In a way, I'm glad it was nothing I was doing. I was tearing what little hair I have left out :-)
Confirm that feed is all working as it should be.
Thanks again.
Steve.
Hello Actual and welcome to the forum!
You just caught me this evening, but with a dedicated server and root access - don't worry - we'll be able to get everything working in the most efficient way possible, but what it sounds like is a PHP configuration restriction - most likely open_basedir (as Safe Mode is rarely used these days).
Have a check through the Software Version and Configuration Check Script page which has links to PHP setting information relating to the reasons why unzip and CRON options may be shown as unavailable, which can be found here.
If still no joy let me know and if possible, if you could create a "phpinfo.php" script on your installation containing just the following code:
<?php
phpinfo();
?>
...and let me know the URL to the script (I'll remove before publishing your reply) I'll check it out for you as soon as I'm back online properly first thing tomorrow...
Cheers,
David.
--
PriceTapestry.com