Keith Watanabe * NET 2.0

PHP Installation
By: Keith Watanabe
Published On: 3-19-2005

i generally create a small install script for my php installs: #!/bin/sh APACHE=/usr/local/apache APXS=${APACHE}/bin/apxs DB=/opt/databases MYSQL=${DB}/mysql PGSQL=${DB}/pgsql OPENSLL=/opt/openssl PHP_BASE=/usr/local/php VERSION=5.0.3 PHP_HOME=${PHP_BASE}-${VERSION} ./configure -prefix=${PHP_HOME} \ --with-apxs=${APXS} \ --with-openssl=${OPENSSL} \ --with-zlib \ --with-dom \ --with-xmlrpc \ --with-pgsql=${PGSQL} \ --with-mysql=${MYSQL} \ --enable-mbstring \ --enable-mbstr-enc-trans \ --enable-soap make make install cd /usr/local ln -s php-5.0.3 php cp /php.ini-dist /usr/local/php/lib/php.ini note: be sure to change the value of your php directory when copying the files over. I use this as a kind of standard. Also, you have to edit your httpd.conf file to tell apache to load certain extensions with php. add (after mod_negotiation.c): # # And for PHP 5.x, use: # AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps

Tags: apache php
AddThis Social Bookmark Button Sphere: Related Content

Trackbacks: (Trackback URL)

No Comments Posted Yet

June [July] August
Sun Mon Tue Wed Thu Fri Sat
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2