WP Setting Up
LAMP+WordPress
Apt-get
apt-get install apache
libapache2-mod-php php-mysql php-mcrypt php-curl php-gd php-mbstring php-simplexml ···
mysql
systemctl restart ···
Apache
emm···
MySQL+权限
service mysqld start
mysql_secure_installation
chown -r www-data /*/*/html
chmod -R 777 /var/www/html/
mysql -u root -p
CREATE DATABASE WordPressTest;
SET PASSWORD FOR WordPressTestUser= PASSWORD(“passwordtest”);
GRANT ALL PRIVILEGES ON WordPressTest.* TO WordPressTestUser IDENTIFIED BY”passwordtest”;
FLUSH PRIVILEGES;
(非安全部署)
WP
wp-config.php mysql数据填入
register
伪静态开启
sudu a2enmod
rewrite
改apache2.conf
参考:https://blog.csdn.net/zziahgf/article/details/80348744
重启 apache