My sites (I have multiple drupal sites) are/were running fine under Apache 2.x,
but under even light loads I was running out of memory, and this was slowing
things down (I have a virtual host with limited memory).

I tried removing unnecessary Apache modules, reducing child processes etc.
That helped somewhat, but I really needed a better answer.

lighttpd seemed promising. I installed the lighttpd 1.4 rpms on Fedora Core 3.
I had to make a new php binary with fastcgi enabled.

Simple things (html pages, phpinfo(), simple PHP MySQL db connect etc.) work OK
with lighttpd. But my drupal sites aren't working.

I thought it might be a problem with my lighttpd virtual host setup, but
aside from Drupal, my vhost setup seems OK.

It seems like Drupal's trying to read the default /drupal-4.6.2/sites/default/settings.php
instead of the site-specific settings. Or Drupal isn't reading any settings at all.
When I switch to Apache, everything runs fine, so I think the problem is either with
lighttpd or the new fastcgi-PHP which I built.

Note per the lighttpd documentation, I configured my new, fastcgi-PHP
binary with only these config options :
./configure --enable-fastcgi --enable-discard-path --enable-force-redirect

There doesn't seem to be much on lighttpd in the forums, so any help would
be welcome.

Error message :

Warning: mysql_connect(): Access denied for user: 'username@localhost' (Using password: YES) in /var/www/html/drupal-4.6.2/includes/database.mysql.inc on line 31
Access denied for user: 'username@localhost' (Using password: YES)

Comments

DKL64’s picture

OK, I made some progress. It helps to read the instructions ;-)

I needed to change the session.save_handler in php.ini to
"user" (not default of "files"). This is needed since lighttpd
doesn't support .htaccess settings.

But now I get an error of form :
No input file specified.

:-/

http://luhman.org