¹ØÓÚapache2.2.8+php5.2.5µÄÎÊÌâ
ÔÚred flag linux6ÉÏ×°µÄ£¡ÈçÏÂ:
apache2.2.8:
./configure --prefix=/usr/local/apache2 --enable-module=so
make
make install
×°ÉϺóÄÜÕý³£ÔËÐÐ!
php5.2.5:
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs
make
make install(°²×°ÌáʾÈçÏÂ)
[root@localhost php-5.2.5]# make install
Installing PHP SAPI module: apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/libtool' libphp5.la /usr/local/apache2/modules
/usr/lib/apr-1/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /root/web/php-5.2.5/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/php5/bin/
Installing PHP CLI man page: /usr/local/php5/man/man1/
Installing build environment: /usr/local/php5/lib/php/build/
Installing header files: /usr/local/php5/include/php/
Installing helper programs: /usr/local/php5/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php5/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/php5/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.6.1
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/php5/lib/php to your php.ini include_path
Installing PDO headers: /usr/local/php5/include/php/ext/pdo/
µ½ apacheĿ¼ÏÂÔËÐÐ
./httpd -k start ʱÌáʾ:
[root@localhost bin]# ./httpd -k start
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: sqlite3VtabArgExtend
ÄÇλ¸ßÊÖÐÖµÜÄܰï°ïÎÒÕâ²ËÄñѽ£¡£¡£¡ [quote]ÔÌûÓÉ [i]jhting[/i] ÓÚ 2008-2-7 16:52 ·¢±í [url=http://bbs.linuxeden.com/redirect.php?goto=findpost&pid=602914&ptid=161924][img]http://bbs.linuxeden.com/images/common/back.gif[/img][/url]
ÔÚred flag linux6ÉÏ×°µÄ£¡
ÈçÏÂ:
...
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/php5/lib/php to your php.ini include_path
... [/quote]×¢ÒâÕâ¾ä£¡ÔÚphp.ini¼ÓÉÏ/usr/local/php5/lib/php µÄ·¾¶ÊÔÊÔ¡£ Èç¹û²»Óà sqllite, ÔÚ configure php µÄʱºò disable µô¾Í¿ÉÒÔÁË. ÓÃ
./configure --help | grep sqlite ¿´¿´Ïà¹Ø±àÒëÑ¡Ïî.
Ò³:
[1]