pkg update
pkg upgrade
pkg install -y bash wget curl vim-console gitpkg install -y nginxpkg install -y php71 php71-bcmath php71-ctype php71-gd php71-json php71-mbstring php71-mcrypt php71-mysqli php71-opcache php71-openssl php71-pdo php71-tokenizer php71-xml php71-xmlrpc php71-pecl-imagick php71-zippkg install -y mysql57-serverConifg PHP and php-fpm:
cp /usr/local/etc/php-fpm.d/www.conf{,_bak}
cp /usr/local/etc/php.ini-development /usr/local/etc/php.iniConfig nginx:
Config MySQL:
Enable and start service:
sysrc nginx_enable=yes
sysrc php_fpm_enable=yes
sysrc mysql_enable=yes
service nginx start
service php-fpm start
service mysql-server startVerifying service via network sockets status checking:
netstat -an -p tcppkg install -y node8pkg install -y redis
sysrc redis_enable=yes
service redis startpkg install -y mongodb36 mongodb36-tools
sysrc mongod_enable=yes
service mongod start#TODOpkg install -y openjdk8 openjdk8-jre
mount -t fdescfs fdesc /dev/fd
mount -t procfs proc /procAppend to /etc/fstab:
fdesc /dev/fd fdescfs rw 0 0
proc /proc procfs rw 0 0
Install Samba server:
pkg install -y samba48Create data dir:
mkdir -p /data/www
chown www:www /data/wwwSamba server config /usr/local/etc/smb4.conf:
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
netbios name = freebsd_shared
wins support = Yes
security = user
hosts allow = 192.168.10.
passdb backend = tdbsam
[www]
path = /data/www
valid users = www
writable = yes
browsable = yes
read only = no
guest ok = no
public = no
create mask = 0644
directory mask = 0755
Enable and start Samba service:
sysrc samba_server_enable=yes
service samba_server startUse pdbedit map system user to Samba user:
pdbedit -a -u www