Page 1 of 1

Change DocumentRoot dir and still access phpmyadmin

PostPosted: 07. March 2014 11:06
by megaforce1020
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.

Re: Change DocumentRoot dir and still access phpmyadmin

PostPosted: 07. March 2014 13:59
by Nobbie
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!

Re: Change DocumentRoot dir and still access phpmyadmin

PostPosted: 07. March 2014 19:56
by megaforce1020
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?

Re: Change DocumentRoot dir and still access phpmyadmin

PostPosted: 07. March 2014 20:18
by Nobbie
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?

Re: Change DocumentRoot dir and still access phpmyadmin

PostPosted: 10. March 2014 23:34
by megaforce1020
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!