Mac Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsMac Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 11th, 2007, 01:44 AM
bryanbuchanan bryanbuchanan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 54 bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 14 h 58 m 3 sec
Reputation Power: 10
Send a message via AIM to bryanbuchanan
Host site locally w/MAMP?

Can you?

I know you can let people into your /Sites folder with the built in apache, but I'm running MAMP, and don't see a point in running two servers at one time. I'm no networking whiz but I'm thinking it has something to do with MAMP being setup on port 8888... are there permissions somewhere I can change to allow incoming traffic?

Reply With Quote
  #2  
Old October 11th, 2007, 11:20 AM
edman007's Avatar
edman007 edman007 is offline
Trapped on the forums...help
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Aug 2003
Location: /Users/edman007
Posts: 4,617 edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 67263 Folding Title: Intermediate FolderFolding Points: 67263 Folding Title: Intermediate FolderFolding Points: 67263 Folding Title: Intermediate FolderFolding Points: 67263 Folding Title: Intermediate Folder
Time spent in forums: 1 Month 3 Weeks 3 Days 4 h 34 m 24 sec
Reputation Power: 787
Send a message via AIM to edman007
you do realize that MAMP just means you have Apache, MySQL, and PHP installed on OSX right? just uncomment the php line in your php.ini and install mysql (from entropy.ch) and your done, i don't understand what you mean by running "two servers", you only have one web server, its preinstalled, and unless you need some specific feature from some other install then you don't need to change anything (and if you do need something get it from from entropy.ch), and if you install two versions of apache you should only run one install, but whatever did it will probably offer you a way to control each
__________________
Feed ME

Reply With Quote
  #3  
Old October 11th, 2007, 11:30 AM
huyaroo's Avatar
huyaroo huyaroo is offline
:)
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2006
Location: IL
Posts: 1,417 huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 303 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 4 Days 21 h 32 m 38 sec
Reputation Power: 180
MAMP is a software for the mac like WAMP for windows. You don't really need MAMP really, it'll be easier if you installed and configured PHP and MySQL yourself. Once you do that, just store your files in /Library/WebServer (note: not your user Library but the system's). Make sure Personal web sharing is on in System Preferences > Sharing.

If you want your server to be seen on the net and you have a router, make sure you port forward port 80 to your computer's IP address.
__________________



Chicago Web Development

Reply With Quote
  #4  
Old October 11th, 2007, 09:35 PM
bryanbuchanan bryanbuchanan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 54 bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 14 h 58 m 3 sec
Reputation Power: 10
Send a message via AIM to bryanbuchanan
it was my impression that mamp installs it's own copy of a+m+p rather than using what came stock on the mac, which I'd been using for a while already but always had trouble with it. So I tried mamp out, it works, I don't have to worry about it. The stuff's over my head and all I know is this does what I need it to.

EXCEPT! for the part about letting other people access it over the web. Might not even be related. I don't know.

I am running a router and when I turn on personal web sharing, it says I can view my websites at ...192.168.1.101/~... which I think is just the ip my router assigned my computer. If I try using my real IP it doesn't work... so is it the router? And if it is, how the heck do I forward port 80?

Thanks for the help guys!

Reply With Quote
  #5  
Old October 11th, 2007, 09:45 PM
huyaroo's Avatar
huyaroo huyaroo is offline
:)
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2006
Location: IL
Posts: 1,417 huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 303 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 4 Days 21 h 32 m 38 sec
Reputation Power: 180
I believe that when you turn on personal web sharing, the computer's pre-installed apache fires up and opens your ports. I'm not 100% sure though. What kind of router do you have? It's usually under the Port Forwarding or NAT tables in most routers. Have you tried consulting MAMP's forums at http://www.mamp.info?

Reply With Quote
  #6  
Old October 13th, 2007, 12:41 AM
bryanbuchanan bryanbuchanan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 54 bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 14 h 58 m 3 sec
Reputation Power: 10
Send a message via AIM to bryanbuchanan
alrightyyyy, got it!

I forwarded port 8888 to my ip from my linksys cp like you mentioned, then in system preferences > sharing > firewall, I added port 8888 to the list.

Now I can build sites super fast locally without having to upload/re-config stuff every time I need to show something, just shoot them http://my.ip.address:8888. Also comes in really handy sending big files to people, not having to upload anything.

Thanks for the help guys! Now I guess a good follow up question might be: Did I just open up my computer to some gnarly vulnerabilities?

Reply With Quote
  #7  
Old October 13th, 2007, 09:16 PM
bryanbuchanan bryanbuchanan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 54 bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level)bryanbuchanan User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 14 h 58 m 3 sec
Reputation Power: 10
Send a message via AIM to bryanbuchanan
OK I may have screwed something up...

Now none of my websites' backend pages can write to MySQL, they can read from it! just can't write to it. Any ideas?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsMac Help > Host site locally w/MAMP?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway