手動設定apache、php

來源:互聯網
上載者:User

標籤:module   dir   server   模組   err   apache2   查看   配置   php.ini   

A.apache設定檔: httpd.conf

1.ServerRoot  "D:/workspace/Apache"  Apache的安裝目錄

2.DocumentRoot "D:/www" 網站的根目錄

3.LoadModule php5_module "D:/workspace/php/php5apache2_4.dll 添加PHP模組

4.PHPIniDir "D:/workspace/php" 配置php.in路徑

5.Listen 80 監聽80連接埠,如果apache啟動失敗,請查看80連接埠是否佔用,如果佔用可修改為8080

 

B.php設定檔:php.ini-production重新命名為php.ini

1.extension = php_mysql.dll 載入擴充模組
2.extension_dir = "D:/workspace/php/ext" 擴充所在目錄

手動設定apache、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.