本文目錄一覽:
- 1、linux 安裝php,服務啟動異常
- 2、我在linux下安裝php5.3.5時編譯時出錯, 怎麼解決?
- 3、linux安裝PHP出錯
- 4、linux 下安裝完php出現錯誤
- 5、求助,Linux系統安裝php,報錯!
linux 安裝php,服務啟動異常
原因是Linux有一個SELinux保護模式引起的。
1.關閉SELINUX的方法:
vi /etc linux/config 將SELINUX=enforcing 改成SELINUX=disabled 需要重啟
2.不關閉SELINUX的方法:# setenforce 0# chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t /usr/local/apache/modules/libphp5.so# service httpd restart
# setenforce 1
我在linux下安裝php5.3.5時編譯時出錯, 怎麼解決?
1、在打開的ie瀏覽器窗口右上方點擊齒輪圖標,選擇「Internet選項」,如下圖所示:
2、在打開的Internet選項窗口中,切換到安全欄,在安全選卡中點擊「自定義級別」,如下圖所示:
3、在「安全設置-Internet 區域」界面找到「Java 小程序腳本」、「活動腳本」,並將這兩個選項都選擇為「禁用」,然後點擊確定,如下圖所示:
linux安裝PHP出錯
你可以把以前的都刪了安照我的來安裝:
安裝前裝備環境:
yum -y install gcc automake autoconf libtool make
yum -y install gcc gcc-c++ glibc
yum -y install libmcrypt-devel mhash-devel libxslt-devel \
libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel \
zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel \
ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel \
krb5 krb5-devel libidn libidn-devel openssl openssl-devel
下面下載php編譯安裝
wget
tar zvxf php-5.4.7.tar.gz
cd php-5.4.7
./configure –prefix=/usr/local/php –enable-fpm –with-mcrypt \
–enable-mbstring –disable-pdo –with-curl –disable-debug –disable-rpath \
–enable-inline-optimization –with-bz2 –with-zlib –enable-sockets \
–enable-sysvsem –enable-sysvshm –enable-pcntl –enable-mbregex \
–with-mhash –enable-zip –with-pcre-regex –with-mysql –with-mysqli \
–with-gd –with-jpeg-dir
make all install
linux 下安裝完php出現錯誤
這個不是報錯。查看版本命令你少了一個空格,要在php後面加個空格
求助,Linux系統安裝php,報錯!
請用 ./configure 還有就是你那一堆換行連接符 有問題 ,./configure 是autoconf 生成的一個對應不同的環境進行配置的一個shell 文件,如果你還是報錯,那麼檢查你後面with的那一堆php擴展的依賴,一般你with 那麼多是安裝不過的 。
原創文章,作者:小藍,如若轉載,請註明出處:https://www.506064.com/zh-tw/n/154354.html