Re: what am I doing wrong? PHP5 on Fedora

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

 



tr wrote:
tr  wrote / napísal (a):

John Nichel  wrote / napísal (a):

blackwater dev wrote:

I just went ahead and installed apache from source with apxs then
recompiled php5.  I then created a info.php file which simply prints
out phpinfo but get this error now.


Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0


Warning: Unknown: Failed opening '/usr/local/apache2/htdocs/info.php'
for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line
0

Thanks!




*sigh*

http://groups-beta.google.com/groups?hl=en&q=%22Permission+denied+in+Unknown+on+line+0%22&qt_s=Search+Groups

http://www.linuxquestions.org/questions/history/211964

as root switch to htdocs
and chmod 666 info.php
troby

<snip>
you can set permissions recursively this way: chmod -R 666 /usr/local/apache/htdocs (to doc root)

Do NOT do this.

1) You will make all your files world writeable...not good

2) By giving it the -R, you will have effectively taken away execute permission from not only /usr/local/apache/htdocs, but all the directories beneath it. Directories need to have execute permission to be 'seen'.

Take a little time to read and understand your filesystem and it's permission levels.

--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com

--
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