Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 11, 2013, 10:46 AM   #1
fig
macrumors 6502a
 
Join Date: Jun 2012
Location: Houston, TX
MAMP/LAMP/etc...help?

Ok devs, I've been generally setting up my WordPress sites on the server then redeploying them to the ACTUAL server when the site goes live and...yeah, that's just a terrible way to do it.

From my looking around and a discussion or two on here it sounds like installing MAMP on my home machine and developing there is the best way to go, unless there's some better options I don't know about? Any recommendations or advice greatly appreciated, thanks.
__________________
figdigital | @figdigital | dribbble
fig is offline   0 Reply With Quote
Old Mar 12, 2013, 10:45 AM   #2
jared_kipe
macrumors 68030
 
jared_kipe's Avatar
 
Join Date: Dec 2003
Location: Seattle
Send a message via AIM to jared_kipe
What kind of recommendations are you looking for? If you know how to setup a linux server for deploying MySQL/PHP applications, then MAMP is going to be very easy.

General advice. Use GIT to manage your local codebase so that when you want to deploy, all you have to do is push to the actual server.
jared_kipe is offline   0 Reply With Quote
Old Mar 12, 2013, 04:08 PM   #3
fig
Thread Starter
macrumors 6502a
 
Join Date: Jun 2012
Location: Houston, TX
Thanks, and as I don't know the first thing about setting up a server I'm looking for whatever sort of advice I can get.

I'm a designer with some minimal backend skills (a bit of jQuery and php manipulation with WordPress) so anything server related is pretty new to me, I do one-click installs for my typical WordPress sites. From what I've found in some searching MAMP or something similar is my best option for hosting my WordPress site on my box for development, but that pretty much sums up my knowledge on the subject
__________________
figdigital | @figdigital | dribbble
fig is offline   0 Reply With Quote
Old Mar 12, 2013, 05:37 PM   #4
onerob
macrumors newbie
 
Join Date: Mar 2010
You might want to have a look at these products too. I can't vouch for them because I've stuck to using MAMP out of laziness.

http://bitnami.org/stacks
http://www.ampps.com/downloads
onerob is offline   0 Reply With Quote
Old Mar 13, 2013, 12:15 PM   #5
fig
Thread Starter
macrumors 6502a
 
Join Date: Jun 2012
Location: Houston, TX
Sounds like MAMP is at least effective then, good to know. Thanks.
__________________
figdigital | @figdigital | dribbble
fig is offline   0 Reply With Quote
Old Mar 13, 2013, 06:31 PM   #6
onerob
macrumors newbie
 
Join Date: Mar 2010
It does the job and is easy to use but I'm getting annoyed by having to type in my admin password every time I start or stop the servers.
onerob is offline   0 Reply With Quote
Old Mar 13, 2013, 11:56 PM   #7
SrWebDeveloper
macrumors 68000
 
SrWebDeveloper's Avatar
 
Join Date: Dec 2007
Location: Alexandria, VA, USA
 
Quote:
Originally Posted by onerob View Post
It does the job and is easy to use but I'm getting annoyed by having to type in my admin password every time I start or stop the servers.
http://www.46palermo.com/blog/run-ma...word-easy-way/

That's due to lack of Keychain support. Read the blog and also all the comments in that blog, some folks posted better solutions than the original blogger, i.e. Justin Sternberger's rather cool solution.
__________________
Jim Goldbloom
Sr. Web Developer, owner GoldTechPro, LLC
http://www.GoldTechPro.com
SrWebDeveloper is offline   0 Reply With Quote
Old Mar 14, 2013, 01:30 AM   #8
marsmissions
macrumors 6502
 
Join Date: Jan 2010
Location: Washington, US
Quote:
Originally Posted by SrWebDeveloper View Post
http://www.46palermo.com/blog/run-ma...word-easy-way/

