Hi, I'm new to this forum, quite unexperienced with XAMPP and not really technically strong.
I've installed XAMPP portable on a key and it works like a bliss. I used it to test and develop surveys with LimeSurvey (much faster locally).
Now I want to use my local XAMPP server as my test/dev server to integrate my work with LimeSurvey to my website.
I run two sites on different IP addresses:
1- www.mysite.com
and
2- secure.mysite.com, an SSL site running on a separate IP for members area and payment processing
On my machine I have local versions of both sites and I would like to be able to access them with the local XAMPP version in a way that I can use XAMPP to test my developments before taking them live.
So I copied my two local versions to my USB XAMPP portable, in F:\xampp\htdocs as follows:
F:\xampp\htdocs\mysite.com
F:\xampp\htdocs\mysite.com.secure
and tried to call some pages:
http://localhost/mysite.com
or
https://localhost/mysite.com.secure/hello_world.php
I get 500 server errors.
Then I removed the .htaccess (this is not ideal because I use modRewrite for some URLs) When I do so, all my PHP inclutes fail because the paths are wrong:
Apache is looking for my include here:
F:/xampp/htdocs/inc/footer.inc.php
instead of:
F:/xampp/htdocs/www.mysite.com/inc/footer.inc.php
So I think I'm missing some Apache config details. I looked into the Apache doc, and I am confused because I'm only trying to setup a local test server, not a live www server.
the httpd.conf file is huge and complex for my relatively low level of technical knowledge, let alone the Apache doc which I don't really understand.
Can anyone tell what config settings I should add so to be able to:
- keep my local copies where they are (F:\Documents) instead of copying them to F:\xampp\htdocs?
- keep my .htaccess the way it is working on my live site (or close enough)
- browse and test locally?
Also can anyone suggest what those local URLs should look like? for example:
http://test.mysite.com
https://securetest.mysite.com
Thanks in advance for your suggestions!
G64