当前位置: 首页 > 图文教程 > 服务器 > Web服务器 > Linux下安PHP,APACHE,MYSQL,PERL方法 4

Web服务器
如何以Solaris架设FTP虚拟系统(四)
FTP服务器如何实现安全性 上
FTP服务器如何实现安全性 下
基于UNIX平台FTP服务器的建立 上
基于UNIX平台FTP服务器的建立 下
NT中如何实现用户只能进入自己的FTP目录
ProFtpd快速指南(一)
ProFtpd快速指南(二)
ProFtpd快速指南(三)
ProFtpd快速指南(四)
ProFtpd快速指南(五)
ProFtpd快速指南(六)
ProFtpd快速指南(七)
Serv-U3.0的User和Group设置(上)
Serv-U3.0的User和Group设置 下
Serv-U3.0的Domain设置 上
Serv-U3.0的Domain设置 中
Serv-U3.0的Domain设置 下
用tar包配置高可用性vsftp(一)
用tar包配置高可用性vsftp(二)

Web服务器 中的 Linux下安PHP,APACHE,MYSQL,PERL方法 4


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-02   浏览: 36 ::
收藏到网摘: n/a

cp /mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysql
cd /etc/rc.d/rc3.d
ln -s ../init.d/mysql S70mysql

系统启动时加载mysql

#) apache 的预编译

CC="egcs" \
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
-march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
./configure \
--prefix=/apache \

#) php的预编译

CC="egcs" \
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
-march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
./configure \
--prefix=/usr \
--with-apache=../apache_1.3.12 \
--enable-safe-mode \
--with-mm \
--enable-inline-optimization \
--enable-memory-limit \
--enable-track-vars \
--with-mysql=/mysql \

#) 安装php

make
make install
make clean

#) mode_perl 的预编译

perl Makefile.PL \
EVERYTHING=1 \
APACHE_SRC=../apache_1.3.12/src \
USE_APACI=1 \
DO_HTTPD=1

#) 安装mod_perl

make
make install
make clean

#) 编译apache

EAPI_MM=SYSTEM \
CC="egcs" \
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
-march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
./configure \
--prefix=/apache \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4 \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl

#) 安装apache

make
make install
make clean

cp /apache/bin/apachectl /etc/rc.d/init.d/httpd
cd /etc/rc.d/rc3.d
ln -s ../init.d/httpd S80httpd

系统启动时加载apache

#) 安装eperl

perl Makefile.PL

make
make test
make install
make clean
-frame-pointer -fno-exceptions" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
./configure \
--prefix=/apache \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4 \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl

#) 安装apache

make
make install
make clean

cp /apache/bin/apachectl /etc/rc.d/init.d/httpd
cd /etc/rc.d/rc3.d
ln -s ../init.d/httpd S80httpd

系统启动时加载apache

#) 安装eperl

perl Makefile.PL

make
make test
make install
make clean


make
make test
make install
make clean
make clean