PHP is a server-side, cross-platform, HTML embedded scripting language.
cd /usr/local tar -xvfz imap.tar.Z cd imap make slx SSLTYPE=unix |
imap.tar.Z is usually a symlink to the latest release, today its linked to imap-2001a.tar.Z
If you don't need SSL-Support, remove the "SSLTYPE=unix" behind the make command
Origin-Site: http://www.postgresql.org (Select a mirror close to you)
cd /usr/local tar -xvzf postgresql-7.2.1.tar.gz cd postgresql-7.2.1 ./configure \ --with-perl \ --enable-odbc \ --with-unixodbc \ --with-pam \ --with-openssl \ make make install echo /usr/local/pgsql/lib >> /etc/ld.so.conf ldconfig |
cd /usr/local/ tar -xvzf pdflib-4.0.2.tar.gz cd pdflib-4.0.2 ./configure --enable-shared-pdflib --enable-cxx make make install ldconfig |
Origin-Site: ftp://ftp.gnu.org/gnu/gettext (select a mirror close to you)
cd /usr/local tar -xvzf gettext-0.11.1.tar.gz cd gettext-0.11.1 ./configure make make check make install ldconfig |
Origin-Site: ftp://ftp.info-zip.org/pub/infozip/zlib/zlib-1.1.4.tar.gz (select a mirror close to you)
cd /usr/local tar -xvzf zlib-1.1.4.tar.gz cd zlib-1.1.4/ ./configure make make test make install ldconfig |
cd /usr/local tar -xvzf php-4.1.2.tar.gz cd php-4.1.2 ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-mysql=/usr/local/mysql \ --with-pgsql=/usr/local/pgsql \ --enable-track-vars \ --with-openssl=/usr/local/ssl \ --with-imap=/usr/local/imap-2001a \ --with-gd --with-ldap \ --enable-ftp \ --enable-sysvsem \ --enable-sysvshm \ --enable-sockets \ --with-pdflib=/usr/local \ --with-gettext \ --with-mm=/usr/local/mm-1.1.3 \ --with-jpeg-dir=/usr/lib \ --with-zlib-dir=/usr/local \ make make install |
After installing your httpd.conf is modified by axps. It should now look as follows:
<IfDefine SSL> LoadModule ssl_module libexec/libssl.so LoadModule php4_module libexec/libphp4.so </IfDefine> |
<IfDefine SSL> LoadModule ssl_module libexec/libssl.so </IfDefine> LoadModule php4_module libexec/libphp4.so |
Copy the sample php.ini to /usr/local/lib/php.ini
cp /usr/local/php-4.1.2/php.ini-dist /usr/local/lib/php.ini |
uncomment (remove the # at begin of line) the following lines in /usr/local/apache/conf/httpd.conf
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps |
you may wish to add the following:
AddType application/x-httpd-php .phtml AddType application/x-httpd-php .php3 |
Restart apache by issuing the following command:
/usr/local/apache/bin/apachectl restart |