|
Prerequisites: |
FreeBSD (Base + Autoconf, Automake,
Bash and GCC) OpenSSL GD LibXML Apache MySQL FreeTDS Basic components Part I and Part II (like bzip, curl and openldap etc.) |
|
Overview: |
|
Step #1 - Download and Install
PHP - Portable Hypertext Preprocessor
Home:
# Download (Notes:
Users behind a Proxy
Server should read this and
users without Internet but have a CDRom read this.)
cd /usr/src
fetch
http://us2.php.net/distributions/php-5.2.10.tar.gz
# Unzip
and Untar
tar xvf php-?.?.??.tar.gz
#
Stop Apache
/usr/local/sbin/apachectl -k stop
# Change directory
cd php-?.?.??
# Configure
./configure --with-apxs2=/usr/local/sbin/apxs
--with-mysql=/usr/local --with-openssl=/usr --with-mssql=/usr/local
--with-zlib --with-jpeg-dir=/usr/local/lib
--with-freetype-dir=/usr/local/lib --enable-exif
--with-png-dir=/usr/local/lib --enable-calendar --enable-ftp
--with-libxml-dir=/usr/local/lib --with-snmp=/usr/local
--enable-fastcgi --enable-magic-quotes --enable-mbstring
--enable-sockets --with-gd --enable-gd-native-ttf --enable-soap
--enable-sigchild --enable-dbase --with-mssql --with-bz2
--with-kerberos --with-unixODBC --with-ldap --with-curl
--with-curlwrappers --with-pdo-dblib --with-cdb --enable-bcmath
# Compile
& Install
cp
/usr/local/include/net-snmp/system/freebsd6.h
/usr/local/include/net-snmp/system/freebsd7.h
make install clean
|
php.ini and phpinfo.php |
|
#
Copy the "php.ini" file
# Edit the Apache configuration file
(Add to the very bottom of the file!)
# Restart
Apache: chown -R www:www /usr/local/www/data
# Test
the phpinfo.php file with your web browser:
# Add
some compatibility for Linux applications by creating a symbolic
link
# Use PEAR to install DB |