Change DocumentRoot dir and still access phpmyadmin

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

Change DocumentRoot dir and still access phpmyadmin

Postby megaforce1020 » 07. March 2014 11:06

Hi so I would like to change the DocumentRoot in httpd.conf from the xampp/htdocs to a SkyDrive folder so I can access .php files via SkyDrive plain text editor and still view the changes instead of having to copy the files back and forth between my Skydrive Folder and the Xampp/htdocs folder. I figured out how to get it to change so that when I go to localhost:"Port #" my skydrive folder shows up, but the problem that I run into is now I have no way of access the xampp page with all the servies such as phpmyadmin. Can anyone help me solve this problem? I think it has something to do with the Alias part in httpd-xampp.conf, but I am really new to all this stuff and need a little hand holding.
megaforce1020
 
Posts: 3
Joined: 07. March 2014 10:58
Operating System: Windows 8.1

Re: Change DocumentRoot dir and still access phpmyadmin

Postby Nobbie » 07. March 2014 13:59

megaforce1020 wrote:Hi so I would like to change the DocumentRoot in httpd.conf from the xampp/htdocs to a SkyDrive folder


Simply do this!

(Instead you tell something about changed Ports etc. - thats not what you tell above). Change the DocumentRoot in httpd.conf if you want to change the DocumentRoot in httpd.conf!
Nobbie
 
Posts: 8780
Joined: 09. March 2008 13:04

Re: Change DocumentRoot dir and still access phpmyadmin

Postby megaforce1020 » 07. March 2014 19:56

Right and I was able to change it so that I could redirect it from the xampp/htdocs folder to my skydrive folder. The problem that I run into is that when I do the redirect I am then unable to access phpmyadmin or the xampp homepage where I can click on phpmyadmin. How do I get back to that page or get access to phpmyadmin?
megaforce1020
 
Posts: 3
Joined: 07. March 2014 10:58
Operating System: Windows 8.1

Re: Change DocumentRoot dir and still access phpmyadmin

Postby Nobbie » 07. March 2014 20:18

megaforce1020 wrote:The problem that I run into is that when I do the redirect I am then unable to access phpmyadmin


Surely? I cant believe this, because phpmyadmin is redirected in any way due to an ALIAS (as you already found out in your first post). If you did not change more than necessary, phpmyadmin should be still available via http://localhost/phpmyadmin

What happens, if you click the above link for phpmyadmin?
Nobbie
 
Posts: 8780
Joined: 09. March 2008 13:04

Re: Change DocumentRoot dir and still access phpmyadmin

Postby megaforce1020 » 10. March 2014 23:34

You're right I must have changed something that I wasn't suppose to. I uninstalled and reinstalled XAMPP and just changed the DocumentRoot folder location. Now it works great! Thanks!
megaforce1020
 
Posts: 3
Joined: 07. March 2014 10:58
Operating System: Windows 8.1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests