首頁 >後端開發 >php教程 >php靜態檔案配置

php靜態檔案配置

WBOY
WBOY原創
2016-08-08 09:20:181051瀏覽

  1. Apache設定httpd.conf
<code><span><span>DocumentRoot</span></span><span>"C:/xampp/htdocs"</span><span><Directory "C:/xampp/htdocs"></span><span><span>Options</span></span> Indexes FollowSymLinks Includes ExecCGI
    <span>AllowOverride</span><span>All</span><span>Require</span><span>all</span> granted
<span></Directory></span><span>#app虚拟网站目录配置开始</span><span><VirtualHost *:80></span><span><span>DocumentRoot</span></span> D:\git\yonglibao\app
<span><span>ServerName</span></span> app.com 
<span></VirtualHost></span><span><Directory "D:\git\yonglibao\app"></span><span><span>Options</span></span> Indexes FollowSymLinks Includes ExecCGI
    <span>AllowOverride</span><span>All</span><span>Require</span><span>all</span> granted    
<span></Directory></span><span>#app虚拟网站目录配置结束</span></code>
  1. 修改C:WindowsSystem32driversetc目錄下的hosts檔案
    新增:
<code><span>127.0</span><span>.0</span><span>.1</span> app<span>.com</span></code>
  1. 新增擴充檔php_igbinary.dll和php_redis.dll到C:xamppphpext目錄下
    並修改C:xamppphp下的php.ini檔
    找到extension關鍵字並新增以下兩行:
<code><span>extension=<span>php_igbinary.dll</span></span><span>extension=<span>php_redis.dll</span></span></code>
  1. 新資料庫並匯入sql檔
    修改資料庫設定檔
    D:workplaceappApplicationCommonConf

版權聲明:本文為部落客原創文章,未經部落客允許不得轉載。

以上就介紹了php靜態檔案配置,包含了方面的內容,希望對PHP教學有興趣的朋友有幫助。

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn