记下一些东西,省得下去又要到处找。关键是configure时的options
1. 编译安装Apache 2.2.9
下载,解压,./configure
./configure --prefix=/usr/local/apache2.2.9 --enable-modules=so
make
make install
其实如果打算把apache和php装在一起,应该选择一个如/usr/local/lamp之类的目录,免得打包发布时麻烦。
2. 安装PHP安装所需开发包。
rpm -ivh /
freetype-devel-2.2.1-10.fc6.i386.rpm /
gd-devel-2.0.33-9.3.fc6.i386.rpm /
libjpeg-devel-6b-37.i386.rpm /
libpng-devel-1.2.10-7.i386.rpm /
zlib-devel-1.2.3-3.i386.rpm /
libXpm-devel-3.5.5-3.i386.rpm
这些包都是在FC6上所需要的。在其他版本,如FC8上会有所不同。
2. 编译安装PHP 5.2.6
下载,解压,
./configure /
--prefix=/usr/local/php-5.2.6 /
--with-apxs2=/usr/local/apache2.2.9/bin/apxs /
--with-mysql /
--with-gd /
--with-zlib /
--with-png-dir=/usr /
--with-jpeg-dir=/usr /
--with-freetype-dir=/usr /
--enable-sockets /
--with-iconv /
--enable-mbstring /
--enable-force-cgi-redirect /
--with-config-file-path=/usr/local/php-5.2.6/etc /
--with-gettext
这里要注意--with-gettext,我见网上有的贴子没有用这个选项,其结果就是不能支持 _() 这种写法。
make
make install
3. 改动httpd.conf
参考《 在Fedora Core 8半手动上安装LAMP》
1. 编译安装Apache 2.2.9
下载,解压,./configure
./configure --prefix=/usr/local/apache2.2.9 --enable-modules=so
make
make install
其实如果打算把apache和php装在一起,应该选择一个如/usr/local/lamp之类的目录,免得打包发布时麻烦。
2. 安装PHP安装所需开发包。
rpm -ivh /
freetype-devel-2.2.1-10.fc6.i386.rpm /
gd-devel-2.0.33-9.3.fc6.i386.rpm /
libjpeg-devel-6b-37.i386.rpm /
libpng-devel-1.2.10-7.i386.rpm /
zlib-devel-1.2.3-3.i386.rpm /
libXpm-devel-3.5.5-3.i386.rpm
这些包都是在FC6上所需要的。在其他版本,如FC8上会有所不同。
2. 编译安装PHP 5.2.6
下载,解压,
./configure /
--prefix=/usr/local/php-5.2.6 /
--with-apxs2=/usr/local/apache2.2.9/bin/apxs /
--with-mysql /
--with-gd /
--with-zlib /
--with-png-dir=/usr /
--with-jpeg-dir=/usr /
--with-freetype-dir=/usr /
--enable-sockets /
--with-iconv /
--enable-mbstring /
--enable-force-cgi-redirect /
--with-config-file-path=/usr/local/php-5.2.6/etc /
--with-gettext
这里要注意--with-gettext,我见网上有的贴子没有用这个选项,其结果就是不能支持 _() 这种写法。
make
make install
3. 改动httpd.conf
参考《 在Fedora Core 8半手动上安装LAMP》