<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當(dāng)前位置: 首頁(yè) - 科技 - 知識(shí)百科 - 正文

        Lighttpd+PHP-FastCGI+MySQL+eAccelerator安裝

        來源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-09 13:16:47
        文檔

        Lighttpd+PHP-FastCGI+MySQL+eAccelerator安裝

        Lighttpd+PHP-FastCGI+MySQL+eAccelerator安裝:一、軟件準(zhǔn)備 ============ Lighttpd:http://www.lighttpd.net PHP:http://www.php.com MySQL:http://www.mysql.com eAccelerator:http://sourceforge.net/project/showfiles.phpgroup_id=122
        推薦度:
        導(dǎo)讀Lighttpd+PHP-FastCGI+MySQL+eAccelerator安裝:一、軟件準(zhǔn)備 ============ Lighttpd:http://www.lighttpd.net PHP:http://www.php.com MySQL:http://www.mysql.com eAccelerator:http://sourceforge.net/project/showfiles.phpgroup_id=122

        一、軟件準(zhǔn)備 ============ Lighttpd:?http://www.lighttpd.net PHP:?http://www.php.com MySQL:?http://www.mysql.com eAccelerator:?http://sourceforge.net/project/showfiles.php?group_id=122249 將這些軟件都放到/usr/local/src Lighttpd依賴于pcre-de

        一、軟件準(zhǔn)備
        ============
        Lighttpd:?http://www.lighttpd.net
        PHP:?http://www.php.com
        MySQL:?http://www.mysql.com
        eAccelerator:?http://sourceforge.net/project/showfiles.php?group_id=122249
        將這些軟件都放到/usr/local/src

        Lighttpd依賴于pcre-devel包,如果沒有安裝請(qǐng)下載或者從光盤中安裝。
        二、安裝MySQL
        =============
        # cd /usr/local/src
        # rpm -Uvh MySQL-client-4.0.26-0.i386.rpm
        # rpm -Uvh MySQL-server-4.0.26-0.i386.rpm
        # mysqladmin -u root password “new_password_for_root”
        # service mysql start
        三、安裝Lighttpd
        ================
        # useradd lighttpd
        # vi /etc/passwd (將lighttpd用戶的登錄shell改為/bin/nologin)
        # cd /usr/local/src
        # tar xzvf lighttpd-lighttpd-1.4.10.tar.gz
        # cd lighttpd-lighttpd-1.4.10
        # CHOST=”i686-pc-linux-gnu” CFLAGS=”-O3 -msse2 -mmmx -mfpmath=sse -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer” CXXFLAGS=”-O3 -msse2 -mmmx -mfpmath=sse -funroll-loops -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer” ./configure –prefix=/usr/local/lighttpd –with-bzip2 –disable-ipv6
        # make
        # make install
        # mkdir /usr/local/lighttpd/conf
        # mkdir /usr/local/lighttpd/log
        # cp ./doc/lighttpd.conf /usr/local/lighttpd/conf/
        # cp ./doc/rc.lighttpd.redhat /etc/rc.d/init.d/lighttpd
        # chown root:root /etc/rc.d/init.d/lighttpd
        # chmod 755 /etc/rc.d/init.d/lighttpd
        # chkconfig –add lighttpd
        # cp ./doc/spawn-php.sh /usr/local/lighttpd/bin/
        # vi /usr/local/lighttpd/bin/spawn-php.sh

        以下是spawn-php.sh需要修改的部分:
        SPAWNFCGI=”/usr/local/lighttpd/bin/spawn-fcgi”
        FCGIPROGRAM=”/usr/local/php-fcgi/bin/php”
        USERID=lighttpd
        GROUPID=lighttpd

        # chown -R lighttpd:lighttpd /usr/local/lighttpd
        # vi /usr/local/lighttpd/conf/lighttpd.conf

        以下是lighttpd.conf中需要修改的部分:
        server.document-root = “/usr/local/lighttpd/html”
        server.errorlog = “/usr/local/lighttpd/log/lighttpd.error.log”
        accesslog.filename = “/usr/local/lighttpd/log/access.log”
        server.pid-file??????????? = “/var/run/lighttpd.pid”

        server.username = “lighttpd”
        server.groupname = “lighttpd”

        compress.cache-dir???????? = “/tmp”
        compress.filetype????????? = (“text/plain”, “text/html”)

        fastcgi.server???????????? = ( “.php” =>
        ( “localhost” =>
        (
        “socket” => “/tmp/php-fastcgi.socket”,
        “bin-path” => “/usr/local/php-fcgi/bin/php”
        )
        )
        )
        四、安裝PHP
        ===========
        # cd /usr/local/src
        # tar xzvf php-4.2.2.tar.gz
        # cd php-4.4.2
        # CHOST=”i686-pc-linux-gnu” CFLAGS=”-O3 -msse2 -mmmx -mfpmath=sse -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer” CXXFLAGS=”-O3 -msse2 -mmmx -mfpmath=sse -funroll-loops -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer” ./configure –prefix=/usr/local/php-fcgi –enable-fastcgi –with-mysql –enable-zend-multibyte –with-config-file-path=/usr/local/php-fcgi/etc –enable-discard-path –enable-force-cgi-redirect –with-gd –enable-gd-native-ttf –enable-gd-jis-conv –with-freetype-dir –with-jpeg-dir –with-png-dir –with-zlib –enable-xml –enable-mbstring
        # make
        # make install
        # cp php.ini-dist /etc/php.ini
        五、安裝eAccelerator
        ====================
        # /usr/local/src
        # bunzip2 -d eaccelerator-0.9.4.tar.bz2
        # tar -xvf eaccelerator-0.9.4.tar
        # cd eaccelerator-0.9.4
        # export PHP_PREFIX=”/usr/local/php-fcgi”
        # $PHP_PREFIX/bin/phpize
        # CHOST=”i686-pc-linux-gnu” CFLAGS=”-O3 -msse2 -mmmx -mfpmath=sse -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer” CXXFLAGS=”-O3 -msse2 -mmmx -mfpmath=sse -funroll-loops -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer” ./configure –enable-eaccelerator=shared –with-php-config=$PHP_PREFIX/bin/php-config
        # make
        # make install
        (eAccelerator安裝在/usr/local/php-fcgi/lib/php/extensions/no-debug-non-zts-XXXXXXXX)
        # cat eaccelerator.ini >> /usr/local/php-fcgi/etc/php.ini
        # vi /usr/local/php-fcgi/etc/php.ini
        //全局部分
        cgi.fix_pathinfo = 1
        extension_dir = “/usr/local/php-fcgi/lib/php/extensions/no-debug-non-zts-XXXXXXXX”
        zlib.output_compression = On

        //eAccelerator部分
        zend_extension = “/usr/local/php-fcgi/lib/php/extensions/no-debug-non-zts-XXXXXXXX/eaccelerator.so”
        eaccelerator.shm_size = “0″
        eaccelerator.cache_dir = “/tmp”
        eaccelerator.enable = “1″
        eaccelerator.optimizer = “1″
        eaccelerator.debug = 0
        eaccelerator.log_file = “/var/log/eaccelerator_log”
        eaccelerator.name_space = “”
        eaccelerator.check_mtime = “1″
        eaccelerator.filter = “”
        eaccelerator.shm_max = “0″
        eaccelerator.shm_ttl = “0″
        eaccelerator.shm_prune_period = “0″
        eaccelerator.shm_only = “0″
        eaccelerator.compress = “1″
        eaccelerator.compress_level = “9″
        eaccelerator.keys???? = “shm_and_disk”
        eaccelerator.sessions = “shm_and_disk”
        eaccelerator.content = “shm_and_disk”
        eaccelerator.admin.name = “SET_USERNAME”
        eaccelerator.admin.password = “SET_PASSWORD”
        六、啟動(dòng)PHP-FastCGI
        ===================
        # /usr/local/lighttpd/bin/spawn-php.sh
        七、啟動(dòng)Lighttpd
        ================
        # vi /etc/rc.d/init.d/lighttpd (檢查腳本將文件中的路徑設(shè)置為本機(jī)環(huán)境路徑,例如Lighttpd配置文件位置)
        # service lighttpd start
        八、測(cè)試
        ========
        # ps aux | grep php

        聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        Lighttpd+PHP-FastCGI+MySQL+eAccelerator安裝

        Lighttpd+PHP-FastCGI+MySQL+eAccelerator安裝:一、軟件準(zhǔn)備 ============ Lighttpd:http://www.lighttpd.net PHP:http://www.php.com MySQL:http://www.mysql.com eAccelerator:http://sourceforge.net/project/showfiles.phpgroup_id=122
        推薦度:
        標(biāo)簽: 安裝 php mysql
        • 熱門焦點(diǎn)

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 欧美男同gv免费网站观看 | 久久久久亚洲AV成人网| 亚洲精品无码久久| 特级做A爰片毛片免费69| 99热亚洲色精品国产88| 女性自慰aⅴ片高清免费| 最新亚洲春色Av无码专区| 性xxxx视频播放免费| WWW国产亚洲精品久久麻豆| 波多野结衣中文一区二区免费| 黄色免费网址在线观看| 亚洲欧洲久久久精品| aa在线免费观看| 亚洲精品国产肉丝袜久久| 免费毛片a在线观看67194| 亚洲国产精品无码久久98| 国产日产成人免费视频在线观看| 国产亚洲精品2021自在线| 久久久久亚洲精品男人的天堂| 黄色网站软件app在线观看免费| 久久久久亚洲av无码专区喷水| 最近免费中文字幕mv电影| 亚洲精品第一综合99久久| 四虎永久在线精品免费影视 | 人人狠狠综合久久亚洲88| 16女性下面无遮挡免费| 亚洲欧美日韩综合俺去了| 亚洲综合色自拍一区| 久久免费看黄a级毛片 | 日韩亚洲人成网站| 亚洲中文字幕久久精品无码喷水| 一级毛片在线免费看| 亚洲av无码专区在线电影天堂| 国产中文在线亚洲精品官网| 丁香花在线视频观看免费| 亚洲日本在线免费观看| 四虎影库久免费视频| 免费无码又爽又刺激高潮视频| 亚洲日韩久久综合中文字幕| 亚洲精品无码国产| 在线免费视频一区二区|