diff --git a/README.md b/README.md index 078660a..63e9e9f 100644 --- a/README.md +++ b/README.md @@ -91,11 +91,12 @@ tmpfs /var/log/nginx tmpfs rw,user,noatime 0 0 As time syncronisation is important, you should configure ntp servers in `/etc/systemd/timesyncd.conf` and make them match with the entries in `/etc/rc.local` iptables configuration -Enable the PHP-FPM default instances: +Enable the PHP-FPM default instances and nginx: ``` systemctl enable php7.2-fpm@default systemctl enable php7.3-fpm@default systemctl enable php7.4-fpm@default +systemctl enable nginx ``` Edit `/etc/fstab` and add the `noatime,usrjquota=aquota.user,jqfmt=vfsv1` option to the `/home` mountpoint and `noatime`to `/`. Then initialize quota: diff --git a/etc/systemd/system/nginx.service b/etc/systemd/system/nginx.service index d912c51..402eb7a 100644 --- a/etc/systemd/system/nginx.service +++ b/etc/systemd/system/nginx.service @@ -23,11 +23,11 @@ ProtectKernelModules=true ProtectControlGroups=true LockPersonality=true SystemCallArchitectures=native -BindPaths=/var/log/nginx/ -BindPaths=/var/lib/nginx/ -BindPaths=/var/www/var/run/ -BindPaths=/run/ -InaccessiblePaths=/root/ +ReadWritePaths=-/var/log/nginx/ +ReadWritePaths=-/var/lib/nginx/ +ReadWritePaths=-/var/www/var/run/ +ReadWritePaths=-/run/ +InaccessiblePaths=-/root/ [Install] WantedBy=multi-user.target diff --git a/install_php.sh b/install_php.sh index a85fad3..8c003e1 100755 --- a/install_php.sh +++ b/install_php.sh @@ -138,3 +138,4 @@ CXXFLAGS='-O3 -mtune=native -march=native' CFLAGS='-O3 -mtune=native -march=nati make -j $(nproc) install make distclean git reset --hard +ln -fs /usr/bin/php7.4 /usr/bin/php