Debian: install wordpress-Debian, a Linux release technology. For details, refer to the following section. Wordpress is becoming more and more popular now. So, let's create a server on our computer and try out the power of wordpress...
1. First, install apache + php + mysql in the system
This is easy in debian:
Apache does not support php when it is installed. When you click Connect with A. php script, the browser will download the script:
Modify/etc/apache2/httpd. conf and add:
Create a file under/var/www/and write it into my. php:
Echo hello world!
?>
Open it in a browser.
Hello world!
The installation is successful.
2. Modify the mysql password:
Mysqladmin password xxxxxx
Log on to mysql:
Mysql-u root-p
Enter Password
Create a database
Mysql> create database wordpress;
Create a wordpress user
Mysql> grant all on wordpress. * to wordpress @ localhost
Identified by 'Password ';
Refresh privileges.
Mysql> flush privileges
Leave mysql
3. download the latest wordpress version:
Wget http://wordpress.org/latest.tar.gz
Decompress:
Tar-xvf latest.tar.gz
Rename wp-config-sample.php to wp-config.php.
Open the wp-config.php with vim and enter database information.
Define ('db _ name', 'wordpress '); // The NAME of the database
Define ('db _ user', 'username'); // Your MySQL username
Define ('db _ password', 'Password'); //... and PASSWORD
Define ('db _ host', 'localhost'); // 99% chance you won't need to change this value
Copy the files in the decompressed wordpress directory to the/var/www/directory (excluding the wordpress directory)
4. Install
Open http: // 127.0.0.1/wp-admin/install. php in a browser
The installation process is very simple, so you don't need to write it.
Source: http://hi.baidu.com/truant285
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service