Centos5.2配置LAMP與Centos5.3配置LAMP(63)
2019-10-11 14:12Centos教程網 Centos
# vi config.default.php 找到這幾行進行修改: $cfg[Servers][$i][auth_type] = http; // Authentication method (valid choices: config, http, HTTP, signon or cookie) $cfg[Servers][$i][user] = roo
# vi config.default.php
找到這幾行進行修改:
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (valid choices: config, http, HTTP, signon or cookie)
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'PASSWORD'; // MySQL password (only needed
五、服務器安全配置
18、編譯安裝mod_security
mod_security是一個集入侵檢測和防御引擎功能的開源web應用安全程序(或web應用程序防火墻)。
它以Apache Web服務器的模塊方式運行, 目標是增強web應用程序的安全性, 防止web應用程序受到已知或未知的攻擊。
# cd /usr/local/src
# wget http://www.modsecurity.org/download/...e_2.1.3.tar.gz
# tar -zxvf modsecurity-apache_2.1.3.tar.gz
# cd modsecurity-apache_2.1.3/apache2
# cat /usr/local/apache2/conf/httpd.conf | grep "ServerRoot" | grep -v "#"
ServerRoot "/usr/local/apache2"
#
#vi Makefile
top_dir = /usr/local/apache2
#
# make
延伸 · 閱讀
- 2022-03-10簡單談談centos7中配置php
- 2022-03-10centos7下安裝java及環境變量配置技巧
- 2022-03-10CentOs下安裝gcc/g++/gdb的方法
- 2022-03-10在Ubunt16.04上安裝LAMP的方法
- 2022-03-09CentOS 7中 Minimal 安裝JDK 1.8的教程
- 2022-03-09CentOS環境下安裝PHPUnit的方法分析
- Centos
centos 安裝與操作方法
這篇文章主要介紹了centos 安裝與操作方法,需要的朋友可以參考下...
- Centos
CentOS 6.6實現永久修改DNS地址的方法
這篇文章主要介紹了CentOS 6.6實現永久修改DNS地址的方法,涉及針對CentOS配置文件的相關設置技巧,具有一定參考借鑒價值,需要的朋友可以參考下 ...
- Centos
CentOS7設置日期和時間方法以及基本概念介紹
這篇文章主要介紹了CentOS7設置日期和時間方法以及基本概念介紹,本文講解使用CentOS7中的新命令timedatectl設置日期時間方法,需要的朋友可以參考下 ...
- Centos
CentOS下Uptime命令詳解
在Linux下,我們可以使用uptime命令,而且此命令不必使用root權限。uptime命令在系統中已經默認安裝了。今天小編為大家帶來的是CentOS下Uptime命令詳解;希望...
- Centos
CentOS6.5下Redis安裝與配置詳細步驟
本篇文章主要介紹了CentOS6.5下Redis安裝與配置詳細步驟,詳細介紹redis單機單實例安裝與配置,服務及開機自啟動。有興趣的可以了解一下。...
- Centos
Centos7運用/dev/shm進行網站優化
這篇文章主要介紹了LINUX中Centos7運用/dev/shm進行網站優化相關知識點,對此有興趣的朋友參考學習下。...
- Centos
Centos 7開啟網卡自動獲取IP的詳細方法
本篇文章主要介紹了Centos 7開啟網卡自動獲取IP的詳細方法,小編覺得挺不錯的,現在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧...
- Centos
centos不小心刪除/root目錄該如何解決?
一些朋友最近在問小編centos不小心刪除/root目錄該如何解決?今天小編就為大家分享centos不小心刪除/root目錄解決辦法;希望對大家會有幫助,有需要的朋友...