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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby surehand » 14. July 2011 18:54

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!
surehand
 
Posts: 4
Joined: 14. July 2011 18:23

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

Postby JonB » 15. July 2011 00:01

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

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

Postby surehand » 18. July 2011 12:25

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?
surehand
 
Posts: 4
Joined: 14. July 2011 18:23

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

Postby Altrea » 18. July 2011 13:36

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 126 guests