Project

General

Profile

Lighttpd + Mysql5 + PHP5 with fastcgi installed on Mac OX 10.4

Added by cmweb almost 14 years ago

The problem is this..

on my MacMini running OSX 10.4.11 using macports, installed the following:

1) lighttpd 1.4.6 with ssl varient
2) I have installed mysql5 server 5.1.48
3) Php5 5.3.2 with fastcgi -mysql5 and +pear varients

I have attached the following config files:

1) lighttpd.conf - located at "/opt/local/etc/lighttpd/lighttpd.conf" with root:admin having "-rw-r--r--" access
2) php.ini - located at "/opt/local/etc/php5/php.ini" with root:admin having "-rwxrwxrwx" access

As you can see, I have uncommented the following lines in the lighttpd.conf file:

mod_rewrite
mod_redirect
mod_access
mod_auth
mod_fastcgi
mod_accesslog

and uncommented the "fastcgi.server" as follows..

fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/opt/local/var/run/lighttpd/php-fastcgi.socket",
"bin-path" => "/opt/local/bin/php-cgi"
)
)
)

the "socket" path to folder "lighttpd" has root:admin with "drwxr-xr-x" access and
the file "php-fastcgi.socket" has root:admin with "drwxrwxrwx" access.

When I boot up the mac and try to access my server I get "Unable to Connect" error in Firefox 3.6.8 and "Safari can't connect to the server" in Safari 4.1.1.

When I try to manually start Lighttpd using "sudo lighttpd -f /opt/local/etc/lighttpd/lighttpd.conf -D", I am returned to the prompt with out any confirmation ( nothing happens ) and the pages still does not load.

When I comment out the mod_fastcgi line in lighttpd.conf, and reboot the mac, the webpage loads fine with no problems except i have no php support ( I have the standard php.info file set-up in my web server's root folder.)

What am I doing wrong here?


Replies (4)

RE: Lighttpd + Mysql5 + PHP5 with fastcgi installed on Mac OX 10.4 - Added by crushmaster almost 14 years ago

What about your errorlog? /cmwebdev/log/lighttpd/error.log Try:

tail /cmwebdev/log/lighttpd/error.log

Does your PHP installation work without lighty? Use:
/opt/local/bin/php-cgi -v

on the commandline and let us know what happens. You do not
have to restart your Mac to test new things. Just restart the service.

RE: Lighttpd + Mysql5 + PHP5 with fastcgi installed on Mac OX 10.4 - Added by cmweb almost 14 years ago

Crushmaster,

"Genius comes in small ways...."

Thank you so much. I checked the lighttpd log file and found that the issue was one of permissions. I provided full permissions to the /opt/local/var/run/lighttpd folder and this resolved my problem. If we would only learn to read the error logs!!

Stay cool!

Cmweb

RE: Lighttpd + Mysql5 + PHP5 with fastcgi installed on Mac OX 10.4 - Added by cmweb almost 14 years ago

One last question....how do I close this ticket as resolved?

thanks.

RE: Lighttpd + Mysql5 + PHP5 with fastcgi installed on Mac OX 10.4 - Added by crushmaster almost 14 years ago

This is just the support forum. So if you haven't opened a real ticket (http://redmine.lighttpd.net/projects/lighttpd/issues) you do not have to close something.

Greetings :)

    (1-4/4)