开发者

Setting up a server [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

I am trying to setup php and mysql on a mac server and have come across many links describing how to setup this locally on a macbook, not necessarily a server.

I want to be able to communicate with my server using an iphone app I am writing but am wondering how to even connect to it.

If I wanted to connect to it from outside my own network, where do I find this address or how do I set it up? I am running the mac server on a virtual machine for now as I cant buy an extra computer and don开发者_StackOverflowt really want to during the testing phase.

I came across MAMP but the free version allows one server setup and says it is only a local server? Does this effect connecting from the outside, out of the local network, or is that relating to the actual database being local?

I am obviously new to servers as the question shows. I want to setup a basic mysql database and run php too on the server. I will write a small web service and the app, I just have no knowledge on the actual workings of a server.

How do I setup this database?

Thanks


If you're just using it for test purposes than MAMP will be fine. Web servers run on port 80 so to access the server from outside of your local network you'll have to setup port redirection on your router (I'm making assumptions as to how your network is setup here). Essentially what this means is you'll go in your router and tell it to direct all calls to port 80 to port 80 of the computer running MAMP. As far as the database goes, that comes with MAMP. If you don't want to use the command line you can use phpmyadmin (which comes with MAMP) to easily interact with the database or installing MySQL's admin tools: http://dev.mysql.com/downloads/gui-tools/5.0.html.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