Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-19 02:41:27

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Help with virtual hosts under Mamp 1.71 - upgrade and move to Leopard

Local Development issues.

Hello all. I just recently switched to Leopard and wanted to transfer my older version of MAMP to my no Leopard install. Well, that didn’t work. So I am attempting to throw in a new install of MAMP 1.7.1 and transfer the proper folders and edit the right files, hosts, httpd.cong, etc to get virtual hosts running as they were before.

In a nutshell:

1- New installation of MAMP 1.7.1 on mac running Leopard
2- Transfer my database folder from old MAMP directory to new MAMP directory
3- Transfer my project folders within the MAMP directory (virtual hosts)
3- Edit the hosts file, httpd.conf,
4- Set the right ports if necessary in MAMP

Is there something you must do differently for Leopard.

Any help appreciated

Last edited by mattmikulla (2008-03-19 02:42:59)


Art Rogue – Fine Art Photography

Offline

#2 2008-03-19 02:59:35

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Help with virtual hosts under Mamp 1.71 - upgrade and move to Leopard

I don’t know about MAMP, but at least with Apache 2 on Leopard, I’m using the following in /etc/apache2/extra/httpd-vhosts.conf:

NameVirtualHost *
<VirtualHost *>
	# Set http://localhost = http://localhost/~jm/
	DocumentRoot /Users/jm/Sites/
	ServerName localhost
</VirtualHost>

<VirtualHost *>
	DocumentRoot /Users/jm/Sites/projects/txp/site/
	ServerName txp.dev
</VirtualHost>

If you did want to go the homegrown install-route, which is faster, try the following:

  1. Install this PHP pkg.
  2. Install MySQL for 10.5.
  3. Enable Web Sharing in System Preferences. Take note of your “short name.”
  4. Uncomment the last line in /etc/apache2/httpd.conf: Include /private/etc/apache2/other/*.conf.
  5. Add the following to /etc/apache2/users/your_short_name.conf:
<Directory "/Users/your-short-name/Sites/">
	Options Indexes FollowSymLinks
	AllowOverride All
	Allow from All
</Directory>

Once everything is saved, open Terminal and type sudo apachectl graceful.

Last edited by jm (2008-03-19 03:00:16)

Offline

#3 2008-03-19 03:30:20

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Help with virtual hosts under Mamp 1.71 - upgrade and move to Leopard

Thanks. I’m gonna stick with MAMP which already had php and mysql. It’s just way easier for me.


Art Rogue – Fine Art Photography

Offline

#4 2008-03-19 12:15:54

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Help with virtual hosts under Mamp 1.71 - upgrade and move to Leopard

Here’s their recommended procedure on how to upgrade MAMP. Most of it should apply to migrating, too.

Offline

#5 2008-03-19 13:03:48

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Help with virtual hosts under Mamp 1.71 - upgrade and move to Leopard

I wonder if anything has changed as far as configuring the virtual hosts? I have done all of the above.


Art Rogue – Fine Art Photography

Offline

Board footer

Powered by FluxBB