美文网首页
phpstrom项目初始化

phpstrom项目初始化

作者: hello大象 | 来源:发表于2017-10-24 23:12 被阅读0次

本地项目分享到github


具体流程:
1搭建thinkphp框架


2、apache创建虚拟主机

第一步vhosts-conf增加

<VirtualHost _default_:80>
DocumentRoot "D:\phpStudy\WWW"
  <Directory "D:\phpStudy\WWW">
    Options -Indexes +FollowSymLinks +ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
    Require all granted
  </Directory>
</VirtualHost>


<VirtualHost *:80>
    DocumentRoot "D:\phpStudy\WWW"
    ServerName www.phpStudy.net
    ServerAlias phpStudy.net
  <Directory "D:\phpStudy\WWW">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "D:\WWW\ThinkPHP"
    ServerName thinkphp
    ServerAlias 
  <Directory "D:\WWW\ThinkPHP">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "D:\phpStudy\WWW\0825"
    ServerName www.0825.com
    ServerAlias 
  <Directory "D:\phpStudy\WWW\0825">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "D:\phpStudy\WWW\shop"
    ServerName www.0901.com
    ServerAlias 
  <Directory "D:\phpStudy\WWW\shop">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "D:\phpStudy\WWW\shop1024\shop"
    ServerName www.shop1024.com
    ServerAlias 
  <Directory "D:\phpStudy\WWW\shop1024\shop">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  </Directory>
</VirtualHost>

第二步添加hostss文件

第二步添加hostss文件 OK

相关文章

网友评论

      本文标题:phpstrom项目初始化

      本文链接:https://www.haomeiwen.com/subject/mfrfpxtx.html