Re: another apache/php/redhat question

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

 



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

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 1 (Yarrow) - Linux kernel 2.4.22-1.2149.nptl
Load : 0.11 0.15 0.14


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[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