Re: Re: fopen permission denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi James,

 Ok, so I tried taking your advice. And set the mode and group accordingly:

[root@web1:~] #ls -lh /var/www/php-webdev/orders/orders.txt
-rw-r--r--. 1 apache users 0 Dec 27 21:47
/var/www/php-webdev/orders/orders.txt

However the result didn't change. I get the same failure when trying to
write to the file:

*Warning*: fopen(/var/www/php-webdev/orders/orders.txt): failed to open
stream: Permission denied in */var/www/php-webdev/ch01/processorder.php* on
line *50*

Thanks
Tim

On Sun, Dec 28, 2014 at 1:27 PM, James Moe <jimoe@xxxxxxxxxxxxxx> wrote:

> On 12/28/2014 11:03 AM, Tim Dunphy wrote:
> > -rwxr-xr-x. 1 apache apache 0 Dec 27 21:47
> > /var/www/php-webdev/orders/orders.txt
> >
> Is there a reason why it is marked as an executable? Such files are
> normally 0644 or 0664.
>
> Another option is to set the group to "users" and add apache to that group.
>
> --
> James Moe
> jmm-list at sohnen-moe dot com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux