腾讯云部署php项目 windows服务器

初次接触服务器部署,鼓捣了半天,总结一下,修改的地方不是很多,php环境用的是wamp 3.2。安装wamp很烦,报各种错误,需要各种包,不过很简单,傻瓜式安装。可以直接下载 vc_redist.x64 2012、vc_redist.x64 2013、vc_redist.x64 2015 安装,然后再安装wamp就能成功了。

    1.wamp配置httpd.conf允许外网访问

            修改两处

    2.域名的相关配置 vhosts.conf

          重定向的配置

              RewriteEngine On

              RewriteRule ^(.*)/$ http://www.abc.com/shop/index.php/login

          根目录的设置 (看项目本身需求改)

              DocumentRoot "${INSTALL_DIR}/www/shop/"                                                                                                                                                                                                                                                                                                                                                                                      

猜你喜欢

转载自blog.csdn.net/fengdou696/article/details/80267267
今日推荐