Softaculous


Topic : How do I change the location of htdocs?


Posted By: harkonenn on January 17, 2012, 3:26 pm
I'm testing Ampps to see if it fits better in my workflow. Currently, I'm using Xampp. I would like to know if I can redirect the Ampps htdocs location from "C:\Ampps\www" to "C:\xampp\htdocs" to test local sites that I have already setup without having to duplicate them.

Thanks for the help!

Posted By: tidus on January 18, 2012, 9:19 am | Post: 1
Quote From : harkonenn January 17, 2012, 3:26 pm
I'm testing Ampps to see if it fits better in my workflow. Currently, I'm using Xampp. I would like to know if I can redirect the Ampps htdocs location from "C:\Ampps\www" to "C:\xampp\htdocs" to test local sites that I have already setup without having to duplicate them.

Thanks for the help!


Hi,

If the script installed on XAMPP is from 259 scripts provided by AMPPS(Check the list of apps provided by AMPPS in http://www.ampps.com/apps), then you can use "Import Feature" of Enduser Panel,

i.e Go to Scripts overview page, at top-right you should be able to see Import. Fill the details and the script from XAMPP will be imported in AMPPS.
Yes, we are copying the directory with the database in AMPPS.


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: do9man on February 28, 2012, 1:47 pm | Post: 2
I think harkonenn meant something else and I have a similar problem.

Where can I change the default location for websites? I don't want them to be in the ampps folder but on a separate disk (e.g. d:/www). I changed the apache config but I can't change the default domain in ampps Admin. When adding a domain it seams to have to be in the ampps folder. Where is this location variable stored and can it be changed?

Posted By: tidus on February 28, 2012, 2:27 pm | Post: 3
Go to AMPPS Control Center -> Apache Tab -> Configuration. Find the line
Code
DocumentRoot "{$path}/www"
and change it to
Code
DocumentRoot "path/to/xampp/htdocs"


Also find the line
Code
<Directory "{$path}/www">
and change it to
Code
<Directory "path/to/xampp/htdocs">


By doing this your xampp DocumentRoot should work in AMPPS.

OR

You can add Alias in Alias Manager.

Eg,
Alias Name : xampp
Path : C:\xampp\htdocs

Then you can visit http://localhost/xampp to access xampp's htdocs & http://localhost/xampp/xampp to access xampp panel.
Note: You will have to change its index.php in htdocs to access http://localhost/xampp as xampp panel

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: do9man on February 28, 2012, 4:57 pm | Post: 4
Thanks for your instructions but as I wrote:
Quote From : do9man February 28, 2012, 1:47 pm

I changed the apache config...

Maybe it will help other users.

But my problem is this:
Quote From : do9man February 28, 2012, 1:47 pm

... but I can't change the default domain in ampps Admin. When adding a domain it seams to have to be in the ampps folder. Where is this location variable stored and can it be changed?


Alias is not a good solution, it should be localhost root. And scripts install into the domain, not alias.

Posted By: tidus on February 28, 2012, 6:47 pm | Post: 5
Okay, Understood the problem.

Currently you can't change it.

But we will surely discuss about this and let you know.

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: do9man on February 29, 2012, 1:59 pm | Post: 6
OK, thanks. Hopefully this will be done soon to improve your great product.

Posted By: harkonenn on February 29, 2012, 2:31 pm | Post: 7
Honestly, this is the one thing that's keeping me from using AMPPS.

Posted By: rjsorto on April 22, 2012, 12:38 am | Post: 8
If you haven't found the file to change the documentroot it's ..\Ampps\apache\conf\extra\httpd-vhosts.conf.

Hopefully this helps.

Posted By: rjsorto on April 22, 2012, 12:45 am | Post: 9
The only problem now is how to tell Ampps to create the ftp users folder in the new document root directory, if someone has found a way please share it

Posted By: tidus on April 22, 2012, 5:20 am | Post: 10
Hi,

Quote From : rjsorto April 22, 2012, 12:38 am
If you haven't found the file to change the documentroot it's ..\Ampps\apache\conf\extra\httpd-vhosts.conf.

Hopefully this helps.


Please don't change anything manually in httpd-vhosts.conf as AMPPS rebuilds it frequently, so all the changes you have made will be lost.

I would recommend to create your own .conf file and enable it in Apache Configuration file of AMPPS. (You can copy the contents from httpd-vhosts.conf to your-file.conf)

Quote
The only problem now is how to tell Ampps to create the ftp users folder in the new document root directory, if someone has found a way please share it


AMPPS Enduser Panel has a feature to add FTP Users for directories in AMPPS folder.

Are you on Mac or Windows ?

If you are on Windows, you can also use "FileZilla Server Interface.exe" to manage ftp users and other stuff.

In Mac, we are providing Pure-FTPd.

Refer their respective website for more details.

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: rjsorto on April 22, 2012, 9:44 pm | Post: 11
I didn't notice the automatic changes in vhosts because i didn't added any domains after the rewrite.

I did what you recommended, create another .conf file and just copy the updates from vhosts.

In filezilla was so easy, it never occurred to me to use the server interface.

Thx for your help tidus.

Posted By: tidus on April 23, 2012, 4:23 am | Post: 12
Hi,

Please let us know if you any information.

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: hassanbhatti on December 13, 2014, 12:13 pm | Post: 13
hi i tried what you said on mac but there is no differnce its still accessing root folder from applications please any help would be appreciated thanks

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.