首页  >  文章  >  后端开发  >  php静态文件配置

php静态文件配置

WBOY
WBOY原创
2016-08-08 09:20:181021浏览

  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教程有兴趣的朋友有所帮助。

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn