You are here: Re: curl problems « PHP Programming Language « IT news, forums, messages
Re: curl problems

Posted by Matthias Leopold on 03/15/07 13:22

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация