apache / php / solaris
mercredi 22 avril 2009
par
popularité : 8%
par
popularité : 8%
La source:
http://www.bolthole.com/solaris/php+solaris.html
télécharger php:
http://fr3.php.net/downloads.php
gunzip php-4.2.3.tar.gz
tar -xvf php-4.2.3.tar
Vérifier l'existance des package suivant:
SUNWapchr SUNWapchu SUNWzlib SFWbdb [or SMCdb from sunfreeware.com, and adjust paths appropriately] SFWmysql [If you want extra-good mysql support. Not strictly required for php.] pkginfo SUNWapchr SUNWapchu SUNWzlib SFWbdb
mettre de cdrom components:
cd /cdrom/cdrom0/components/i386/Packages
pkgadd -d . SFWgcmn
pkgadd -d . SFWgcc
pkgadd -d . SFWbdb
PATH=$PATH:/opt/sfw/bin:/usr/ccs/bin/
export PATH
CC=gcc
export CC
cd /php-4.2.3
./configure --with-apxs=/usr/apache/bin/apxs --with-zlib=/usr
make
make install
modifier dans /etc/apache/httpd.conf
LoadModule php4_module libexec/libphp4.so
en
LoadModule php4_module /usr/apache/libexec/libphp4.so
Ajouter:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
# ajouter index.php...
DirectoryIndex index.html index.php