Home  >  Article  >  php教程  >  Slaris10系统下编译安装apache2、mysql5和php5

Slaris10系统下编译安装apache2、mysql5和php5

WBOY
WBOYOriginal
2016-06-13 11:00:291102browse

默认完全安装Slaris10
# uname -srvmpi
SunOS 5.10 s10_58 sun4u sparc SUNW,Ultra-250 //操作环境
到网站下载安装好gcc autoconf  automake bison ncurses等编译环境软件。
#PATH=/usr/sbin:/usr/bin:/usr/local/bin/:/usr/ccs/bin
编译安装HTTPD2
# tar xvf httpd-2.1.3-beta.tar
# cd httpd-2.1.3-beta
# CC=gcc CFLAGS="-O6" CXX=gcc CXXFLAGS="-O6 -felide-constructors -fno-exceptions -fno-rtti"

//上一行命令可以不用,其具体意义我也不是很明白。
# ./configure --enable-so
//DSO模式安装apache
# make
# make install

//编辑配置文件httpd.conf,添加改动如下,启动httpd成功
# vi /usr/local/apache2/conf/httpd.conf

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn