Hi everyone! I am trying to i18n my website, so this post will be the first one which is written in English. Hope you will like it! 🙂
First things first
You should get a IP address after buying VPS, such as
184.108.40.206. Open your favourite terminal and enter:
220.127.116.11with your actual IP address.
Enter your password to login. Perform a full upgrade on your system:
Install Apache, PHP and MariaDB using the DNF package manager. There is NO need to install the
dnf install @"Web Server" php-mysqlnd mariadb-server
Enable the web and database services to start at boot time, then start them immediately:
systemctl enable httpd.service mariadb.service systemctl start httpd.service mariadb.service
Firstly, initialize MariaDB. If this is your first use of MariaDB, you should create a password for your root user here. Don’t use the system’s own root (administrator) password. It is suggested to answer
y to all yes-no questions afterwards:
Next, create a database. You can host more than one WordPress site on a machine. Therefore, you may want to choose a distinctive name for yours. For instance, this example uses
-p switch prompts you for a password.
mywpsitewith a database name you preferred.
mysqladmin create mywpsite -u root -p
Next, set up a special privileged user and password for the database. The web app uses these credentials to run. Use the standard
mysql client program for this step. The
-D option attaches to the built-in MySQL database where privileges are stored.
passwordwith a user name you preferred and a strong password.
mysql -D mysql -u root -p
GRANT ALL PRIVILEGES ON mywpsite.* TO 'sqluser'@'localhost' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; QUIT;
Set Up The Web Server
Next, tune the SELinux parameters so the web server can perform necessary functions.
setsebool -P httpd_can_network_connect_db=1 setsebool -P httpd_can_sendmail=1
Next, configure your firewall so it allows traffic on port
firewall-cmd --add-service=http --permanent firewall-cmd --reload
These latest version of WordPress are always available on
cd /var/www/html wget https://wordpress.org/latest.tar.gz
Extract the downloaded archive to the document root of your domain and update permissions on files.
tar xzf latest.tar.gz chown -R apache.apache wordpress chmod -R 755 wordpress
18.104.22.168/wordpress, and finish the installation.