Thread: pkg_add php-fpm
View Single Post
  #4   (View Single Post)  
Old 27th March 2016
psypro psypro is offline
Shell Scout
 
Join Date: Mar 2016
Location: Continent:Europe
Posts: 124
Default

Code:
pkg_add php
Selected option : 5 (non ap2 version). rscripts were installed : /etc/rc.d/php56_fpm

Code:
/etc/rc.d/httpd stop
etc/httpd.conf
Code:
ext_if="egress"
 types { include "/usr/share/misc/mime.types" }
server "default" {
    listen on $ext_if port 80
    directory {index "index.php" }
    location "/*.php*" {
        root { "/htdocs" }
        fastcgi socket "/run/php-fpm.sock"
    }
    location "/*" {
        root { "/htdocs" }
    }
}
Code:
etc/rc.d/php56_fpm start
Code:
etc/rc.d/httpd start
Yes, now my server is serving php, now onto understanding more about sqlite3, and WordPress plugin for it.
Reply With Quote