httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rasmus Lerdorf <ras...@apache.org>
Subject Re: [users@httpd] An awful lot of lstat()'ing going on
Date Sun, 29 Feb 2004 22:47:41 GMT
This looks like a realpath() call.  Do you have open_basedir checking
turned on in your php.ini file?  If so, turn it off.

Also, AllowOverride All is a bad idea.  That will make Apache stat each
directory starting at your doc_root down to the active directory for any
.htaccess files on each request.

-Rasmus

On Sun, 29 Feb 2004, Avleen Vig wrote:

> I've tried pretty hard to find an answer to this but I just can't seem
> to. My apache 1.3.29 (compiled from ports on FreeBSD 4.8) is doing a LOT
> of lstating (up to 6 times for each page requested).
>
> The disk in my system isn't particularly fast and this isn't helping ;)
>
> The first thing I tried was adding this into my main config:
> <Directory />
>     Options FollowSymLinks
>     AllowOverride All
> </Directory>
>
> And adding this to the <VirtualHost> for the domain:
> <Directory />
>     Options FollowSymLinks -SymLinksIfOwnerMatch
> </Directory>
>
> But when I truss one of the httpd children, I still see a LOT of this:
> __getcwd(0xbfbf77d0,0x400)                       = 0 (0x0)
> lstat("/usr",0xbfbf72d0)                         = 0 (0x0)
> lstat("/usr/local",0xbfbf72d0)                   = 0 (0x0)
> lstat("/usr/local/www",0xbfbf72d0)               = 0 (0x0)
> lstat("/usr/local/www/htdocs",0xbfbf72d0)        = 0 (0x0)
> lstat("/usr/local/www/htdocs/legolas.com",0xbfbf72d0) = 0 (0x0)
> lstat("/usr/local/www/htdocs/legolas.com/phpBB2",0xbfbf72d0) = 0 (0x0)
> lstat("/usr/local/www/htdocs/legolas.com/phpBB2/includes",0xbfbf72d0) = 0 (0x0)
> lstat("/usr/local/www/htdocs/legolas.com/phpBB2/includes/functions.php",0xbfbf72d0) =
0 (0x0)
> open("/usr/local/www/htdocs/legolas.com/phpBB2/includes/functions.php",0x0,0666) = 7
(0x7)
>
> I was under the impression that if FollowSymLinks was set, the only
> thing lstat()'ed would be the file requested, and not each directory
> leading up to it?
>
> --
> Avleen Vig
> Systems Administrator
> Personal: www.silverwraith.com
> EFnet:    irc.mindspring.com (Earthlink user access only)
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message