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

Web服务器
Web服务器负载均衡方案
发现并防止对WEB应用服务器的三种攻击
如何在Windows Server 2003中配置DNS
谈用Win2003系统配置路由服务
巧妙出招致胜服务器管理
入门教程:IIS 5.0建Web服务器
几秒搭建Web服务器 绿色PHP环境套件e2php
WIN2003组策略详解
IIS 7 Web服务器管理介绍
配置emule的web服务器功能详解
Tomcat与应用、Web服务器关系
加固基于Windows 2003平台的WEB服务器
使用Windows Server 2003搭建安全服务器
Xitami Web服务器,比Apache更快捷
ISAPI Rewrite实现iis防盗链
析Windows2003的两种快速自动登录捷径
站长手册:WIN2003下Web服务器配置
Linux Apache Web服务器基础知识介绍
如何用IIS建立高安全性Web服务器
轻松架设Windows 2003中Web服务器

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-02   浏览: 33 ::
收藏到网摘: 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