Monday, January 02, 2017

Arch Linux: Install lighttpd and php.

sudo pacman -S lighttpd php-fpm
Add the folowing line to: /etc/lighttpd/lighttpd.conf include "conf.d/fastcgi.conf"
Create folder conf.d and file fastcgi.conf with the following contents:
server.modules += ( "mod_fastcgi" )

index-file.names += ( "index.php" )

fastcgi.server = (
".php" => (
"localhost" => (
"socket" => "/run/php-fpm/php-fpm.sock",
"broken-scriptfilename" => "enable"

Enable php-fpm and lighttpd services: sudo systemctl enable php-fpm
sudo systemctl enable lighttpd

To start now php-fpm and lighttpd services: sudo systemctl start php-fpm
sudo systemctl start lighttpd

To check, go to /srv/www/ and create file index.php <?php
Make sure index.php has permission to be executed and read. To enable phpmyadmin sudo pacman -S phpmyadmin And place the following in /etc/lighttpd/lighttpd.conf alias.url = ( "/phpmyadmin" => "/usr/share/webapps/phpMyAdmin/")

server.modules = (


  1. I have read your blog its very attractive and impressive. I like it your blog.

    PHP 7 Training in chennai | PHP 7 Training Course

    PHP 7 Training in chennai | Online PHP 7 Course

  2. This comment has been removed by the author.

  3. Were a gaggle of volunteers as well as starting off a brand new gumption within a community. Your blog furnished us precious details to be effective on. You've got completed any amazing work!
    Selenium training in Chennai

    Selenium training in Bangalore