Skip to content

Instantly share code, notes, and snippets.

@huacnlee
Created March 8, 2011 03:13
Show Gist options
  • Save huacnlee/859787 to your computer and use it in GitHub Desktop.
Save huacnlee/859787 to your computer and use it in GitHub Desktop.
Ubuntu 10.10 install PHP Apache2 from source
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
@huacnlee
Copy link
Author

huacnlee commented Mar 8, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment