照著http://www.jonathanmoeller.com/screed/?p=826裡面所說的,很簡單就能安裝成功.
1.首先安裝apache 2.0
sudo apt-get install apache2
2.再來安裝mysql 5.0
sudo apt-get install mysql-server-5.0
記得在安裝的時候,你需要輸入root帳號的密碼
3.過來就是安裝php5
sudo apt-get install php5
4.還有mysql的php module
sudo apt-get install php5-mysql
6.接下來是去下載wordpress
7.在apache2.conf尾端裡加入這一行AddType application/x-httpd-php.html
sudo nano /etc/apache2/apache2.conf
8.接下來安裝mysql的database
sudo mysql_install_db
安裝過後然後開始create table
mysql -u root –p
用剛才在2設定的密碼登入後,在MySQL>那裡輸入
CREATE DATABASE wordpress;
CREATE USER user;
SET PASSWORD FOR user = PASSWORD(“password”); (把密碼取代password)
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY ‘password’; (把密碼取代password)
然後輸入exit
9.把wordpress unzip移到/var/www/那裡
10.然後更改wp-config-sample.php的設定
sudo nano /var/www/wordpress/wp-config-sample.php
把putyourdbnamehere換成wordpress.
把usernamehere換成user.
把yourpassword換成你在GRANT ALL ON wordpress.* TO user IDENTIFIED BY ‘password’;輸入的password.
之後把wp-config-sample.php儲存換成wp-config.php,然後在瀏覽器開啟http://127.0.0.1/wordpress就行了.
Roundup: Govee's selection of smart lights makes the holidays brighter
-
Govee products can finally join Apple Home thanks to Matter, so here are a
few great holiday decoration options from Christmas tree lights to
permanent out...
39 分鐘前
沒有留言:
張貼留言