Jump to content

How to share local website (from mamp) to other computers in the network


Recommended Posts

Posted

Hi

 

I got my first mac few months back and been using MAMP for my websites. I just read an article that said that I could enable "web sharing" from the preferences. This would enable me to view the websites from my mac on my PC.

 

However, this only allowed me to view HTML files.

 

So is there a way to share the MAMP websites? so that I would not only be sharing html but also php and mysql.

 

 

As I said this is very new to me so I am sorry if I am not using the correct terminology,

 

I hope you can help

 

Thanks

Posted

I am not familiar with MAMP but I have used WAMP in the past. Basically, you need to enable your MAMP to be online and configure it so that it displays php along with the database content. Odds are that the url you use to view it via on a Mac may not be the same when viewed from any other computers whether be a Mac or Pc. There is more to what I am saying here which I believe this is best answered by the the folks at the MAMP Forum.

Posted

If you are just talking about viewing the page locally within your home network, you don't need to turn on OSX's built in webshare. MAMP can share pages perfectly fine, you just need to punch in your mac's ip adress from the PC, and then the port number for MAMP, as far as i recall it runs on a port 8888, so you would have to punch in for instance 192.168.1.10:8888 in the PCs browser

Posted

That's great. Thanks; for some reason the styling of wordpress themes dont seem to work. However I'll look into that, thanks

My guess would be that you need to use the IP address when linking in your CSS file. It's probably using the local url rather than the IP address, and the stylesheet isn't able to be found.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...