初识linux之LAMP~论坛~

0、创建虚拟主机;

# vim /etc/httpd24/extra/httpd-vhosts.conf
<VirtualHost *:80>
        ServerName www.b.com
        DocumentRoot "/www/htdoc/"
</VirtualHost>
<VirtualHost *:80>
        ServerName www.a.com
        DocumentRoot "/www/htdoc2/"
</VirtualHost>
<VirtualHost *:80>
        ServerName www.c.com
        DocumentRoot "/www/htdoc3/"
</VirtualHost>
<VirtualHost *:80>
        ServerName www.d.com
        DocumentRoot "/www/htdoc4/"
</VirtualHost>


1、安装phpMyAdmin

#Unzip phpMyAdmin-3.5.8-all-languages.zip
# mv phpMyAdmin-3.5.8-all-languages  /www/htdoc/phpMyAdmin
# cp config.sample.inc.php config.inc.php
# mysql -uroot -pzhangxiaocen –hlocalhost
#set password for ‘root’@’localhost’ = password(‘zhangxiaocen’);
#flush privileges;
#http://www.b.com/phpMyAdmin/


2、 安装Discuz_X2.5_SC_GBK


# unzip Discuz_X2.5_SC_GBK.zip
# mv upload    /www/htdoc3/bbs 
# chown -R daemon:daemon  ./* 
#mysql>create database discuz;
#grant all on discuz.* to discuz@‘localhost‘ identified by ‘111111‘;


3、安装wordpress

#Unzip  wordpress-3.0.5-zh_CN.zip
# mv wordpress /www/htdoc2/mybbs
# cp wp-config-sample.php wp-config.php
#chmod  a+x wp-config.php
# vim wp-config.php
# mysql -uroot -pzhangxiaocen –hlocalhost
mysql> create database wpdb
18 define(‘DB_NAME‘, ‘wpdb‘);
                                         
21 define(‘DB_USER‘, ‘root‘);
                                         
24 define(‘DB_PASSWORD‘, ‘zhangxiaocen‘);
27 define(‘DB_HOST‘, ‘localhost‘);
                                          
30 define(‘DB_CHARSET‘, ‘utf8‘);
                                          
33 define(‘DB_COLLATE‘, ‘‘);

4、安装phpwind

# unzip phpwind_GBK_8.7.zip
# cd phpwind_GBK_8.7
# mv upload /www/htdoc4/phpwind
# mkdir  /www/htdoc4
# chmod -R attachment/
# chmod -R 777 data/
# chmod -R 777 html/
# mysql -uroot -pzhangxiaocen –hlocalhost
mysql> create database phpwind
    -> ;
Query OK, 1 row affected (0.00 sec)

本文出自 “grep命令基础应用” 博客,请务必保留此出处http://7943682.blog.51cto.com/7933682/1381315

初识linux之LAMP~论坛~,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。