Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Changing www root path on MAC

1


Threaded Mode | Print  

 Changing www root path on MAC (34 Replies, Read 18360 times)
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
I was using MAMP on MAC and my www root is /www  directly at the root of my hard disk, I don't want to change it
How can I set AMPPS  to have the localhost  on /www ?

thank you
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
I dont find the way to edit my post

I want /www  and not /Applications/AMPPS/www
IP: --   

Changing www root path on MAC
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

Sorry the DocumentRoot is not flexible yet.

But you can create an alias or domain from Enduser Panel to point to that directory.


Edited by tidus : September 3, 2013, 11:29 am

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

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
thank you
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
I have tried but I find it too complicated and un-flexible , I shall keep on using MAMP

thanks anyway
IP: --   

Changing www root path on MAC
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Quote From : erickb September 5, 2013, 8:09 am
I have tried but I find it too complicated and un-flexible , I shall keep on using MAMP

thanks anyway


You can also create a symlink.
Code

ln -s /your/directory /Applications/AMPPS/www





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

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
thanks but I get
Database connection error (2): Could not connect to MySQL.


the migration from MAMP to AMPPS  is too tricky
IP: --   

Changing www root path on MAC
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Quote From : erickb September 5, 2013, 9:41 am
thanks but I get
Database connection error (2): Could not connect to MySQL.


the migration from MAMP to AMPPS  is too tricky


Is the AMPPS mysql server running ?

And Did you get this message in phpmyadmin ?


Edited by tidus : September 5, 2013, 9:43 am

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

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
Quote From : tidus September 5, 2013, 9:43 am


Is the AMPPS mysql server running ?

And Did you get this message in phpmyadmin ?

yes the server is running but of course all my SQL  databases are in /Applications/MAMP/db/mysql 
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
a small migration tools  from  WAMP/MAMP to AMPPS will be useful
IP: --   

Changing www root path on MAC
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

You can copy the databases to /Applications/AMPPS/var

OR

Both the stacks have phpMyAdmin you can use import/export feature to migrate database.


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

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
I have copied all the databases but now all my joomla connexion strings are wrong I guess  because I cannot connect

public $host = 'localhost';
public $user = 'root';
public $password = 'root';
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
the databases are in phpmyadmin
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
I have changed the password mysql  and now I can connect but on Joomla website I get

Table 'abcd.123_session' doesn't exist SQL=INSERT INTO `123_session` (`session_id`, `client_id`, `time`) VALUES ('h0bejgcm6ptqu313bgij59t436', 0, '1378386248')
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
or I get
Error displaying the error page: Application Instantiation Error
IP: --   

Changing www root path on MAC
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

In phpMyAdmin check if abcd.123_session exists i.e 123_session table in database abcd.


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

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
Quote From : tidus September 5, 2013, 1:48 pm
Hi,

In phpMyAdmin check if abcd.123_session exists i.e 123_session table in database abcd.


thats the problem, if I copy the databases into /Applications/AMPPS/var  all the tables are not copied  the table  session doesnt exists

I see no way to use easily AMPPS  with all my work in MAMP , too bad because AMPPS seems really better  and still alive :-)

thanks for your help
IP: --   

Changing www root path on MAC
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Quote From : erickb September 5, 2013, 1:51 pm
Quote From : tidus September 5, 2013, 1:48 pm
Hi,

In phpMyAdmin check if abcd.123_session exists i.e 123_session table in database abcd.


thats the problem, if I copy the databases into /Applications/AMPPS/var  all the tables are not copied  the table  session doesnt exists

I see no way to use easily AMPPS  with all my work in MAMP , too bad because AMPPS seems really better  and still alive :-)

thanks for your help


Sir,

From start steps you can follow :
1. Close all services/servers like Apache, MySQL, etc of AMPPS.
2. Start MAMP Servers.
3. Access MAMP's phpMyAdmin.
4. Select the database you want to export.
5. Look for export option above. You should have a .sql file
6. Close all MAMP servers.
7. Start Apache and MySQL from AMPPS now.
8. Access http://localhost/phpmyadmin (phpMyAdmin).
9. Create a database "same name as it was in MAMP"
10. Look for import option and then select the file which you just exported from MAMP.

This should migrate the single database from MAMP to AMPPS.

