注意擁有者 權限
chown user:www-data /var/www/html/blog/
注意以下是否都安裝
Step 1: Install Apache Web Server
sudo apt-get -y install apache2 apache2-utils
Step 2: Install MySQL Database Server
sudo apt-get -y install mysql-client mysql-server
sudo apt-get -y install mariadb-server mariadb-client
Step 3: Install PHP and Modules
sudo apt-get install -y php7.0 php7.0-mysql libapache2-mod-php7.0 php7.0-cli php7.0-cgi php7.0-gd
Step 4: Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
sudo apt-get update
sudo apt-get -y install php7.0-mysql
sudo apt-get -y install php-mysql
sudo apt-get -y install php-mysql
wordpress 下載地方
wget http://wordpress.org/latest.tar.gz
注意 解壓縮完是否有目錄 ex: wp-admin
tar -zxvf latest.tar.gz
reference:https://www.tecmint.com/install-wordpress-on-ubuntu-16-04-with-lamp/
[wordpress] 安裝後 一直顯示 php 內容
分類:wordpress