-----------------------------------------install
php-5.2.9(package) on solaris8-----------------
1) install php-5.2.9-sol8-sparc-local
Dependencies:
libiconv,
libidn,
openssl-0.9.8k,
curl,
expat,
fontconfig,
freetype,
freetds,
gd,
libintl,
jpeg,
openldap,
mysql,
libpng,
sasl,
libxml2,
zlib,
xpm
#php --version ---occur error
2) install libgcc-3.4.6
3) install gcc-3.4.6
4) install libiconv-1.11-sol8-sparc-local
5) install openldap-2.4.16-sol8-sparc-local
6) install openssl-0.9.8k-sol8-sparc-local
7) install sasl-2.1.21-sol8-sparc-local.gz
#php --version
fatal: libsybdb.so.5: open failed: No such file
or directory
8) install freetds-0.82-sol8-sparc-local.gz
# php --version
./apachectl stop
.........
fatal: libgd.so.2: open failed: No such file or directory
9) install gd-2.0.35-sol8-sparc-local
# php --version
ld.so.1: php: fatal: libfontconfig.so.1: open failed: No such file
or directory
Killed
#
10) install fontconfig-2.7.0-sol8-sparc-local.gz
# php --version
ld.so.1: php: fatal: libfreetype.so.6: open failed: No such file or
directory
Killed
#
11) install freetype-2.3.9-sol8-sparc-local.gz
# php --vsersion
ld.so.1: php: fatal: libXpm.so.4.11: open failed: No such file or
directory
Killed
#
12) install xpm-3.4k-sol8-sparc-local.gz
# php --version
ld.so.1: php: fatal: libpng12.so.0: open failed: No such file or
directory
Killed
#
13) install libpng-1.2.38-sol8-sparc-local.gz
# php --version
ld.so.1: php: fatal: libjpeg.so.62: open failed: No such file or
directory
Killed
#
14) install jpeg-6b-sol8-sparc-local.gz
# php --version
ld.so.1: php: fatal: libcurl.so.4: open failed: No such file or
directory
Killed
#
15) install curl-7.19.5-sol8-sparc-local.gz
# php --version
ld.so.1: php: fatal: libidn.so.11: open failed: No such file or
directory
Killed
#
16) install libidn-1.14-sol8-sparc-local.gz
# php --version
ld.so.1: php: fatal: libmysqlclient.so.15: open failed: No such
file or directory
Killed
#
17) install mysql-5.0.67-sol8-sparc-local.gz
1).install
ncurses-5.6-sol8-sparc-local.gz
2).install
zebra-0.95-sol8-sparc-local.gz
3).install
openssl-0.9.8k
4).install
mysql-5.0.67-sol8-sparc-local.gz
# php --version
ld.so.1: php: fatal: libxml2.so.2: open failed: No such file or
directory
Killed
#
18) install libxml2-2.6.31-sol8-sparc-local.gz
# php --version
PHP 5.2.9 (cli) (built: May 26 2009 05:30:35)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
#
19) create php.ini
#cd /usr/local/php/doc/php
#cp php.ini /usr/local/php/lib/php
20) edit php.ini
modify
max_execution_time = 300
date.timezone = Asia/Shanghai
-----------------------------------------PHP 5.2.9 install source
code on solaris8----------------
Dependencies:
libiconv,
libidn,
openssl-0.9.8k,
curl,
expat,
fontconfig,
freetype,
freetds,
gd,
libintl,
jpeg,
openldap,
mysql,
libpng,
sasl,
libxml2,
zlib,
xpm
1.configure
---------------------
#./configure --prefix=/usr/local/php
--with-config-file-path=/usr/local/php/lib
--with-libxml-dir=/usr/local --with-xpm-dir=/usr/local
--with-mysql=/usr/local/mysql --with-gd
--with-png-dir=/usr/local --with-curl=/usr/local
--with-ldap=/usr/local --with-openssl=/usr/local/ssl
--with-zlib-dir=/usr/local/lib --enable-bcmath
--with-snmp --with-oci8=/home/oracle
--enable-sockets --enable-sigchild --enable-force-cgi-redirect
......
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
creating libtool
appending configuration tag "CXX" to libtool
Generating files
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
|
License: |
| This software is subject to the PHP License, available in
this |
| distribution in the file LICENSE. By continuing
this installation |
| process, you are bound by the terms of this license
agreement. |
| If you do not agree with the terms of this license, you must
abort |
| the installation process at this
point. |
+--------------------------------------------------------------------+
Thank you for using PHP.
Thank you for using PHP.
2.make install
----------------------------------
.....
/home/mkldba/php-5.2.9/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include
-g -O2 -c
/home/mkldba/php-5.2.9/ext/gd/libgd/gdxpm.c -o
ext/gd/libgd/gdxpm.lo
In file included from
/home/mkldba/php-5.2.9/ext/gd/libgd/gdxpm.c:16:
/usr/local/include/X11/xpm.h:76:24: X11/Xlib.h: No such file or
directory
/usr/local/include/X11/xpm.h:77:25: X11/Xutil.h: No such file or
directory
In file included from
/home/mkldba/php-5.2.9/ext/gd/libgd/gdxpm.c:16:
/usr/local/include/X11/xpm.h:153: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:163: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:175: error: syntax error before
"Visual"
/usr/local/include/X11/xpm.h:207: error: syntax error before
"exactColors"
/usr/local/include/X11/xpm.h:219: error: syntax error before
"alloc_close_colors"
/usr/local/include/X11/xpm.h:231: error: syntax error before '}'
token
/usr/local/include/X11/xpm.h:313: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:320: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:326: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:333: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:340: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:346: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:352: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:358: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:364: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:370: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:377: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:383: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:396: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:414: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:421: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:427: error: syntax error before '*'
token
/usr/local/include/X11/xpm.h:433: error: syntax error before '*'
token
*** Error code 1
make: Fatal error: Command failed for target
`ext/gd/libgd/gdxpm.lo'
#
***********tip***************
Can't find X11/Xlib.h and Xutil.h on solaris8,skip solaris8 and
choose
the newest solaris10 to install php.
***********tip***************
------------------------------------------------------PHP 5.2.9
source code on solaris10------------------------------
Dependencies:
libiconv,
libidn,
openssl-0.9.8k,
curl,
expat,
fontconfig,
freetype,
freetds,
gd,
libintl,
jpeg,
openldap,
mysql,
libpng,
sasl,
libxml2,
zlib,
xpm
1.configure
-------------------------------
#cd /home/mkldba/php-5.2.9
#./configure --prefix=/usr/local/php5
--with-config-file-path=/usr/local/php/lib
--with-libxml-dir=/usr/local/libxml --with-xpm-dir=/usr/local
--with-mysql=/usr/local/mysql --with-gd
--with-png-dir=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs
--with-curl=/usr/local --with-ldap=/usr/local
--with-openssl=/usr/local/ssl --with-zlib-dir=/usr/local/lib
--enable-bcmath --with-snmp --with-oci8=/home/oracle --enable-sockets --enable-sigchild
--enable-force-cgi-redirect
2.make install
-------------------------------
......
lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz
-liconv -lm -lsocket -lnsl -o sapi/cli/php
Installing PHP SAPI
module: apache2handler
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la
/usr/local/apache2/modules/
cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so
chmod +x /usr/local/apache2/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/home/mkldba/php-5.2.9/libs'
chmod 755 /usr/local/apache2/modules/libphp5.so
[activating module `php5' in
/usr/local/apache2/conf/httpd.conf]
Installing PHP CLI
binary: /usr/local/php/bin/
Installing PHP CLI man
page: /usr/local/php/man/man1/
Installing build
environment: /usr/local/php/lib/php/build/
Installing header
files: /usr/local/php/include/php/
Installing helper
programs: /usr/local/php/bin/
program: phpize
program: php-config
Installing man
pages: /usr/local/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR
environment: /usr/local/php/lib/php/
[PEAR] Console_Getopt - already installed: 1.2.3
[PEAR]
Archive_Tar -
already installed: 1.3.2
[PEAR] Structures_Graph- already installed: 1.0.2
[PEAR]
PEAR - already installed: 1.7.2
Wrote PEAR system config file at:
/usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini
include_path
Installing PDO
headers: /usr/local/php/include/php/ext/pdo/
3.start apache
-------------------------------
#cd /usr/local/apache2
#./apachectl start
httpd: Syntax error on line 113 of
/usr/local/apache2/conf/httpd.conf: Cannot load
/usr/local/apache2/modules/libphp5.so into server:
ld.so.1: httpd: fatal: relocation error: file
/usr/local/apache2/modules/libphp5.so: symbol sapi_module:
referenced symbol not found
***********tip***************
##no solution the above error,so choose low version php5.2.1
and apache2.0.59 to install on solaris10.
*****************************
------------------------------------------------------PHP 5.2.1
source code on solaris10------------------------------
1.configure
--------------------------------
#./configure -prefix=/usr/local/php5
-with-apxs2=/usr/local/apache2/bin/apxs
-with-libxml-dir=/usr/local/libxml
--with-mysql=/usr/local/mysql --with-gd
--with-png-dir=/usr/local --with-zlib-dir=/usr/local/lib
--enable-bcmath --with-snmp --with-oci8=/home/oracle
--enable-sockets
2.make install
-------------------------------
......
lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz
-liconv -lm -lsocket -lnsl -o sapi/cli/php
Installing PHP SAPI
module: apache2handler
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la
/usr/local/apache2/modules/
cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so
chmod +x /usr/local/apache2/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/home/mkldba/php-5.2.9/libs'
chmod 755 /usr/local/apache2/modules/libphp5.so
[activating module `php5' in
/usr/local/apache2/conf/httpd.conf]
Installing PHP CLI
binary: /usr/local/php/bin/
Installing PHP CLI man
page: /usr/local/php/man/man1/
Installing build
environment: /usr/local/php/lib/php/build/
Installing header
files: /usr/local/php/include/php/
Installing helper
programs: /usr/local/php/bin/
program: phpize
program: php-config
Installing man
pages: /usr/local/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR
environment: /usr/local/php/lib/php/
[PEAR] Console_Getopt - already installed: 1.2.3
[PEAR]
Archive_Tar -
already installed: 1.3.2
[PEAR] Structures_Graph- already installed: 1.0.2
[PEAR]
PEAR - already installed: 1.7.2
Wrote PEAR system config file at:
/usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini
include_path
Installing PDO
headers: /usr/local/php/include/php/ext/pdo/
3.start apache
------------------------------
#cd /usr/local/apache2/bin
#./apachectl start
#ps -ef|grep httpd
nobody 10390 9815 0 12:35:48
? 0:00 /usr/local/apache2/bin/httpd -k start
nobody 9819 9815 0 12:12:01
? 0:00 /usr/local/apache2/bin/httpd -k start
nobody 9817 9815 0 12:12:01
? 0:00 /usr/local/apache2/bin/httpd -k start
nobody 10377 9815 0 12:35:11
? 0:00 /usr/local/apache2/bin/httpd -k start
nobody 9823 9815 0 12:12:06
? 0:00 /usr/local/apache2/bin/httpd -k start
root 9815 1 0 12:12:01
? 0:00 /usr/local/apache2/bin/httpd -k start