wampServer(windows、apache、mysql、php)

來源:互聯網
上載者:User

標籤:amp   訪問   裝置   conf   manage   ...   driver   roo   rtu   

wampServer(windows/apche/mysql/php)Integration Environment

線上狀態:地區網內可以訪問

離線狀態:本地裝置可以訪問

自擬定網站根目錄:

Apache -- httpd.conf -- 搜尋 #DocumentRoot   #<Directory

注: httpd.conf 指向‘D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf‘

修改wamp預設檔案路徑

wamp -- wampmanager.ini -- 搜尋 menu.left -- www目錄 -- 修改

-- wampmanager.tpl -- 搜尋 menu.left -- ${w_wwwDirectory} -- 修改

多網站配置:

1.尋找擴充檔案

wamp -- bin -- apache -- apache2.4.9 -- conf -- extra -- httpd-vhosts.conf -- 複製 <VirtualHost *:80>......</VirtualHost>

ServerAdmin 設定管理員郵箱地址

DocumentRoot 網址項目根路徑

ServerName 主機名稱/網域名稱

ErrorLog 錯誤記錄檔

CustomLog 日常日誌

-- 修改配置

2.配置apache

Apache -- httpd.conf -- 搜尋 httpd-vhost 找到 #Include conf/extra/httpd-vhosts.conf -- 去掉前面的‘#‘,即去掉注釋

3.修改允許其他地址訪問

Apache -- httpd.conf -- 找到之前定義的網址根目錄 -- 將‘Deny from all‘(阻止外部存取) 改為 ‘Allow from all‘ ,在‘Allow from 127.0.0.1‘前加‘#‘

4.修改電腦配置

C -- Windows -- System32 -- drivers -- etc -- hosts -- 添加網站

自擬定連接埠號碼:

Apache -- httpd.conf -- 搜尋80,在‘Listen 12.34.56.78:80‘後添加 ‘Listen 8080‘,將‘#ServerName localhost:80‘改為‘#ServerName localhost:8080‘

wampServer(windows、apache、mysql、php)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.