That's due to lack of Keychain support. Read the blog and also all the comments in that blog, some folks posted better solutions than the original blogger, i.e. Justin Sternberger's rather cool solution.
Or just don't run it on port 80. 8080 shouldn't require a password and the change won't matter.
__________________
Blog | Twitter
marsmissions is offline   1 Reply With Quote
Old Mar 14, 2013, 06:41 PM   #9
onerob
macrumors newbie
 
Join Date: Mar 2010
I prefer to use port 80, so I've adapted some of the code from the link above and cobbled together this applescript which launches the MAMP app and then starts Apache and MySQL. If the script is run again after MAMP has been loaded, it stops the server and quits the app.

For my use I've exported it from the AppleScript editor as an application.

You must also have used Keychain Access to add an item named MAMP to the login keychain with your admin username and password, as mentioned in the article.

Code:
set theUserName to do shell script ("security  find-generic-password -gl MAMP | grep \"acct\" | cut -c 19-99 | sed 's/\"//g'")
set thePassword to do shell script ("security 2>&1 >/dev/null find-generic-password -gl MAMP | cut -c 11-99 | sed 's/\"//g'")

tell application "System Events"
	if (exists (process "MAMP")) then
		
		do shell script "/Applications/MAMP/bin/stopApache.sh &" password thePassword user name theUserName with administrator privileges
		do shell script "/Applications/MAMP/bin/stopMysql.sh > /dev/null 2>&1"
		
		tell application "MAMP" to quit
		
	else
		
		tell application "MAMP" to activate
		set frontmost of process "MAMP" to true
		
		do shell script "/Applications/MAMP/bin/startApache.sh &" password thePassword user name theUserName with administrator privileges
		do shell script "/Applications/MAMP/bin/startMysql.sh > /dev/null 2>&1"
		
	end if
end tell
onerob is offline   0 Reply With Quote
Old Mar 14, 2013, 10:42 PM   #10
DelisleBA.info
macrumors member
 
Join Date: Apr 2011
Location: Athens, OH
My way on a mac.

fig,

This is how I got WordPress to run on my MBP with 10.8.

http://youtu.be/3fBR7D_5wGo
DelisleBA.info is offline   1 Reply With Quote
Old Mar 15, 2013, 04:09 AM   #11
iPaintCode
macrumors member
 
Join Date: Jun 2012
Location: Metro Detroit
Send a message via AIM to iPaintCode
I prefer using homebrew for my local dev for PHP5.4, MySQL5.6.1 and a few other handful of awesome tool. I just use Apples built in Apache as it does what I need. The one GUI I do use is called VirtualHostX, but that's mostly due to hating to deal with my vhost and host files.

You can use VHX with mamp to if that is your preference. Far as WP local I'd recommend setting up a vhost as dealing with http://localhost/~User will cause issues at some. The other app I use when dealing with MySQL is Sequel Pro. Good luck!
iPaintCode is offline   0 Reply With Quote
Old Mar 15, 2013, 10:06 AM   #12
fig
Thread Starter
macrumors 6502a
 
Join Date: Jun 2012
Location: Houston, TX
Quote:
Originally Posted by DelisleBA.info View Post
fig,

This is how I got WordPress to run on my MBP with 10.8.

http://youtu.be/3fBR7D_5wGo
Super helpful, thanks.

and I'll check out homebrew too, appreciate the recommendation.
__________________
figdigital | @figdigital | dribbble
fig is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
LED desk lamp? adonis3k Community Discussion 8 Jan 9, 2014 12:03 PM
Looking for a lamp to place besides my new 27" iMac mrmarts Buying Tips and Advice 1 Nov 18, 2013 04:41 AM
IPhone 5s Desk lamp mkstretch iPhone Accessories 4 Oct 16, 2013 10:36 AM
iMac g4 lamp IaPpLe13 PowerPC Macs 2 Oct 11, 2013 02:28 AM

Forum Jump

All times are GMT -5. The time now is 07:18 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC