|
发表于 2006-2-27 15:54:50
|
显示全部楼层
[quote:a27f9e2858="gugong"][code:1]2006年02月24日星期五上午10时20分40秒[root@Ranan home]# ll ZendOptimizer-2.6.2-linux-glibc2*
-rw-r--r-- 1 oracle oinstall 5199435 2月 24 09:53 ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
-rw-r--r-- 1 oracle oinstall 5683509 2月 24 09:53 ZendOptimizer-2.6.2-linux-glibc23-x86_64.tar.gz
2006年02月24日星期五上午10时20分44秒[root@Ranan home]#[/code:1]
[code:1]2006年02月24日星期五上午10时20分44秒[root@Ranan home]# cat /etc/php.d/Zend.ini
extension=ZendOptimizer.so
memory_limit=100M
2006年02月24日星期五上午10时21分03秒[root@Ranan home]#
[/code:1]
[code:1]2006年02月24日星期五上午10时21分03秒[root@Ranan home]# uname -a
Linux Ranan.xxx.com 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST 2005 x86_64 x86_64 x86_64 GNU/Linux
2006年02月24日星期五上午10时21分46秒[root@Ranan home]#[/code:1]
[code:1]2006年02月24日星期五上午10时21分46秒[root@Ranan home]# ll /usr/lib64/php4/ZendOptimizer.so
-rwxr-xr-x 1 root root 690408 1月 4 20:48 /usr/lib64/php4/ZendOptimizer.so*
2006年02月24日星期五上午10时22分40秒[root@Ranan home]#[/code:1]
结果在:
http://www.ehuilong.com/gugong/gugong/html/phpinfo/phpinfo_4.3.9_zend_2.6.2.php[/quote]
[code:1]2006年02月27日星期一下午15时44分38秒[root@Ranan contexts]# ll -Z /usr/lib64/php4
-rwxr-xr-x root root system_u:object_r:shlib_t domxml.so*
-rwxr-xr-x root root system_u:object_r:shlib_t gd.so*
-rwxr-xr-x root root system_u:object_r:shlib_t imap.so*
-rwxr-xr-x root root system_u:object_r:shlib_t ldap.so*
-rwxr-xr-x root root system_u:object_r:shlib_t mbstring.so*
-rwxr-xr-x root root system_u:object_r:shlib_t mysql.so*
-rwxr-xr-x root root system_u:object_r:shlib_t ncurses.so*
-rwxr-xr-x root root system_u:object_r:shlib_t odbc.so*
-rwxr-xr-x root root system_u:object_r:shlib_t pgsql.so*
-rwxr-xr-x root root system_u:object_r:shlib_t snmp.so*
-rwxr-xr-x root root system_u:object_r:shlib_t xmlrpc.so*
-rwxr-xr-x root root root:object_r:lib_t ZendOptimizer.so*
[/code:1]
[code:1]2006年02月27日星期一下午15时35分58秒[root@Ranan ~]# getsebool httpd_disable_trans
httpd_disable_trans --> inactive
[/code:1]
[code:1]2006年02月27日星期一下午15时36分23秒[root@Ranan ~]# cat /var/log/httpd/error_log
...
[Mon Feb 27 15:22:38 2006] [notice] caught SIGTERM, shutting down
[Mon Feb 27 15:22:38 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin /suexec)
[Mon Feb 27 15:22:38 2006] [notice] Digest: generating secret for digest authent ication ...
[Mon Feb 27 15:22:38 2006] [notice] Digest: done
[Mon Feb 27 15:22:38 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Mon Feb 27 15:22:38 2006] [notice] LDAP: SSL support unavailable
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib64/php4/ZendOpt imizer.so' - /usr/lib64/php4/ZendOptimizer.so: failed to map segment from shared object: Permission denied in Unknown on line 0
[Mon Feb 27 15:22:38 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Mon Feb 27 15:22:38 2006] [notice] Apache/2.0.52 (Red Hat) configured -- resumi ng normal operations
[/code:1]
[code:1][root@Ranan contexts]# php -v
PHP 4.3.9 (cgi) (built: Nov 24 2004 08:53:30)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Optimizer v2.6.2, Copyright (c) 1998-2006, by Zend Technologies
[/code:1]
google
[code:1][root@Ranan contexts]# restorecon -v /usr/lib64/php4/ZendOptimizer.so
restorecon reset context /usr/lib64/php4/ZendOptimizer.so->system_u:object_r:shlib_t
[/code:1]
[code:1]2006年02月27日星期一下午15时49分36秒[root@Ranan contexts]# ll /usr/lib64/php4 -Z
-rwxr-xr-x root root system_u:object_r:shlib_t domxml.so*
-rwxr-xr-x root root system_u:object_r:shlib_t gd.so*
-rwxr-xr-x root root system_u:object_r:shlib_t imap.so*
-rwxr-xr-x root root system_u:object_r:shlib_t ldap.so*
-rwxr-xr-x root root system_u:object_r:shlib_t mbstring.so*
-rwxr-xr-x root root system_u:object_r:shlib_t mysql.so*
-rwxr-xr-x root root system_u:object_r:shlib_t ncurses.so*
-rwxr-xr-x root root system_u:object_r:shlib_t odbc.so*
-rwxr-xr-x root root system_u:object_r:shlib_t pgsql.so*
-rwxr-xr-x root root system_u:object_r:shlib_t snmp.so*
-rwxr-xr-x root root system_u:object_r:shlib_t xmlrpc.so*
-rwxr-xr-x root root system_u:object_r:shlib_t ZendOptimizer.so*
2006年02月27日星期一下午15时50分39秒[root@Ranan contexts]#[/code:1]
[code:1]2006年02月27日星期一下午15时46分13秒[root@Ranan contexts]# !/etc
/etc/init.d/httpd restart
停止 httpd: [ 确定 ]
启动 httpd: [ 确定 ]
2006年02月27日星期一下午15时46分17秒[root@Ranan contexts]# cat /var/log/httpd/error_log
...
[Mon Feb 27 15:46:16 2006] [notice] caught SIGTERM, shutting down
[Mon Feb 27 15:46:17 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin /suexec)
[Mon Feb 27 15:46:17 2006] [notice] Digest: generating secret for digest authent ication ...
[Mon Feb 27 15:46:17 2006] [notice] Digest: done
[Mon Feb 27 15:46:17 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Mon Feb 27 15:46:17 2006] [notice] LDAP: SSL support unavailable
[Mon Feb 27 15:46:17 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Mon Feb 27 15:46:17 2006] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations
[/code:1]
以上是安装系统,即将 SELinux 激活的情况。然后再安装 ZendOptimizer.so ,并 [code:1] restorecon -v /usr/lib64/php4/ZendOptimizer.so[/code:1] 设置一下后, httpd 即启动正常了,ZendOptimizer 就安装正常了。
先前是没激活的(上星期给你看的)。 |
|