Centos5.2配置LAMP與Centos5.3配置LAMP(40)
2019-10-11 14:12Centos教程網(wǎng) Centos
# make install # cp php.ini-recommended /etc/php.ini # echo /usr/local/php/lib /etc/ld.so.conf ldconfig 在這里也順便說一下將suhosin安裝成為php的動態(tài)擴展的方法。畢竟網(wǎng)上根本不
# cp php.ini-recommended /etc/php.ini
# echo "/usr/local/php/lib" >> /etc/ld.so.conf && ldconfig
在這里也順便說一下將suhosin安裝成為php的動態(tài)擴展的方法。畢竟網(wǎng)上根本不見它的中文安裝教程。
雖然我個人不推薦這種方式。
wget http://www.hardened-php.net/suhosin/...sin-0.9.20.tgz
tar zxvf suhosin-0.9.20.tgz
cd suhosin-0.9.20
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
會提示編譯的模塊存在的目錄,記住它。
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-zts-20060613/
然后在php.ini中增加一行下列語句。
extension="/usr/local/php/lib/php/extensions/no-debug-zts-20060613/suhosin.so"
10、整合apache 與php
# vi /usr/local/apache2/conf/httpd.conf
在最后一行加上:
AddType application/x-httpd-php .php
查找:(設(shè)置 WEB 默認(rèn)文件)
DirectoryIndex index.html
修改為:
延伸 · 閱讀
- 2022-03-10簡單談?wù)刢entos7中配置php
- 2022-03-10centos7下安裝java及環(huán)境變量配置技巧
- 2022-03-10CentOs下安裝gcc/g++/gdb的方法
- 2022-03-10在Ubunt16.04上安裝LAMP的方法
- 2022-03-09CentOS 7中 Minimal 安裝JDK 1.8的教程
- 2022-03-09CentOS環(huán)境下安裝PHPUnit的方法分析
- Centos
centos 安裝與操作方法
這篇文章主要介紹了centos 安裝與操作方法,需要的朋友可以參考下...
- Centos
CentOS 6.6實現(xiàn)永久修改DNS地址的方法
這篇文章主要介紹了CentOS 6.6實現(xiàn)永久修改DNS地址的方法,涉及針對CentOS配置文件的相關(guān)設(shè)置技巧,具有一定參考借鑒價值,需要的朋友可以參考下 ...
- Centos
CentOS7設(shè)置日期和時間方法以及基本概念介紹
這篇文章主要介紹了CentOS7設(shè)置日期和時間方法以及基本概念介紹,本文講解使用CentOS7中的新命令timedatectl設(shè)置日期時間方法,需要的朋友可以參考下 ...
- Centos
CentOS下Uptime命令詳解
在Linux下,我們可以使用uptime命令,而且此命令不必使用root權(quán)限。uptime命令在系統(tǒng)中已經(jīng)默認(rèn)安裝了。今天小編為大家?guī)淼氖荂entOS下Uptime命令詳解;希望...
- Centos
CentOS6.5下Redis安裝與配置詳細(xì)步驟
本篇文章主要介紹了CentOS6.5下Redis安裝與配置詳細(xì)步驟,詳細(xì)介紹redis單機單實例安裝與配置,服務(wù)及開機自啟動。有興趣的可以了解一下。...
- Centos
Centos7運用/dev/shm進行網(wǎng)站優(yōu)化
這篇文章主要介紹了LINUX中Centos7運用/dev/shm進行網(wǎng)站優(yōu)化相關(guān)知識點,對此有興趣的朋友參考學(xué)習(xí)下。...
- Centos
Centos 7開啟網(wǎng)卡自動獲取IP的詳細(xì)方法
本篇文章主要介紹了Centos 7開啟網(wǎng)卡自動獲取IP的詳細(xì)方法,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧...
- Centos
centos不小心刪除/root目錄該如何解決?
一些朋友最近在問小編centos不小心刪除/root目錄該如何解決?今天小編就為大家分享centos不小心刪除/root目錄解決辦法;希望對大家會有幫助,有需要的朋友...