Page 1 of 1

What do do with referrals above root in local copy site?

PostPosted: 14. July 2011 18:54
by surehand
I'm new in using XAMPP and I want to make a local and fully functional copy of our existing website with it, for development and testing purposes.

I already made a virtual host, which refers to our domain name on our local computer (I mean when you type the domain name in the browser you are referred to the local site copy)

Now my question is as follows:
In the copy of the website files there are referrals like
/www/d/o/m/domainname/public_html/ (this is to the root where also index.php is located)
I think these can be simply replaced by / since that is the root for the virtual host on our local computer. Or should I use the complete file path on this computer to the root instead?
If that is true then I wouldnt have to change a thing when I place the website files at C:/www/d/o/m/domainname/ on our local computer

If this not correct, what should I do with referrals like:
/www/d/o/m/domainname/app/ which is one level above the root on the original server (where the site is hosted in reality)
What to do with those? I'm afraid that if I use /app locally it woon't be recognized since app is one level above the root.
Any help would be very appreciated!

Re: What do do with referrals above root in local copy site?

PostPosted: 15. July 2011 00:01
by JonB
the 'right' answer is to make an Alias for public_html (at least in my opinion.)

http://httpd.apache.org/docs/current/mod/mod_alias.html

Good Luck
8)

Re: What do do with referrals above root in local copy site?

PostPosted: 18. July 2011 12:25
by surehand
Found the answer myself, I placed all the webfiles of the remote site in
C:/www/d/o/m/domainname/ on my local computer, and made a virtual host in XAMPP referring to those files
Now, after changing passwords for databases etc. everything works.
However there remains one problem: the phpbb3 forum is not working correctly, you can read all messages but can't login.
Any suggestions to solve this?

Re: What do do with referrals above root in local copy site?

PostPosted: 18. July 2011 13:36
by Altrea
surehand wrote:However there remains one problem: the phpbb3 forum is not working correctly, you can read all messages but can't login.
Any suggestions to solve this?


Maybe you should ask that question in the phpBB Support Forum because it is beyond the responsibility of this XAMPP Board here.