Re: away from Fedora linux for a while and now this ...HELP

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

 



On Sat, 2012-08-25 at 01:54 +0200, Sebastian Krebs wrote:

> Am 25.08.2012 01:41, schrieb Fred Silsbee:
> > Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
> >
> >
> >
> > Fatal error:  Unknown: Failed opening required '/var/www/html/log_book_MySQL.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
> >
> > had to use Fedora yumex(yum) to install php
> >
> > PHP Version 5.4.5 is seen in phpinfo
> > before now,  php was there and ready after Fedora install
> >
> >
> 
> Hi,
> 
> I guess you created the file yourself (with your user account) and want 
> to watch it within your browser via your webserver? The last one usually 
> runs under the "www-data:www-data" (debian. Guess Fedora takes it 
> similar) user:group. So, either change the owner, or change the permissions.
> 
> An example
> 
> | chmod g+rw /var/www/html/log_book_MySQL.php
> | chown www-data:www-data /var/www/html/log_book_MySQL.php
> 
> and add yourself to the group www-data. Don't know, how it can be done 
> in Fedora. Debian uses usermod, but as far as I know it's a debian tool(?).
> 
> Regards,
> Sebastian
> 


It could also be good ol' SELinux getting in the way. Sometimes (on a
whim it seems) it denies access to a file completely. You need to set
the extra permissions that SELinux uses on that file, or disable SELinux
completely. I ended up going the disable route as this is also my
desktop machine, and SELinx wasn't playing nice with other apps like
Chrome.

-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk



[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