Advertisement
nguyenhappy92

Cài đặt Wordpress using Nginx

Oct 10th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. CentOS 6.5.
  2. # yum install nginx mysql mysql-server php php-fpm php-common php-mysql php-gd php-xml php-mbstring php-mcrypt
  3. # service nginx start
  4. # service mysqld start
  5. # service php-fpm start
  6. # cd /opt
  7. # wget https://wordpress.org/latest.tar.gz
  8. # tar -xvzf latest.tar.gz -C /usr/share/nginx/html/
  9. # chown -R nginx:nginx /usr/share/nginx/html/wordpress
  10. # chmod -R 755 /usr/share/nginx/html/wordpress
  11. # mysql -u root -p
  12. # vi /etc/nginx/conf.d/blog.techoism.conf
  13. # service nginx restart
  14. # cd /usr/share/nginx/html/wordpress
  15. # cp wp-config-sample.php wp-config.php
  16. # chmod 777 wp-config.php
  17. # chown nginx:nginx wp-config.php
  18. # vi wp-config.php
  19. Sau đó tiến hành cài đặt wordpress bình thường.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement