大漠駝鈴

          置身浩瀚的沙漠,方向最為重要,希望此blog能向大漠駝鈴一樣,給我方向和指引。
          Java,Php,Shell,Python,服務(wù)器運(yùn)維,大數(shù)據(jù),SEO, 網(wǎng)站開(kāi)發(fā)、運(yùn)維,云服務(wù)技術(shù)支持,IM服務(wù)供應(yīng)商, FreeSwitch搭建,技術(shù)支持等. 技術(shù)討論QQ群:428622099
          隨筆 - 238, 文章 - 3, 評(píng)論 - 117, 引用 - 0
          數(shù)據(jù)加載中……

          Linux 下配置 apache+mysql+php

          1所需軟件
           httpd-2.2.11.tar.gz
           mysql-5.0.18.tar.gz  
           php-5.2.9.tar.gz 
          apr-1.3.3.tar.gz
          apr-util-1.3.4.tar.gz
          libxml   google搜索一下吧
          2安裝

          2.1安裝apache
          安裝apr
          #cd srclib/apr
          #./configure --prefix=/usr/local/apr
          #make
          #make install

          再安裝apr-util
          #cd srclib/apr-util
          #./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
          #make
          #make install

          做完這些準(zhǔn)備工作后,開(kāi)始apache的安裝

          ./configure --prefix=/usr/local/server/apache2.2  --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/bin

          make

          make install

          2.2安裝mysql

               shell> groupadd mysql
               shell> useradd -g mysql mysql
               shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
               shell> cd mysql-VERSION
               shell> ./configure --prefix=/usr/local/mysql
               shell> make
               shell> make install
               shell> cp support-files/my-medium.cnf /etc/my.cnf
               shell> cd /usr/local/mysql
               shell> bin/mysql_install_db --user=mysql
               shell> chown -R root  .
               shell> chown -R mysql var
               shell> chgrp -R mysql .
               shell> bin/mysqld_safe --user=mysql &


          這樣安裝的mysql不知道gb2312,gbk變量
          ./configure --prefix=/usr/local/mysql
          --with--charset=gb2312 "
          --with-extra-charsets=" gb2312 gbk big5 utf8""

          make

          make install

          2.3 安裝 php


          可能需要先安裝libxml
          #tar -zxvf libxml2-2.6.26.tar.gz
          #./configure --prefix=/usr/local/libxml
          #make
          #make install
          進(jìn)入php的解壓目錄
          ./configure --prefix=/usr/local/server/php5 --with-apxs2=/usr/local/apache2.2/bin/apxs --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/lcoal/mysql  --with-libxml-dir=/usr/local/libxml


          好了,基本上完工了,還有一些小小的配置技巧稍后再寫(xiě)吧




          posted on 2009-04-12 17:18 草原上的駱駝 閱讀(159) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Linux

          主站蜘蛛池模板: 从化市| 平谷区| 平邑县| 拜城县| 榆林市| 尼玛县| 清镇市| 邵武市| 曲水县| 康保县| 滕州市| 定边县| 托里县| 上虞市| 安达市| 东明县| 石林| 尼勒克县| 南通市| 老河口市| 西安市| 承德县| 彰武县| 黄骅市| 迭部县| 荔浦县| 定日县| 长子县| 阳春市| 顺平县| 云林县| 宜章县| 容城县| 宁乡县| 平陆县| 扶绥县| 岳普湖县| 富源县| 阿拉善盟| 金寨县| 桂阳县|