You are here: Re: error_log « All PHP « IT news, forums, messages
Re: error_log

Posted by J.O. Aho on 11/04/05 09:55

Kilo Bravo wrote:
> Warning: error_log(/usr/local/apache/websites/errors.log): failed to open stream: Permission denied
>
> What is this error trying to tell me? It is coming from a simple file with just one line in it:
>
> error_log ("test", 3, "mypath/to/error.log");
>
>
>

the file /usr/local/apache/websites/errors.log isn't read/write-ble for php
(the user the web server is run as), take a look at the file with

ls -l /usr/local/apache/websites/errors.log

User and group should be apache (if you have apache as the user running the
apache server, it's a bit different depending on linux distro and how outdated
version you are using). Even if the file is okey, the directories to the
location has to be readable for the web server. To change ownership of a file
use chown, for change privileges use chmod, if you don't know how to use them,
then run:

man chown
man chmod


//Aho

 

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

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