# 通用平台的搭建
* 从git上clone代码到本地

* 配置host文件
~~~
# 通用平台配置
127.0.0.1 xk.hnlat.com f.xk.hnlat.com i.xk.hnlat.com
127.0.0.1 wdkj.xk.hnlat.com wd.wdkj.xk.hnlat.com
~~~
* 配置php站点,即修改apach的vhost文件或用phpstudy添加站点
~~~
<VirtualHost _default_:80>
DocumentRoot "E:\phpStudy\PHPTutorial\WWW"
<Directory "E:\phpStudy\PHPTutorial\WWW">
Options -Indexes -FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "F:\projects\journal-web"
ServerName www.journal.cc
ServerAlias
<Directory "F:\projects\journal-web">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "F:\projects\newprojects\crs-web"
ServerName crs.hnlat.tpl
ServerAlias
<Directory "F:\projects\newprojects\crs-web">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "E:\www\library\de"
ServerName xk.hnlat.com
ServerAlias *.hnlat.com
<Directory "E:\www\library\dev">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "E:\www\library\dev\templates"
ServerName xk.hnlat.com
ServerAlias *.hnlat.com
<Directory "E:\www\library\dev\templates">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
~~~
* 导入数据库,数据库名libary,账号root,密码123456
* 复制cache文件夹和uploadfie文件夹到git的项目中,随后即可访问