WordPress
Apache (apache2)
PHP (php5)
Mysql (mysql-server)
For inter-connections:
libapache2-mod-php5, php5-mysql
A test here: add <?php phpinfo(); ?> into the /var/www/testphp.php file
Open a web browser, visit http://localhost/testphp.php
You should be able to a webpage listing systme info
You need to create a user and database in mysql for WordPress to use:
[shell]
mysql -u root -p
Enter you password here:<strong>*</strong>*
[/shell]
[shell]
create database wordpress;
create user ‘kaiyin’@’localhost’ identified by ‘some_password’
grant all privileges on wordpress.* to ‘kaiyin’@’localhost’
[/shell]
Then you should rename the file wordpress/wp-sample-config.php into wordpress/wp-config.php, and input your info accordingly:
[shell]
define(‘DB_NAME’, ‘wordpress’);
define(‘DB_USER’, ‘kaiyin’);
define(‘DB_PASSWORD’, ‘your_password’);
define(‘DB_HOST’, ‘localhost’);
[/shell]
Finally you can easily install by open this url in your web browser:
[html]
http://localhost/blog/wp-admin/install.php
[/html]
[py]
def a:
return a+1
[/py]