Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Ubuntu 14.04 Install WordPress on Nginx     - Use innobackupex full realization of MySQL hot backup (Database)

- Graphing tool: Gnuplot (Linux)

- RabbitMQ user roles and access control (Linux)

- Regular expressions in Perl (Programming)

- RHEL5 multipath configuration (Linux)

- Install GAMIT / GLOBK 10.50 software under Ubuntu 14.04 (Linux)

- CentOS / Linux kernel upgrade (Linux)

- 30 minutes with your Quick Start MySQL Tutorial (Database)

- Start Linux ISO image directly from the hard disk (Linux)

- Linux Troubleshooting: How to save the status of the SSH session is closed (Linux)

- Oracle database physical file backup / restore (Database)

- CentOS 6.6 source compiler GCC upgrade to 4.8.2 (Linux)

- Verify the character set on MyCAT (Database)

- Linux ./configure --prefix command (Linux)

- MySQL 5.5 on master-slave copy filter (Database)

- Linux set the maximum number of open files nofile and nr_open, file-max Description (Linux)

- Android SDK Manager can not update the domestic solutions (Linux)

- Grub2: Save Your bootloader (Linux)

- Killall five options you might not know (Linux)

- CentOS / Linux restart active NIC connection paths / network configure error Error Resolution (Linux)

 
         
  Ubuntu 14.04 Install WordPress on Nginx
     
  Add Date : 2018-11-21      
         
         
         
  Summary:

WordPress is the most popular CMS systems, he is very easy to set up, easy to build your own personal website or blog, and the management is also very convenient.

This article will teach you how to use Nginx, PHP, MySQL to build their own WordPress system in Ubuntu 14.04 system.

Preparatory conditions:
sudo apt-get update
sudo apt-get install nginx mysql-server php5-fpm php5-mysql

The first step: to create a database and WordPress users, permissions and so on:
When in mysql-server installation, the system prompts for a password root user login database. To create a database as follows:

mysql -u root -p
CREATE DATABASE wordpress;
CREATE USER wordpresSUSEr @ localhost IDENTIFIED BY 'password';
. GRANT ALL PRIVILEGES ON wordpress * TO wordpressuser @ localhost;
FLUSH PRIVELEGES;
exit

STEP 2: Download the latest version of WordPress, and PHP install some components required for WordPress:
cd
wget https://wordpress.org/latest.tar.gz
tar zxvf latest.tar.gz
cd wordpress
apt-get install php5-gd libssh2-php

Step Three: Configure WordPress:
cd wordpress
cp wp-config-sample.php wp-config.php

Then edit the wp-config.php, you need to be changed as follows: name of the database is the database name that you created, and then change the user name and password you created.
// ** MySQL settings - You can get this info from your web host ** //
/ ** The name of the database for WordPress * /
define ( 'DB_NAME', 'wordpress');
/ ** MySQL database username * /
define ( 'DB_USER', 'wordpressuser');
/ ** MySQL database password * /
define ( 'DB_PASSWORD', 'password');

Step four: Copy the configuration file to the web root directory:

rsync -avP ../wordpress/ / var / www / html /
j ht (see this command do not understand this article http://www.linuxidc.com/Linux/2016-01/127841.htm)
mkdir -p wp-content / upload
chown -R www-data: / var / www / html / * (the user name of the file where their user rights should talk to your Nginx consistent with the username)

It should be noted that if rsync back catalog with wordpress / directory then copy the following files to the html directory of all, if it is wordpress, do not have that /, is a copy workdpress directory to the html directory, complete the two concepts.

Step Five: Nginx configuration file:
cp / etc / nginx / sites-available / default / etc / nginx / sites-available / wordpress
vi / etc / nginx / sites-available / wordpress

Changes made as shown in red font:
server {
        listen 80 default_server;
        listen [::]: 80 default_server ipv6only = on;
        root / var / www / html;
        index index.php index.html index.htm;
        server_name your_domain.com;
        location / {
                # Try_files $ uri $ uri / = 404;
                try_files $ uri $ uri / /index.php?q=$uri&$args;
        }
        error_page 404 /404.html;
        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
                root / usr / share / nginx / html;
        }
        location ~ .php $ {
                try_files $ uri = 404;
                fastcgi_split_path_info ^ (/.+) $ (+ php..);
                fastcgi_pass unix: /var/run/php5-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
        }
}

Code changed to bash format when it removed the red label, change the place is the root directory points to / var / www / html, the search index to search for index.php, change the server_name, change location / try_files way.

Then create a soft link to the site-enabled, remove the default default, restart Nginx and php5.

ln -s / etc / nginx / sites-available / wordpress / etc / nginx / sites-enabled /
rm / etc / nginx / sites-enabled / default
service nginx restart
service php5-fpm restart

Step Six: Web-based configuration page WordPress:

Enter your domain name or ip address, open the initial installation of WordPress
     
         
         
         
  More:      
 
- Linux installed Cisco Packet Tracer (Linux)
- Through eight skills to let you become a super Linux end-user (Linux)
- Change CentOS 7 NIC name eno16777736 to eth0 (Linux)
- Copy Recovery using RMAN repository development environment (Database)
- Java proxy mode (Programming)
- Linux basic articles of the boot process (Linux)
- Linux iptables firewall settings (Linux)
- Oracle 11g modify MEMORY_TARGET (Database)
- WebLogic administrator account and reset the password (Database)
- Elasticsearch 2.20 Highlight (Server)
- To convert into a binary search tree sorted doubly linked list (Programming)
- Mac OS X 10.9 compiler OCI8 module (Programming)
- Not safe procedure under Linux (Linux)
- C # asynchronous delegates (Programming)
- Oracle SDE and maintain common commands - Display space (Database)
- Oracle 12C with multi-column index (Database)
- Installation Elementary OS Freya to do some settings (Linux)
- Talk about Java EE Learning (Programming)
- How to monitor Linux system performance Nmon (Linux)
- Introduction to Linux system process monitoring tools (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.