httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Lynch" <>
Subject Re: [users@httpd] No permission to access files.
Date Tue, 02 Jan 2007 20:52:01 GMT
On Mon, January 1, 2007 4:06 pm, Rod Rook wrote:
> I've been running httpd web server under Fedora Core 4.
> Now, I installed Fedora Core 6 onto another hard drive and configured
> httpd
> server with the same /etc/httpd/conf/httpd.conf as under FC4.
> My web server is running now, but outside browsers get an error
> message of
> no permission to access to the following files: main.php and menu.php.

Exactly what error message is it?

It's something about "safe mode" or "exec_dir"

These are PHP settings from php.ini which have almost nothing to do
with Apache per se.

Compare your old php.ini and the new one, if you can, or turn off
"safe_mode" (which is a horrible name for something that isn't really
all that safe, and which does nothing useful at all if you are running
PHP as a Module, and which is going away in PHP 6 anyway)

You can also relax the restrictions on exec_dir until you can figure
out how to work that correctly, with very little risk -- It really is
only useful for ISPs with shared hosting, for the most part.

> Here is the properties of the files.
> -rwxrwxr-x 1 user_u:object_r:user_home_t      webroot webroot     466
> Feb
> 27  2006 index.php
> -rwxrwxr-x 1 user_u:object_r:user_home_t      webroot webroot    4197
> Feb
> 27  2006 main.php
> -rwxrwxr-x 1 user_u:object_r:user_home_t      webroot webroot     529
> Nov
> 29  2005 menu.php
> The index.php is supposed to execute main.php and menu.php.
> What could be wrong with the file permission properties?
> Thank you.
> pine

Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
Yeah, I get a buck. So?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message