Re: what am I doing wrong? PHP5 on Fedora

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

 



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

It is also recomended to remove the apache binary rpm packages from
you system as root: rpm -e apache*
Then go to you /etc/init.d/ directory and create a shell script naming httpd_start: containing: #!/bin/bash


/usr/local/apachectl start

and another shell script naming as httpd_stop containing:

/usr/local/apachectl stop


go to /etc/rc.d/


and create symlink (ln -s /etc/init.d/httpd_start /etc/rc.d/rc3.d/S27httpd and rc5.d/S27httpd) in dirs rc3.d and rc5.d pointing to /etc/init.d/httpd_start naming S27httpd


and then restart and it should work.
you can set permissions recursively this way: chmod -R 666 /usr/local/apache/htdocs (to doc root)



hello troby















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