You are here: Re: Curl fails with Apache - but works in Command Line « PHP Programming Language « IT news, forums, messages
Re: Curl fails with Apache - but works in Command Line

Posted by BinnyVA on 11/06/06 17:27

Hello everyone,

I have solved this problem - the cause was SELinux.

After a while, I gave up on curl and tired to access the url using
fsockopen - the script failed with a 'Permission denied' error. A
search later, I found this was due to SELinux.

So I disabled SELinux...
Open /etc/selinux/config
Add the line 'SELINUX=disabled'
Reboot the system
Note : You have to be root to do this.

Now both fsockopen and curl is working fine.

> --
> Binny V A
> http://www.bin-co.com/php/ - Many PHP functions

 

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

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