Categories
-
Recent Posts
- Configure CentOS Firewall From Command Line
- Add CentOS Package From Command Line
- Consume Web Service With Ruby
- Develop Web Service With Ruby on Rails
- Restore MySQL Database
- Install Ruby 1.8.5, Rails, FastCGI on OpenBSD 4.1
- Install MySQL 5.0 on OpenBSD 4.1
- Install Lighttp 1.4 w/ FastCGI on OpenBSD 4.1
- Quick UNIX Reference
- Backup File Using Amazon S3 And Ruby 1.8.4
- Backup MySQL Database
- Install WordPress on OpenBSD 4.0
- Make An ISO File From a CD in UNIX/Linux
- Install/Configure VMWare Server on CentOS
- Update All CentOS Packages From Command Line
Category Archives: PHP
Install Lighttp 1.4 w/ FastCGI on OpenBSD 4.0
Install Packages
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/fcgi-2.4.0p1.tgz
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/lighttpd-1.4.11-mysql.tgz
Example /etc/lighttpd.conf For PHP
$HTTP["host"] == “www.<example>.com” {
server.document-root = “/www/sites/<example>.com/www/”
index-file.names = ( “index.php” )
server.error-handler-404 = “/index.php”
fastcgi.server = ( “.php” =>
( “localhost” =>
(
”socket” => “/tmp/php-fastcgi.socket”,
”bin-path” => “/usr/local/bin/php-fcgi”
)
)
)
}
Example /etc/lighttpd.conf For Ruby on Rails
$HTTP["host"] == “www.<example>.com” {
server.indexfiles [...]
Install PHP 5.1 w/ FastCGI on OpenBSD 4.0