• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            八葉草

            學(xué)習(xí)資料記錄

            centos 6.2 手動編譯 apche php 編譯

            wget http://apache.etoak.com//httpd/httpd-2.2.21.tar.gz
            tar xzvf httpd-2.2.21.tar.gz
            cd httpd-2.2.21
            ./configure --enable-so --enable-mods-shared=most
            make
            make install

            vi /usr/local/apache2/conf/httpd.conf #編輯配置文件
            找到:#ServerName www.example.com:80
            修改為:ServerName localhost:80
            找到:DirectoryIndex index.html
            修改為:DirectoryIndex index.html index.php
            找到:Options Indexes FollowSymLinks
            修改為:Options FollowSymLinks #不顯示目錄結(jié)構(gòu)
            增加
            <FilesMatch \.php$>
                SetHandler application/x-httpd-php
            </FilesMatch>

            cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd 
            vi /etc/init.d/httpd
             在文件最前面插入下面的行,使其支持chkconfig命令: 
            #!/bin/sh
            # chkconfig: 2345 85 15
            # description: Apache is a World Wide Web server.
            (注:在運(yùn)行級2/3/4/5中加入服務(wù),啟動順序85,停止順序15)

            chkconfig --add httpd
            service htpd start


            yum install mysql-devel
            yum install libpng-devel
            yum install libjpeg-devel
            yum install libxml2-devel

            wget http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz/download
            tar xzvf libmcrypt-2.5.8.tar.gz
            cd libmcrypt-2.5.8
            ./configure
            make
            make install


            //wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
            //tar xzvf libiconv-1.14.tar.gz
            //cd libiconv-1.14 
            //./configure
            //make
            //make install



            wget http://museum.php.net/php5/php-5.1.6.tar.gz
            tar xzvf php-5.1.6.tar.gz
            cd php-5.1.6
            ./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-xlib --with-mysqli --with-jpeg-dir=/usr/lib/jpeg --with-zlib-dir=/usr/lib/zlib
            //--with-mcrypt

            make 
            編譯出錯  ext/mysqli/mysqli_api.c:145: error: 'gptr' undeclared (first use in this function)
            處理  ext/mysqli/mysqli_api.c and replace all occurrances of gptr with char*

            make install

            編輯 httpd.conf 文件以調(diào)用 PHP 模塊。LoadModule 表達(dá)式右邊的路徑必須指向 系統(tǒng)中的 PHP。以上的 make install 命令可能已經(jīng)完成了這些,但務(wù)必要檢查。 LoadModule php5_module modules/libphp5.so

            cp php.ini-dist /usr/local/php5/etc/php.ini





            PHP擴(kuò)展mcrypt編譯時提示:configure: error: *** libmcrypt was not found


            需要安裝libmcrypt+mhash+mcrypt

            全部編譯安裝,安裝到mcrypt的時候出現(xiàn)了問題

            ./config
            checking for libmcrypt - version >= 2.5.0... no
            *** Could not run libmcrypt test program, checking why...
            *** The test program compiled, but did not run. This usually means
            *** that the run-time linker is not finding LIBMCRYPT or finding the wrong
            *** version of LIBMCRYPT. If it is not finding LIBMCRYPT, you'll need to set your
            *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
            *** to the installed location  Also, make sure you have run ldconfig if that
            *** is required on your system
            ***
            *** If you have an old version installed, it is best to remove it, although
            *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
            ***
            configure: error: *** libmcrypt was not found

            解決方法如下:運(yùn)行 export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

            然后make ; make install

            完成


            posted on 2012-01-11 11:14 八葉草 閱讀(1350) 評論(0)  編輯 收藏 引用 所屬分類: linuxphp

            久久精品国产国产精品四凭| 国产精品青草久久久久福利99| 亚洲国产精品嫩草影院久久| 性高朝久久久久久久久久| 中文国产成人精品久久不卡| 亚洲av日韩精品久久久久久a| 久久久久人妻一区二区三区vr| 精品综合久久久久久97超人| 久久午夜福利电影| 91精品国产综合久久久久久| 久久久久久久综合日本| 久久无码人妻一区二区三区| 久久久WWW免费人成精品| 色综合久久久久无码专区| 99精品久久久久久久婷婷| 一本久久a久久精品亚洲| 久久久久香蕉视频| 九九久久99综合一区二区| 综合久久国产九一剧情麻豆| 人妻无码久久精品| 久久伊人五月天论坛| 99精品伊人久久久大香线蕉| 狠狠色婷婷久久一区二区三区 | 久久精品国产亚洲精品2020 | 国产激情久久久久久熟女老人| 久久国产精品久久精品国产| 亚洲国产精品久久电影欧美| 色偷偷91久久综合噜噜噜噜| 亚洲成人精品久久| 久久精品国产99国产精品澳门| 无码人妻久久一区二区三区蜜桃 | 久久久久久国产精品免费免费| 久久99国产精品一区二区| 99久久精品午夜一区二区 | 人妻无码αv中文字幕久久| 久久综合视频网站| 天天影视色香欲综合久久| 香蕉久久永久视频| 亚洲精品蜜桃久久久久久| 国产成年无码久久久免费| 久久久久人妻精品一区|