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
phpinfo();
?>
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 = (
"mod_alias"
)
This comment has been removed by the author.
ReplyDeleteWere 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!
ReplyDeleteSelenium training in Chennai
Selenium training in Bangalore
I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing..
ReplyDeleteBelieve me I did wrote an post about tutorials for beginners with reference of your blog.
Selenium training in bangalore
Selenium training in Chennai
Selenium training in Bangalore
Selenium training in Pune
Selenium Online training