Linux下配置APACHE支援PHP環境

2022-07-03 12:15:10 字數 773 閱讀 3422

編輯 /usr/local/apache2/conf/httpd.conf 檔案時要注意:         

找到:

在後面新增:

找到:

<

ifmodule

dir_module

> directoryindex index.html

ifmodule

>

新增:

<

ifmodule

dir_module

> directoryindex index.html index.php

ifmodule

>

找到: #servername www.example.com:80

修改為: servername 127.0.0.1:80或者servername localhost:80 記得要去掉前面的「#」

修改預設的web站點目錄

找到:documentroot "/usr/local/apache2/htdocs"

修改為:documentroot "/home/www/website" --該目錄為自己建立的目錄

找到:<

directory

"/usr/local/apache2/htdocs"

>

修改為:

<

directory

"/home/www/website"

>

Linux下apache配置https方法教程

linux下apache怎麼配置https訪問,linux下apache配置https方法教程,apache配置https方法步驟介紹。1.安裝openssl 要使apache支援ssl,需要首先安裝openssl支援。tar zxf openssl 1.0.1h.tar.gz 解壓安裝包 cd o...

Linux 下安裝配置Apache

實習過程中需要手動配置apache伺服器,並且需要手動配置apache文件,在摸索了一天後,終於解決了apache的安裝與配置,寫下來分享給大家。作業系統 red hat enterprise linux 5.5 一 安裝apache 方法一 手動安裝httpd 2.2.16.tar.gz包 3.在...

Linux下安裝 配置 啟動Apache

平台 vmware上虛擬的centos4.7 宿主機 windows 安裝apache前準備 1 檢查該環境中是否已經存在httpd服務的配置檔案,預設儲存路徑 etc httpd httpd.conf 這是centos預裝的apache的乙個ent版本,一般我們安裝源 版的apache 如果已經存...