[Linux] wordpress install

Writing time : 2017-07-12 00:40:16

wordpress install

copy wordpress file

Download the wordpress zip file from the wordpress site below.

Upload the downloaded file to the web server and extract it using the following command.
(For the zip file name, enter the uploaded zip file name)

unzip wordpress-4.8-ko_KR.zip -d 폴더명  

Create database and add configuration file

Create a database on the MySQL server.

When extracted, there is a wp-config-sample.php file. Enter the database created in this file and the user ID and password to log in to the database.

In the image below, enter the database name created on line 1, the user ID on line 2, and the password on line 3.

centos WordPress DB account setup

And create an authentication key using the URL below.

Copy and paste the successful authentication key into the configuration file.

Refer to the image with the authentication key pasted below.

centos WordPress authentication key setting

Change the wp-config-sample.php file name to wp-config.php.

wordpress install

Enter the following URL in your web browser to start the installation.
http://web server domain/wp-admin/install.php

How to change your own address

If you want to change the unique address in the form of http://webserver domain/archives/post number when writing a wordpress post, click the unique address in the setting submenu of the admin page and select a number.

centos WordPress unique address change

If you change the unique address to a number and get an error saying that the page cannot be found when you go to the detail page, you need to add the .htaccess file.

centos WordPress .htaccess settings

Create the following content as a .htaccess ANSI format file and upload it to the wordpress folder.

<IfModule mod_rewrite.c>  
RewriteEngine On  
RewriteBase /  
RewriteRule ^index.php$ - [L]  
RewriteCond %{REQUEST_FILENAME} !-f  
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteRule . /index.php [L]  

If you are bothered to create a .htaccess file, you can download it from the link below.

Download htaccess.zip (unzip and use)

Next post

Other posts in the category