Re: another apache/php/redhat question

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

 



Matthias Saou wrote:
redhat wrote :

  
Ok, now that I can call up local host, I am getting an error for my php 
includes. 

I'm assuming that I need to redirect the folders somehow with a link.

The error is:

*Warning*: Failed opening '/home/lokrin/www/www/nav/header.php' for 
inclusion (include_path='.:/usr/share/pear') in 
*/var/www/html/index.php* on line *6*

<?php
include ("/home/lokrin/www/www/nav/header.php");
?>

basically /home/lokrin/www/www is the root directory at my web host and 
/var/www/html is the root directory on my computer.  I don't want to go 
through a few hundred pages and change everything.  Instead I'd like to 
redirect it somehow.  Along with all the subdirectories, of course.

Also, is there a file someplace that shows what hard and soft links 
already exist?  I know I've made a few, such as to certain directories 
on my windows partition, so I don't have to type in the complete path to 
them.

Call me a dummy, but man ln and info ln don't really make a lot of sense 
to me.
    

Seems like you're doing the include from /var/www/html. Probably just the
/home/lokrin directory which still has the 700 default mode, thus locking
out the "apache" user as which the web server is running. Solution : Just
chmod 701 your home directory.

Matthias

  
Nope, I already have it set as 777.


[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux