$ sudo swupd update$ sudo swupd bundle-add web-server-basic$ sudo mkdir -p /etc/nginx/conf.d$ sudo cp /usr/share/nginx/conf/nginx.conf.example /etc/nginx/nginx.conf$ sudo cp /usr/share/nginx/conf/server.conf.example /etc/nginx/conf.d/default.conf$ sudo cp /usr/share/defaults/etc/hosts /etc/hosts$ sudo nano /etc/nginx/conf.d/default.confserver { listen 80; server_name localhost; location / { root html; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # pass the PHP scripts to FastCGI server listening on /run/php-fpm.sock # location ~ \.php$ { root html; # mitigate httpoxy.org type vulnerabilities fastcgi_param HTTP_PROXY ""; fastcgi_pass unix:/run/php-fpm.sock; fastcgi_index index.php; include /usr/share/nginx/conf/fastcgi.conf; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # location ~ /\.ht { deny all; }}$ sudo swupd update$ sudo swupd bundle-add php-basic$ sudo cp -R /usr/share/defaults/php/php-fpm.d/ /etc$ sudo cp /usr/share/defaults/php/php-fpm.conf /etc/php-fpm.conf$ sudo sed -ie 's/include=\/usr\/share\/defaults\/php\/php-fpm.d\/[*].conf/include=\/etc\/php-fpm.d\/*.conf'/ /etc/php-fpm.conf...user = httpdgroup = httpd...listen.owner = httpdlisten.group = httpd...$ sudo systemctl edit --full php-fpm.serviceThen, change the line:
ExecStart=/usr/sbin/php-fpm --nodaemonizeto:
ExecStart=/usr/sbin/php-fpm --nodaemonize --fpm-config /etc/php-fpm.conf$ sudo swupd bundle-add database-basic$ sudo systemctl start mariadb$ sudo mysql_secure_installationEnter current password for root (enter for none): ## Press EnterSet root password? [Y/n]## Press EnterNew password:## Enter passwordRe-enter new password: ## Re-enter passwordRemove anonymous users? [Y/n]## Press EnterDisallow root login remotely? [Y/n]## Press EnterRemove test database and access to it? [Y/n]## Press EnterReload privilege tables now? [Y/n]## Press Enter$ sudo systemctl enable nginx php-fpm mariadb$ sudo systemctl start nginx php-fpm