Re: what am I doing wrong? PHP5 on Fedora
| From: | John Nichel | Date: | Fri, 31 Dec 2004 01:24:35 +0000 |
| Subject: | Re: what am I doing wrong? PHP5 on Fedora | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205402@lists.php.net to get a copy of this message | ||
tr wrote:
tr wrote / napísal (a):John Nichel wrote / napísal (a):blackwater dev wrote:as root switch to htdocs and chmod 666 info.php troby <snip>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
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.comyou can set permissions recursively this way: chmod -R 666 /usr/local/apache/htdocs (to doc root)