centos php 5.3 ZendGard Loaderはロードできません。
5906 ワード
shutdown -r 0
文章を見るhttp://bbs.ywlm.net/thread-920-1-1.html
apacheには2つの運転モードがあります。preforkモードworkモードの2つのモードの違いを見てください。http://bbs.ywlm.net/thread-919-1-1.html 私がコンパイルする時に使いました。with-mp=workモードです。しかし、workモードの多くの第三者モジュールがサポートしていないので、それを使ってください。
ファイルを交換します。(間違いを理解しました。全部を見てから操作してください。後にコメントがあります。)
[root@localhost ~]# cd /usr/sbin/
[root@localhost sbin]# ll httpd*
-rwxr-xr-x. 1 root root 341200 Feb 14 2012 httpd
-rwxr-xr-x. 1 root root 356536 Feb 14 2012 httpd.event
-rwxr-xr-x. 1 root root 353112 Feb 14 2012 httpd.worker
[root@localhost sbin]# service httpd stop
Stopping httpd: [ OK ]
[root@localhost sbin]# mv httpd httpd.bak
[root@localhost sbin]# mv httpd.worker httpd
[root@localhost sbin]# service httpd restart
主にhttpd.workerをhttpdに置き換えます。その後、service httpd retartからヒントが出ます。
[root@localhostsbin;萼service httpd restart Stoping httpd: [Startiting htpd:httpd:Syntx error on line 221 of/etc/httpd/conf/htpd/htpd/htpd.com f:Syntx error on line 9 of/etc/httpd/cond/d.d.php. com nf:Canot load/etc/etc/tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttpppppppdddddtttfffffffffffshared object file:No such file or directory
[root@localhost sbin]# yum install php-zts
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centosl3.centos.org
* extras: centosp4.centos.org
* updates: centosq2.centos.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-zts.i686 0:5.3.3-14.el6_3 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
php-zts i686 5.3.3-14.el6_3 updates 1.2 M
Transaction Summary
===============================================================================================================================================================================================
Install 1 Package(s)
Total download size: 1.2 M
Installed size: 3.5 M
Is this ok [y/N]: y
Downloading Packages:
php-zts-5.3.3-14.el6_3.i686.rpm | 1.2 MB 00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-zts-5.3.3-14.el6_3.i686 1/1
Verifying : php-zts-5.3.3-14.el6_3.i686 1/1
Installed:
php-zts.i686 0:5.3.3-14.el6_3
Complete!
[root@localhost sbin]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[ OK ]
これでいいですログを再表示
[root@localhost ~]# tail -f /etc/httpd/logs/*
Failed loading /usr/lib/php/modules/ZendGuardLoader.so: /usr/lib/php/modules/ZendGuardLoader.so: cannot enable executable stack as shared object requires: Permission denied
記事を見るhttp://v-vampires.iteye.com/blog/908297 linuxにいくつかのものをインストールするとPermission deniedの場合があります。以下はその解決方法の一つです。 編集/etc/selinux/config、ここを見つけます。 # This file controls the state of SELinux on the system. # SELINUX=can tane one of these three values: # enforcing-SELinux security policy is enforced. # permissive-SELinux prints warnings instead of enforcing. # disabled-SELinux is fully disable. SELINUX=enforcing SELINUX=enforcingを注釈してください:葃SELINUX=enforcing、そして新しい行動を追加します。 SELINUX=disabled 保存します。閉じます
[root@localhost sbin]# shutdown -r 0
再起動したらログにあります。Failed loading /usr/lib/php/modules/ZendGuardLoader.so: /usr/lib/php/modules/ZendGuardLoader.so: undefined symbol: compiler_globals
ここで、最初の理解は間違っていたと気づきました。[root@localhost ~]# cd /usr/sbin/
[root@localhost sbin]# mv httpd httpd.worker
[root@localhost sbin]# ll http*
-rwxr-xr-x. 1 root root 341200 Feb 14 2012 httpd.bak
-rwxr-xr-x. 1 root root 356536 Feb 14 2012 httpd.event
-rwxr-xr-x. 1 root root 353112 Feb 14 2012 httpd.worker
[root@localhost sbin]# mv httpd.bak httpd
[root@localhost sbin]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[ OK ]
[root@localhost sbin]#
またphpinfoで調べたらあります。