博客地址:baiyang796.top
- 系統:centos7
- httpd
- PHP 7.2
- mysql 5.7
- wordpress
一、httpd
yum -y install httpd
yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql
systemctl start httpd.service
systemctl enable httpd.service
systemctl status httpd.service
二、php7.2 參考:https://blog.csdn.net/hahachenchen789/article/details/80568162
yum -y install php72w
yum -y install php72w-gd php72w-imap php72w-ldap php72w-odbc php-pear php-xml php-xmlrpc
yum -y install php72d php72map php72dap php72dbc php72ear php72ml php72mlrpc yum list php*
yum -y install php72w-mysql
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld.service
systemctl enable mysqld.service
四、wordpress 參考: https://zhuanlan.zhihu.com/p/37614954
wget http://wordpress.org/latest.tar.gz
tar -xzvf wordpress-5.3.2.tar.gz
mv /root/wordpress/wp-config-sample.php /root/wordpress/wp-config.php
vi /root/wordpress/wp-config.php
cp -r /root/wordpress/* /var/www/html
chown -R www-data:www-data /var/www/html
注:
查看開放的端口:netstat -ntpl
安全組設置: