Cannot get script to run

carlgale

Verified User
Joined
Oct 12, 2006
Messages
34
Hi,

Bit stuck trying to run a script which worked fine on my old cpanel dedicated server.

When I try and run the script it is telling me the following

Warning: is_executable(): open_basedir restriction in effect. File(/usr/local/bin/curl) is not within the allowed path(s): (/home/xxxx/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/xxxx/domains/domain.com/public_html/suite/controllers/InstallController.php on line 510
Failed: cURL with OpenSSL is required. This software was unable to run exec("/usr/local/bin/curl") where the path to cURL is defined in config.php. Either you are running PHP in Safe Mode, or you do not have cURL installed

I have checked and I have both Curl installed and also PHP Safe Mode turned off so I am out of ideas.
"
Latest version of curl: 7.21.6
Installed version of curl: 7.19.3"


Anyone have a suggestion as to what I could try next please
 
hi

thanks for the reply. Just tried to install openssl and the system told me Package openssl-0.9.8e-12.el5_5.7.x86_64 already installed and latest version
Package openssl-0.9.8e-12.el5_5.7.i686 already installed and latest version
 
ok, could you share the command for doing that please. I was unable to find one which would install this version.
 
thanks for your help so far, could I trouble you with one more issue?

I managed to get the script working on this account but I have now got the same problem when trying to run the same script on a different reseller account on the same server. Both accounts have the same setting etc so in theory it should work I would think?
 
I installed it as root so it should work for all accounts I would imagine? May have to drop DA soon, it's starting to be more hassle than it's worth getting things working
 
Ok im lost with something.. yes if curl and openssl-devel are installed by root (that normal) should work for everyone.. so.. what error is having the reseller? Have you checked openbasedir?
 
the exact error is (and was identical to the initial error in this thread)

cURL
Warning: is_executable(): open_basedir restriction in effect. File(/usr/local/bin/curl) is not within the allowed path(s): (/home/lpb/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/lpb/domains/xxx.co.uk/public_html/affiliatewindow/suite/controllers/InstallController.php on line 559
Failed: cURL with OpenSSL is required. This software was unable to run exec("/usr/local/bin/curl") where the path to cURL is defined in config.php. Either you are running PHP in Safe Mode, or you do not have cURL installed
 
3 possible errors:

exec("/usr/local/bin/curl") exec function is disabled
the curl file have no right permissions (i presume 755)
the openbase dir option is set as ON for the reseller domain

Btw, this is not related to DA Control Panel so i dont understand why you wanna change panel for those kind of errors.... but, is your personal choise.

Regards
 
thanks for the reply....


have checked all three of the things you mention and they are all in the correct state. The thing I don't understand is if it's a general curl problem then the same script installed under a different reseller shouldn't be working either
 
so exec function is not in disable_function in php.ini
curl is 755
openbase_dir is OFF
...

mmmh.. safemode? suhosin? curl path is the right path?

Honestly ive not other ideas atm...sorry
 
yes to all of those.


I guess I'll go back to Cpanel, scripts run without error on a Cpanel server, All I have to do is upload them and i'm away
 
Back
Top