Re: curl problems



Matthias Leopold schrieb:
hi

i've got problems getting php4 scripts which use curl to work on RHEL4 (Nahant Update 4) and CentOS 4.4. when the script is accessed the browser "hangs", after a couple of minutes i'm prompted to save the php-file, obviously nothing is executed.

what i've checked:
.) curl in php works with a selfcompiled php5 binary executed via cgi on the same server
.) curl script (actually the example from http://www.php.net/manual/de/ref.curl.php) works on other servers (not rhel/centos)
.) selinux is disabled
.) disabling iptables rules makes no difference
.) apache errorlog doesn't give any hint, regardless of apache and php log levels
.) php rpms are up2date
.) php core config see below

thanks for help
matthias

Configuration
PHP Core
Directive Local Value Master Value
[snip]
open_basedir /home/ldapcustomers/24102-24102/www/htdocs:/usr/local/lib/php:/tmp no value
[/snip]

thanks for answers, the problem was the open_basedir restriction
see http://at.php.net/manual/de/function.curl-setopt.php#71313

matthias
.



Relevant Pages

  • Re: Re: [PHP] exec() Error
    ... cURL through my working PHP script. ... This time, I do not get the "script" output from the script in total.cgi, ... Subject: [PHP] execError ... would be appropriate to invoke a remote script and pass it parameters. ...
    (php.general)
  • curl problems
    ... i've got problems getting php4 scripts which use curl to work on RHEL4 and CentOS 4.4. ... when the script is accessed the browser "hangs", after a couple of minutes i'm prompted to save the php-file, obviously nothing is executed. ... curl in php works with a selfcompiled php5 binary executed via cgi on the same server ... php core config see below ...
    (comp.lang.php)
  • Re: curl problems
    ... i've got problems getting php4 scripts which use curl to work on RHEL4 ... curl in php works with a selfcompiled php5 binary executed via cgi on ... curl script (actually the example from ... executes a connection request. ...
    (comp.lang.php)
  • RE: [PHP] Help needed with Curl
    ... The script is the same on both machines. ... I downloaded a copy of PHP Version 5.2.3 and installed it on Windows ... Everything seems to work fine except for Curl. ... cURL Information libcurl/7.16.0 OpenSSL/0.9.8e zlib/1.2.3 ...
    (php.general)
  • Re: read from standard input?
    ... > Use $_POST when PHP is running in the context of a webserver. ... > PHP from the command line there will be no $_POST. ... Matthias. ... My script gets run when a form is submitted. ...
    (comp.lang.php)