Home  >  Article  >  Backend Development  >  php static file configuration

php static file configuration

WBOY
WBOYOriginal
2016-08-08 09:20:181021browse

  1. Apache configuration 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. Modify the hosts file in the C:WindowsSystem32driverstc directory
    Add:
<code><span>127.0</span><span>.0</span><span>.1</span> app<span>.com</span></code>
  1. Add extension files php_igbinary.dll and php_redis.dll to the C:xamppphpext directory
    And modify the php.ini file under C:xamppphp
    Find the extension keyword and add the following two lines:
<code><span>extension=<span>php_igbinary.dll</span></span><span>extension=<span>php_redis.dll</span></span></code>
  1. Create a new database and import the sql file
    Modify database configuration file
    D:workplaceappApplicationCommonConf

Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces the PHP static file configuration, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn