Because I get tired of trying to find them on Google.
PHP5:
./configure --prefix=/usr/local/php-5.2.5 --with-apxs2=/usr/local/apache2/bin/apxs --with-imap-ssl --with-xsl --enable-sockets --with-config-file-path=/etc --with-mysql=/usr/local/mysql --with-pgsql=/opt/PostgreSQL/8.3 --enable-calendar --with-imap --with-kerberos --with-gd --with-zlib--with-gd --with-bz2 --enable-mbstring --with-xmlrpc --enable-soap --with-freetype-dir=/usr/include/freetype2 --with-pdo-mysql=/usr/local/mysql --with-pdo-pgsql=/opt/PostgreSQL/8.3 --with-curl --with-mcrypt
make && make install
Apache:
./configure --prefix=/usr/local/apache-2.2.17 --enable-cache --enable-proxy-ftp --enable-proxy-connect --enable-deflate --enable-ssl --enable-setenvif --enable-so --enable-cgi --enable-info --enable-rewrite --enable-speling --enable-usertrack --enable-deflate --enable-ssl --enable-mime-magic --enable-proxy --enable-proxy-http --with-mpm=prefork
ln -s /usr/local/apache-2.2.17 apache
make && make install
PostgreSQL 8.4:
./configure --prefix=/usr/local/postgresql-8.4.1
For 64bit (OSX Snow Leopard) use. If you don't psycopg2 doesn't work very well because 64bit python does not like 32bit postgres:
ARCH=x86_64 CFLAGS="-arch x86_64" LDFLAGS="-arch x86_64"
make && make install
Link /usr/local/pgsql to the installation directory.
Create postgres user and do:
su postgres
/usr/local/pgsql/bin/initdb -E UTF8 -D /usr/local/pgsql/data/
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data/ -l /usr/local/pgsq/data/postgresql.log start
To test:
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test
Shutdown and startup (as postgres):
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data/ stop
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data/ -l /usr/local/pgsq/data/postgresql.log start
No comments:
Post a Comment