1. 程式人生 > >啟動Apache httpd報錯Cannot load /etc/httpd/modules/libphp5-zts.so into server 解決方案

啟動Apache httpd報錯Cannot load /etc/httpd/modules/libphp5-zts.so into server 解決方案

Symptoms

Apache cannot start on Linux Shared Hosting NG webserver after PHP 5.3 was upgraded to php53-5.3.3-5.el5 (using the command yum update php53) with the error message below:

[[email protected] conf]# service httpd start
正在啟動 httpd:httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error
on line 9 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5-zts.so into server: /etc/httpd/modules/libphp5-zts.so: cannot open shared object file: No such file or directory [失敗]

Cause

The PHP module libphp5-zts.so is absent on a webserver. It also cannot be found in Cloudlinux repository, yum cannot find it:

# yum search php-zts*
Loaded plugins: fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
 * cloudlinux-base-h2e: repo.cloudlinux.com
 * cloudlinux-x86_64-server-5: xmlrpc.cln.cloudlinux.com
Reducing repo-id-7 to included packages only
Finished
Warning: No matches found for: php-zts*
No Matches found

During PHP 5.3 upgrade the following directive is being configured in the file /etc/httpd/conf.d/php.conf which is included from the main Apache configuration file /etc/httpd/httpd.conf:

<IfModule worker.c>
   LoadModule php5_module modules/libphp5-zts.so
</IfModule>

So, Apache is configured to load absent PHP module and it cannot start due to this misconfiguration.

Resolution

The workaround:

Comment the directive which loads libphp5-zts.so module in the file /etc/httpd/conf.d/php.conf
Start Apache

相關推薦

啟動Apache httpdCannot load /etc/httpd/modules/libphp5-zts.so into server 解決方案

Symptoms Apache cannot start on Linux Shared Hosting NG webserver after PHP 5.3 was upgraded to php53-5.3.3-5.el5 (using the command yum update

啟動Apache httpdCannot load /etc/httpd/modules/libphp5-zts.so into server 解決方案

Symptoms Apache cannot start on Linux Shared Hosting NG webserver after PHP 5.3 was upgraded to php53-5.3.3-5.el5 (using the comma

MYSQL 8.0+ :Client does not support authentication protocol requested by server 解決方案

前言 之前一直用mac的mysql都沒這個問題,在win上配環境就出了這個問題,網上查出的那個OLD_PASSWORD('新密碼')的方法是根本不行的,原因是根本就沒有這個欄位,大家可以執行下以下命令就清楚了。 mysql> show variable

centOS7啟動apacheCaused by: java.net.UnknownHostException: wshCentOS:

ima 測試方法 /etc/ cep class pac exceptio 啟動 http 測試方法: ping 127.0.0.1 ping localhost 解決方案: vi /etc/hosts 把127.0.0.1和wshCentOS綁定就好 按 i 進入修

安裝Caffe: Cannot load caffe2.python. Error... not

警告 WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode. 出現上面的問題的話, 首先看看是不是沒有安裝NCCL, 如果沒有安裝的話, 安裝以後應該就能好

(轉)啟動網卡(Failed to start LSB: Bring up/down networking )解決辦法總結

deb contain ade nag disabled dev nta container save 啟動網卡報錯(Failed to start LSB: Bring up/down networking )解決辦法總結 原文:http://blog.51cto.com

jmeter連接mysql數據庫Cannot create PoolableConnectionFactory (Could not create connection to database server.)

cannot jar 嘗試 後來 連接 database 方法 java-5 驅動 今天在學習jmeter的jdbc取樣器,發現在配置完JDBC Connection Configuration和JDBC Request後,點擊運行。在查看結果樹中顯示響應數據: Canno

c#npoi Cannot get a numeric value from a text cell 的解決

異常 str etc long rim 否則 ring npoi col 一般是因為cell裏邊的值為數字導致,有時變成文本格式還是解決不了這個問題. 下邊的代碼是c# 改變設置cell類型的方法 是用這個參數 CellType.String Row.GetCel

阿里雲CentOS7.4啟動Tomcat9沒有,埠已經開放,但是瀏覽器一直等待響應解決辦法7

tomcat9,啟動和退出均無報錯。centOS7.4防火牆已關閉,阿里雲防火牆已經開放埠,telnet測試伺服器的埠也通過了,**瀏覽器訪問以後沒有提示“無法訪問”,而是一直在連線中,並且等待伺服器響應。**並且如果把瀏覽器放任一邊不管,可能會開啟幾次tomc

iOS之Cannot create __weak reference in file using manual reference counting”解決辦法

解決的辦法:在Build Settings———>Aplle LLVM8.0 - Language - Objectibe-C————->Weak Reference In Manual Retain Release 設定為YES。

idle打開Python api-ms-win-crt-runtimel1-1-0.dll缺失的解決方案

nbsp wow64 sys 方案 article clas runtime window 重新安裝 1.此方法轉載至 http://blog.csdn.net/lt_java13/article/details/78814676 2.把C:\Windows\SysWO

RavenDb has already produced 16 map results for a source document 解決方案

add default pla eas ask document cti def purchase 今天發現 RAVenDb 數據庫報告錯誤 Index ‘OrderTicketIssueReportIndex‘ has already produced 16 map re

windows平臺python安裝mysqlclient"Microsoft Visual C++ 14.0 is required"的解決方案

err tool sta www. 方案 技術 sql build ont windows平臺直接用 pip install mysqlclient 命令安裝報錯: error: Microsoft Visual C++ 14.0 is required. Get it

NginX之10060錯誤upstream timed out (10060: A connection attempt...——解決方案

由於介面呼叫頻率較高,故選用NginX配置負載均衡,均衡伺服器壓力,原始nginx.conf配置如下 原始nginx.conf檔案 #user nobody; worker_processes 1; #error_log logs/error.log; #er

AndroidStudio新建專案Conflict with dependency 'com.android.support:support-annotations'in project 解決方案

錯誤提示如下: Error:Execution failed for task ‘:app:preDebugAndroidTestBuild’. Conflict with dependenc

Windows下安裝RabbitMQ:unable to perform an operation on node時的解決方案

本文轉載自http://blog.csdn.net/seven_coder/article/details/79091934 找了很久才找到原博主的這個解決方案。故轉載到自己部落格裡,以待以後可以查看回憶。 前言 最近在Windows server 2012 R2

linux下配置maven後使用命令mvnNB: JAVA_HOME should point to a JDK not a JRE解決方案

筆者在之前的linux環境配置中,安裝jdk使用都都是rpm和壓縮包都方式安裝,這次使用yum安裝了一個openjdk後,再配置完maven後發現,不能使用mvn -v命令,提示JAVA_HOME should point to a JDK not a JRE錯誤資訊。以下是錯誤截圖和解決方案。在網

Android異常之Retrofit API: "Type 'java.util.Observable' does not have type parameter”的解決方案

問題還原: 我想用retrofit+rxjava做網路請求,偏偏剛寫被觀察這時報錯:Type 'java.util.Observable' does not have type parameters 死活不知道在哪。 解決方式: 弄了好久,咋還沒解決呢。 然後看

grails問題Cannot load JDBC driver class 'net.sourceforge.jtds.jdbc.Driver'解決方案

| Error 2016-10-19 16:02:53,562 [localhost-startStop-1] ERROR context.GrailsContextLoader  - Error initializing the application: Error creating bean with n

xhprof查看性能測試圖一直:failed to execute cmd: " dot -Tpng"多種因素解決方案

not 方案 報錯 execute 下載 畫圖 graphviz png 性能測試 xhprof查看性能測試圖一直報錯:failed to execute cmd: ” dot -Tpng”多種因素解決方案最近在新環境進行php代碼性能測試,用了xh