php+mysql及phpwind和wordpress的安装配置

php Personal Home Page   网站: www.php.net
       PHP 超文本预处理器   解释性的语言 web 开发
 
       php+mysql 字符界面的
              配置: yum install mysql mysql-server
                    yum install php-mysql
              service mysqld start
              chkconfig mysqld on
              netstat -ntlp | grep 3306
              vim /var/www/htnl/www1/index.php
                     <?php
                     $link=mysql_connect('127.0.0.1','root','')
                     if ($link)
                            echo "success...";
                     else
                            echo "failure...";
                     ?>
              service httpd restart
              测试
       php+mysql 图形界面 : phpmyadmin   网站 www.phpmyadmin.net
                     phpmyadmin2 系列需要 php 版本 4  3 系列需要 php 5
              配置:
                     yum install php-mbstring php-xml php-gd php-pear  php-devel
                     service httpd restart
                     mkdir /www/phpmyadmin
                     vim /etc/httpd/conf/httpd.conf 在虚拟主机做别名
                     SerciceName www.a.com
                     Alias /phpmyadmin  "/www/phpmyadmin"
                     service httpd restart
                     tar jxvf phpmyadmin- 2.11.1 -C /www
                     cd /www
                     mv phpmyadmin- 2.11.1 /  phpmyadmin
                     加密码给 mysql root
                     mysqladmin -uroot -p password '123456'
                     mysql -uroot -p        登陆
                     cd /www/phpmyadmin
                     cp config.sample.inc.php config.inc.php
                     vim config.inc.php
                            $cfg['blowfish_secret'] = 'redhat' --> 可以不是 mysql root 密码
                     登陆时候要输入 root 密码 123456 而不是文件定义的密码
                     http://www.a.com/phpmyadmin
                     无法载入 mcrypt 可以解决:
                     rpm -ivh libmcrypt php-mcrypt- 5.1.6
      
       提供 rpm 包的网站: www.rpmfind.net
 
              phpwind 论坛
              discuz    
              phpbb 国外的主要论坛       
              wordpress 博客 插件化的
             
              phpwind 配置:基于虚拟主机 pw.a.com
                     vim /etc/httpd/conf/httpd.conf
                     nameVirtualHost *:80
                     <VirtualHost *:80>
                         DocumentRoot /www/phpwind
                                ServerName pw.a.com
                          ErrorLog /var/log/httpd/pw.err  定义错误日志的
                                CustomLog /var/log/httpd/pw.access common(combind 日志类型 ) 
                                     <Directory "/www/phpwind">
                                     Options None
                                     AllowOverride None
                                     Order allow,deny
                                    Allow from all
                                       </Directory>
                     </VirtualHost>                    
                     tar zxvf phpwind_GBK8.3 -C /www
                     mv phpwind_GBK phpwind
                     cd /www/phpwind
                     rm -rf docs
                     mv upload/* ./
                     rm -rf upload
                     service httpd restart
                     访问 http://pw.a.com 根据要求开始安装
              wordpress 配置:
                     创建虚拟主机 /www/wordpress  wp.a.com
                     service httpd restart
                     unzip wordpress
                     cd /www/wordpress
                     chmod 666 wp-config-sample.php
                     chmod 666 wp-config.php
                     chmod a+x /www/wordpress
                     测试: http://wp.a.com 安装
                     安装后将目录的写权限修改回去
                    
                    
                    
                    
 
                    

你可能感兴趣的:(mysql,PHP,wordpress,word,Office,phpwind)