Installing Lighttpd With PHP5 (PHP-FPM) And MySQL Support On Fedora 17
|
Submitted by falko (Contact Author) (Forums) on Tue, 2012-08-28 17:54. :: Fedora | Web Server | Lighttpd | PHP
Installing Lighttpd With PHP5 (PHP-FPM) And MySQL Support On Fedora 17Version 1.0 Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on a Fedora 17 server with PHP5 support (through PHP-FPM) and MySQL support. PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites. I use PHP-FPM in this tutorial instead of Lighttpd's spawn-fcgi. I do not issue any guarantee that this will work for you!
1 Preliminary NoteIn this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.
2 Installing MySQL 5First we install MySQL 5 like this: yum install mysql mysql-server Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server: systemctl enable mysqld.service Create a password for the MySQL user root (replace yourrootsqlpassword with the password you want to use): mysql_secure_installation [root@server1 ~]# mysql_secure_installation
3 Installing LighttpdLighttpd is available as a Fedora package, therefore we can install it like this: yum install lighttpd Then we create the system startup links for Lighttpd (so that Lighttpd starts automatically whenever the system boots) and start it: systemctl enable lighttpd.service Now direct your browser to http://192.168.0.100, and you should see the Lighttpd placeholder page: Lighttpd's default document root is /var/www/lighttpd on Fedora, and the configuration file is /etc/lighttpd/lighttpd.conf.
4 Installing PHP5We can make PHP5 work in Lighttpd through PHP-FPM which we install like this: yum install php-fpm lighttpd-fastcgi PHP-FPM is a daemon process that runs a FastCGI server on port 9000. Create the system startup links for PHP-FPM and start it: systemctl enable php-fpm.service
|





Recent comments
8 hours 44 min ago
13 hours 42 min ago
15 hours 9 min ago
16 hours 2 min ago
17 hours 45 min ago
22 hours 8 min ago
23 hours 53 sec ago
1 day 1 hour ago
1 day 14 hours ago
1 day 15 hours ago