php
----------------------------
php-4.4.4-sol10-x86-local.gz
libgcc-3.3 or gcc
apache 2.0.59, not apache 2.2
mysql
/usr/local/php4 to avoid confusion with php5 which installs in /usr/local/php. Php requries that either libgcc-3.3 or gcc be installed. PHP is used with apache 2.0.59, not apache 2.2, and mysql which should also be installed along with any packages they may require. PHP needs configuration. php.ini related files are in /usr/local/php4/doc/php4 along with other documentation. php.ini needs to be installed in /usr/local/php4/lib. The libphp4.so file is installed in /usr/local/apache2/modules. The following two lines
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
-----------------------------
#gzip -d php-4.4.4-sol10-x86-local.gz
#pkgadd -d ./php-4.4.4-sol10-x86-local
#vi /etc/apache2/httpd.conf
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
#mkdir /usr/apache2/modules
#cp /usr/local/apache2/modules/libphp4.so /usr/apache2/modules/
#/usr/apache2/bin/apachectl configtest
#svcadm refresh apache2
#svcadm restart apache2
#svcs apache2
#svcadm disable apache2
#svcadm enable apache2
-------------------------------
org
'./configure' '--prefix=/usr/local/php4' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql'
'./configure' '--prefix=/usr/local/php4' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-pgsql=/usr/local/pgsql'
./configure --prefix=/usr/local/php4 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql
./configure --prefix=/usr/local/php4 --with-apxs=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql
./configure --prefix=/usr/local/php4 --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql
#****
./configure --prefix=/usr/local/php4 --with-pgsql=/usr/local/pgsql --with-apxs=/usr/local/apache2/bin/apxs
make
make install
./configure --with-pgsql=/usr/local/pgsql
make
crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib
make install
refe
% ./configure --enable-mbstring --enable-mbstr-enc-trans --with-pgsql=/usr/local/pgsql --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
----------------------------------
X
php4-pgsql
/usr/local/Zend/etc/php.ini
./configure --with-php-config=/usr/local/Zend/etc/php.ini --with-php-config=/usr/local/php4/bin/php-config
----------------------------------
./configure --prefix=/usr/local/php4 --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local/lib --with-bz2=/usr/local/lib --enable-calendar --with-db4=/usr/local/BerkeleyDB.4.2 --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --enable-mbstring --enable-wddx --with-gd --with-png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib --enable-sockets --with-iconv-dir=/usr/local/lib --enable-ftp --with-openssl=/usr/local/ssl --enable-calendar
「cp」コマンドで、"php.ini-dist"設定ファイルを"/usr/local/lib"ディレクトリに、名前を変えて、コピーする。
【SSHコンソール画面】
# cp php.ini-dist /usr/local/lib/php.ini
vi /usr/local/lib/php.ini
<html>
<head>
</head>
<body>
<?php
phpinfo();
?>
</body>
</html>