Toss for a few days, and finally find a very resource-saving installation wordpress program.
Successfully build website http://www.gudianxiaoshuo.com and http://www.gudianbook.com
At the same time, we recommend the WordPress Build station tool calligraphy and painting novel software version 4.0 my website is built with this software 222 books 15,000 articles for 8.5 hours or so.
OK, back to the point, started a Linux VPS in a look at the black dos immediately dumbfounded. More hateful is not to provide relevant information, only to find their own. Found, or let people exasperating, the data said, their own experiments did not succeed. There will always be problems in a certain step, different from the data.
Within a few days, looked for a lot of information, repeatedly re-installed hundreds of times, and finally combined with a variety of information to find a solution.
In accordance with the data installation process, the most exasperating is that obviously there is no problem in the data, but the actual operation, there will be various problems, for small white This is the most headache. You have to experiment with all kinds of data and finally find a way. I just repeated a few days on hundreds of reload experiments, found a way.
I'm using the CentOS 6.x 32bit
Note: Do not use the browser's own editing tools, to use the Xshell connection
Be sure to use the client software links such as Xshell, do not use the browser to bring the editing tools, with the browser is always out of the question, I started with the browser to bring the link tool, the result is not always tried 10 times, the first thought that the grammar is not correct, but not error, More exasperating is: A lot of information on the input of this statement will appear what hint but I do not work, directly back. Then you can change the Xshell. So do not use the browser to bring your own tools.
First run the Environment installation lamp(linux+apache+mysql+php):
First step: Update the system kernel (skip this step if you do not want to update).
First update the system kernel to the latest, because the latest version of the CentOS 6.3 PHP version is 5.3, early version of the CentOS PHP version is also relatively low.
Execute command:
Yum-y Update
Note : If a failure error is performed, the repair command can be executed:
rpm–import/etc/pki/rpm-gpg/rpm-gpg-key*
Step Two: Install Apahce, Mysql, PHP, and its underlying extensions.
Execute command:
Yum-y Install httpd php php-mysql mysql mysql-server
Step Three: Install other common extensions for PHP
Perform the naming:
Yum-y Install PHP-GD php-xml php-mbstring php-ldap php-pear php-xmlrpc
Fourth step: Installing Apache Extensions
Execute command:
Yum-y Install httpd-manual mod_ssl mod_perl mod_auth_mysql
After executing the four-step software, the installation is complete, followed by some general setup.
Fifth step: Set the Apache/mysql-server environment to boot automatically
Execute command:
# set Apache to boot/sbin/chkconfig httpd on# add MySQL service/sbin/chkconfig--add mysqld# set MySQL for power on self-boot/sbin/chkconfig mysqld on
Sixth step: Launch Apache and MSYQL
Execute the command separately:
Service httpd StartService mysqld start
Seventh step: Set the MySQL database root account password
mysqladmin-u root password ' mysql Administrator password '
Second, create a database for WordPress
1
Mysql-u root-p
2
CREATE DATABASE Gudianbook; Query OK, 1 row Affected (0.00 sec)
3
CREATE USER [email protected]; Query OK, 0 rows Affected (0.00 sec)
4
SET PASSWORD for [email protected]= PASSWORD ("PASSWORD"); Query OK, 0 rows Affected (0.00 sec)
5
GRANT all privileges the gudianbook.* to [e-mail protected] identified by ' password '; Query OK, 0 rows Affected (0.00 sec)
6
FLUSH privileges;
7
Exit
Finally install WordPress
1
Cd/var/www
2
wget http:
//cn
.wordpress.org
/wordpress-4.0
-zh_CN.zip
3
unzip wordpress-4.0
-zh_CN.zip
4
cp
-rf wordpress/*
/var/www/html/
5
chmod -R 777 html
6
cd html
7
mv wp-config-sample.php wp-config.php
8 vi wp-config.php
/** MySQL数据库名 */
define(‘DB_NAME
‘, ‘wordpress‘
);
/** MySQL数据库用户名 */
define(‘DB_USER
‘, ‘root‘
);
/** MySQL数据库密码 */
define(‘DB_PASSWORD
‘, ‘password‘
)
/** MySQL主机(不用修改) */
define(‘DB_HOST
‘, ‘localhost‘
);
And at last add
if (Is_admin ()) {add_filter (' Filesystem_method ', create_function (' $a ', ' return ' direct '; ')); Define (' Fs_chmod_dir ', 0751);}
Esp
: Wq
VI exit is to press ESP and then press: The last is Wq a lot of information do not say this:, led to small white in this step how also can not back out.
9
Service httpd Restart
yourweb/wp-admin/install.php Installation
Total Disk 0.82G after installation
If you want to install phpMyAdmin
1
Cd/var/www/html
wget http://nchc.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.3.10/phpMyAdmin-3.3.10-all-languages.tar.gz
Tar Xvfz phpmyadmin-3.3.10-all-languages.tar.gz
MV Phpmyadmin-3.3.10-all-languages PhpMyAdmin
CD phpMyAdmin
CP config.sample.inc.php config.inc.php
VI config.inc.php
$cfg [' Servers '] [$i] [' auth_type '] = ' http '; # Default is Cookies
Service httpd Restart
You can test access through http://your.domain.com/phpmyadmin/.
Total 0.84G
Linux Small white reload hundreds of times, finally find a successful solution CentOS LAMP +wordpress+phpmyadmin Total 0.84G