Hope it helps.

You can always ask for help here. OR open a ticket by mailing us at support@ampps.com. We will be happy to help you.

Let us know if you need any further help or information.


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

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
thanks but for 200 databases I give up
IP: --   

Changing www root path on MAC
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Quote From : erickb September 5, 2013, 2:02 pm
thanks but for 200 databases I give up


Okay. Then have you tried copying the whole mysql data directory of MAMP to AMPPS data directory?

AMPPS MySQL Data Directory is /Applications/AMPPS/var, I don't have an idea about the MAMP Data Directory. Like you said I am assuming it is /Applications/MAMP/db/mysql, make sure there is one more folder located at /Applications/MAMP/db/mysql/mysql, it has mysql root password, other mysql user, and other details too.

Now if you copy whole folder. MySQL root password will be same as MAMP. So don't forget to update the file /Applications/AMPPS/ampps/data/my.conf, enter the root password in it else you wont be able to login into AMPPS phpMyAdmin.

Please open a ticket by mailing us at support@ampps.com we should be able to help you.


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

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
I have copied all the content now it works but  all my joomla website have errors
I open a ticket

many thanks for your help
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
my joomla website are looking like that --> http://urpix.fr/files/8gf50rnjtnr7dyspmghi.png
IP: --   

Changing www root path on MAC
warpieke
Group: Member
Post Group: Newbie
Posts: 45
Status:
In the ampps sytems for making new domain or subdomain...

the best way is like this...

normally ammps will say ->> ampps/www/test.com

but this is not the best way for your root...

make your new stuff like this --> ampps/test.com

all domains and subdomains will be under the map ammps and not in the www...

this is the best way ,,, or all new stuff will be in the www and all your visitors will see your maps and that is not the way it must be...

try it you will see its alot better  :P


-----------------------
What i dont K'now must be born...
ON internet from 88/89 , working with computers from the year 1982 c64 , comodore , amiga and ect bbs  :xd:
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
thanks warpieke  but I am using MAMPS since many years and I have  > 100 domains on www  and I shall not change it  ? i don't want my domain root to be somewhere else

The main problem is that actually MAMPS seems  living without team and support
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
I don't know what to do ,  not one of my Joomla sites is running  with AMPPS , it cannot read php code, or only a part of the code

Someone of the support proposed to have a look with teamviewer is it possible ?

thank you
IP: --   

Changing www root path on MAC
ketan
Group: Member
Post Group: Working Member
Posts: 241
Status:
Hi,

Please open a support ticket and give your TeamViewer details over there, the support team will solve your problem.
http://www.ampps.com/support

-----------------------
Follow AMPPS on,
Twitter
Facebook
Google+
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
I found the problem I think

short_open_tag    was Off   

now it works

thank you
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
after 2 years I am trying Ampps again

is it possible now to get a custom folder for local websites ?

thank you
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
i have tried to change

ServerRoot "{$path}/www"
with
ServerRoot "/www"

but it doesn't work
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
SOLVED

thanks to the team and  rishikesh !
IP: --   

Changing www root path on MAC
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

This issue can be resolved by following the below steps:

-> First stop the Apache & MySQL services from the AMPPS Control Center

-> Now rename Ampps/www directory to another name (here we are renaming the same to _www)
Code
cd /Applications/AMPPS

Code
mv www _www



-> Now create Symbolic link of your root directory inside Ampps Directory.
Code
ln -s  /path/to/your/websites /Applications/AMPPS/www



-> Start Apache and MySQL services from AMPPS Control Panel

-> Import the MySQL databases from MAMP to AMPPS.

Now you should be able to access your websites from localhost/website_name.

If you still face the issue, please open a support ticket here:
http://softaculous.com/support/

Hope this helps.

Edited by nikhil89 : September 19, 2015, 10:47 am
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
I keep it for another time :-)
Thank you
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
to be sure

ln -s  /path/to/your/websites /Applications/AMPPS/www

in my case :

ln -s  /www /Applications/AMPPS/www

is it correct ?
IP: --   

Changing www root path on MAC
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

Yes Erik. You are right.
IP: --   

Changing www root path on MAC
erickb
Group: Member
Post Group: Working Member
Posts: 102
Status:
thank you
IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 25, 2024, 11:54 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.163