国产99久久精品_欧美日本韩国一区二区_激情小说综合网_欧美一级二级视频_午夜av电影_日本久久精品视频

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題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關鍵字專題關鍵字專題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
當前位置: 首頁 - 科技 - 知識百科 - 正文

Lighttpd+PHP-FastCGI+MySQL+eAccelerator安裝

來源:懂視網 責編:小采 時間:2020-11-09 13:16:47
文檔

Lighttpd+PHP-FastCGI+MySQL+eAccelerator安裝

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

一、軟件準備 ============ 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

一、軟件準備
============
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包,如果沒有安裝請下載或者從光盤中安裝。
二、安裝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”
六、啟動PHP-FastCGI
===================
# /usr/local/lighttpd/bin/spawn-php.sh
七、啟動Lighttpd
================
# vi /etc/rc.d/init.d/lighttpd (檢查腳本將文件中的路徑設置為本機環境路徑,例如Lighttpd配置文件位置)
# service lighttpd start
八、測試
========
# ps aux | grep php

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

Lighttpd+PHP-FastCGI+MySQL+eAccelerator安裝

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

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 一级毛片私人影院免费 | 日韩在线视频在线观看 | 免费在线观看中文字幕 | 亚洲精品视频免费在线观看 | 亚洲第一区se | 日韩电影免费在线观看网址 | 欧美成人视屏 | 精品国产一二三区在线影院 | 快播电影网日韩新片 | 欧美精品专区免费观看 | 国产一区二区三区不卡免费观看 | 日韩亚洲视频 | 国产精品久久网 | 欧美国产日韩一区二区三区 | 亚洲精品视频区 | 91麻豆视频网站 | 亚洲国产精品一区二区九九 | 天天做天天爱夜夜爽毛片毛片 | 亚洲色图 欧美 | 国产高清美女一级a毛片久久 | av毛片免费看 | 欧美一区二区在线观看 | 日日碰日日摸日日澡视频播放 | 日本v片免费一区二区三区 欧洲精品欧美精品 | 国产精品亚洲片在线观看不卡 | 韩国在线视频 | 日本三级成人中文字幕乱码 | 91系列在线观看免费 | 黄视频网站在线看 | 亚洲国产成人精品91久久久 | 欧美国产精品 | 午夜国产精品视频 | 在线观看欧美一区 | 久久精品a一国产成人免费网站 | zozozo性欧美禽交3 | 久久久精品一区二区三区 | 国产精品久久久久激情影院 | 久久国产精品自由自在 | 久久综合中文字幕一区二区 | 国产高清在线播放免费观看 | 国产精品v欧美精品v日本精 |