Install Wordpress Part 4



Install Wordpress Part 4

Install Wordpress Part 4

sql matchine
————————
mysql -u root -p
Passw0rd
CREATE DATABASE wordpress;
GRANT ALL PRIVILEGES ON wordpress.* TO mhi@’192.168.10.150′
IDENTIFIED BY ‘Passw0rd’;
FLUSH PRIVILEGES;
exit;

Web server
——————-
cd ~
wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php
vim ~/wordpress/wp-config.php

dbname: wordpress
db_user: mhi
db_password : Passw0rd
db_host : ‘192.168.10.170’
😡
mkdir /var/www/html/wordpress
cp -r ~/wordpress/* /var/www/html/wordpress/.
cd /var/www/html/wordpress
chown apache:apache -R *
find . -type d -exec chmod 755 {} ;
find . -type f -exec chmod 644 {} ;

vim /etc/httpd/conf.d/wordpress.conf

[root@www wordpress]# chmod -R 777 /var/www/html/wordpress
[root@www wordpress]# systemctl restart httpd
[root@www wordpress]# systemctl daemon-reload

systemctl restart httpd

On the client matchine web browser
###################################
linuxmhi.local