Created
March 8, 2011 03:13
-
-
Save huacnlee/859787 to your computer and use it in GitHub Desktop.
Ubuntu 10.10 install PHP Apache2 from source
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install libjpeg8-dev libmysqlclient-dev | |
| curl -O http://www.php.net/get/php-5.3.5.tar.gz/from/a/mirror | |
| curl -O http://mirror.bjtu.edu.cn/apache//httpd/httpd-2.2.17.tar.gz | |
| tar zxf httpd-2.2.17.tar.gz | |
| cd httpd-2.2.17 | |
| ./configure --prefix=/etc/apache2 --enable-so --enable-cgi --enable-info --enable-rewrite \ | |
| --enable-speling --enable-usertrack --enable-deflate --enable-ssl --enable-mime-magic \ | |
| --enable-dav --enable-vhost-alias --enable-proxy --enable-expires --enable-headers | |
| make && sudo make install | |
| cd .. | |
| tar zxf php-5.3.5.tar.gz | |
| cd php-5.3.5 | |
| ./configure --with-apxs2=/etc/apache2/bin/apxs --with-mysql --prefix=/etc/php5 \ | |
| --with-config-file-path=/etc/php5 --with-zlib --with-gettext \ | |
| --enable-mbstring --enable-intl | |
| make && sudo make install | |
| sudo pecl install apc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://dan.drydog.com/apache2php.html