开发者

Development environment for a LAMP-based website - Redirects to Server Default Page

In our current environment, if any changes need to be made to the code, these changes are directly coded and updated to the Live server. GWe would like to set-up a development server where we can test our changes before uploading to the live site.

I have attempted to build a development site locally by installing Apache, PHP & MySQL 开发者_如何学运维and copying all the htdocs to the Apache folder. However, when I try to access localhost/ it redirects me to the server default page. Any ideas on why this may be happening?


Have you setup Apache VirtualHost and configured it for your sites Document Root?

I would look into your production site and see what's configured.

Also note that when you're setting up a dev/prod environment you will need not just PHP/Apache/etc.. install but also any packages/mods/libs that they are using installed as well.

For Example: if you're using Mod-Re-Write with Apache you need to install and enable it

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