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

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

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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