Problems with displaying a php-site locally with XAMPP-package. Site works fine on remote server

冷暖自知 提交于 2019-12-02 08:40:46

The solution ...was to edit the DocumentRoot setting in the xampp/apache/conf/httpd.conf file.

The thing was that I had placed the folder where the dynamic contents of my test site was as a subfolder to XAMPPs default webroot folder htdocs: htdocs/MySampleSite

When I edited the DocumentRoot setting in the xampp/apache/conf/httpd.conf from the default folder DocumentRoot "C:/xampp/htdocs" to the actual folder DocumentRoot "C:/xampp/htdocs/MySampleSite" all the problems resolved themselves.

Do remember that you need to change this on two locations in httpd.conf! Apart from the above mentioned, you also have to change the default to

Well, in hindsight, I guess it's rather trivial, but it took some time in finding the right place, so I hope this might help others.

Again, thanx for a great site! Vaquera

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!