php静态文件配置

WBOY
WBOYasal
2016-08-08 09:20:181046semak imbas

  1. Apache配置httpd.conf
<code><span><span>DocumentRoot</span></span><span>"C:/xampp/htdocs"</span><span><directory></directory></span><span><span>Options</span></span> Indexes FollowSymLinks Includes ExecCGI
    <span>AllowOverride</span><span>All</span><span>Require</span><span>all</span> granted
<span></span><span>#app虚拟网站目录配置开始</span><span><virtualhost></virtualhost></span><span><span>DocumentRoot</span></span> D:\git\yonglibao\app
<span><span>ServerName</span></span> app.com 
<span></span><span><directory></directory></span><span><span>Options</span></span> Indexes FollowSymLinks Includes ExecCGI
    <span>AllowOverride</span><span>All</span><span>Require</span><span>all</span> granted    
<span></span><span>#app虚拟网站目录配置结束</span></code>
  1. 修改C:\Windows\System32\drivers\etc目录下的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:\xampp\php\ext目录下
    并修改C:\xampp\php下的php.ini文件
    找到extension关键字并添加以下两行:
<code><span>extension=<span>php_igbinary.dll</span></span><span>extension=<span>php_redis.dll</span></span></code>
  1. 新建数据库并导入sql文件
    修改数据库配置文件
    D:\workplace\app\Application\Common\Conf

版权声明:本文为博主原创文章,未经博主允许不得转载。

以上就介绍了php静态文件配置,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn