ubuntu下配置php環境出現問題集

1.編譯apache後出現 No apache MPM package installed問題解決

在ubuntu下安裝apache是遇到No apache MPM package installed

原因是沒有安裝apache2-mpm-worker包,所以只需運行命令

apt-get install apache2-mpm-worker即可解決問題,然後啓動apache,這是服務就正常啓動了

 

2 .編譯php時出現configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore.

解決辦法運行命令:apt-get install libmysqlclient15-dev來安裝這個確實的文件,然後重新編譯php

./configure --prefix=你的php目錄 --with-apxs2=/usr/local/apache/bin/apxs --with-mysql

這時就編譯通過了

發佈了20 篇原創文章 · 獲贊 6 · 訪問量 12萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章