WordPress

3 Notes
+ Nginx configuration (April 7, 2018, 8:12 p.m.)

server { server_name mohsenhassani.ir www.mohsenhassani.ir; listen 80; root /srv/mohsenhassani; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; index index.php; location / { try_files $uri $uri/ /index.php?q=$uri&$args; } location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ { access_log off; expires max; } location ~ /\.ht { deny all; } location ~ \.php$ { fastcgi_index index.php; fastcgi_keep_conn on; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }

+ WordPress with PHP 7 and Nginx (Feb. 26, 2018, 3:17 p.m.)

https://linuxhostsupport.com/blog/how-to-install-wordpress-with-php-7-1-and-nginx-on-a-debian-9-vps/ ------------------------------------------------------------------------------------ 1- apt install apt-transport-https lsb-release ca-certificates wget mariadb-server php-mysql nginx php7.1-common php7.1-readline php7.1-fpm php7.1-cli php7.1-gd php7.1-mysql php7.1-mcrypt php7.1-curl php7.1-mbstring php7.1-opcache php7.1-json 2- Create a database for our WordPress instance. (Refer to mysql notes for creating a database and its user). 3- Refer to "Nginx configuration in Wordpress category notes).