# wp-news **Repository Path**: zhexiao/wp-news ## Basic Information - **Project Name**: wp-news - **Description**: Wordpress magazine website - **Primary Language**: PHP - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-18 - **Last Updated**: 2024-06-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Overview Wordpress News # Table of Contents * [Requirements](#markdown-header-requirements) * [Dependency Install](#markdown-header-dependency-install) * [Nginx Server Configuration](#markdown-header-nginx-server-configuration) # Requirements * Wordpress * Mysql * Nginx * PHP5 * Compass # Dependency Install #### Compass install ```shell # install ruby system $ sudo apt-get install ruby-full # install latest rubygem $ sudo apt-get remove rubygems $ wget https://rubygems.org/rubygems/rubygems-2.6.8.tgz $ tar zxf rubygems-2.6.8.tgz $ cd rubygems-2.6.8/ $ sudo ruby setup.rb # install compass $ sudo gem install compass # running compass $ cd wpnews/wp-content/themes/wpnews $ compass watch --poll ``` # Nginx Server Configuration ```shell server { listen 80; listen [::]:80; root /var/www/html/wpnews; autoindex on; # if the css encode has problem, set this config sendfile off; # Add index.php to the list if you are using PHP index index.php index.html index.htm index.nginx-debian.html; server_name blog.zhexiao.me; location / { try_files $uri $uri/ /index.php?q=$uri&$args; } # Don't log robots.txt or favicon.ico files location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { access_log off; log_not_found off; } if (!-e $request_filename){ rewrite ^(.+)$ /index.php?q=$1 last; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ \.php$ { include snippets/fastcgi-php.conf; # With php5-fpm: fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_split_path_info ^(.+\.php)(/.+)$; } } ```