How to use and access web sharing with Mac OS X Lion?

I am new to Mac OS X, and also I have a MacBook Pro. I am creating a web application with PHP and also MySQL. I currently mounted XAMPP on my Mac. I uncovered the alternative for organizing in System Preferences > Sharing > Web Sharing , yet I do not recognize just how to utilize it or just how to inform my close friend to watch my web application from another location. Can a person aid me?

2022-06-07 14:31:03
Source Share
Answers: 2

Web Sharing opens up port 80 (http) on your equipment and also factors any kind of inbound demands to ~/Sites. You'll intend to place your PHP application there for it to resolve Web Sharing. I'm not exactly sure if there is any kind of more arrangement you need to do on the PHP/MySQL side given that I do not recognize anything concerning either of those languages. That is possibly an inquiry for SuperUser.

Regarding accessing it from another location, you'll require to open port 80 on your router and also factor it to your computer system is inner IP address. After that you'll intend to offer your close friend either your domain or your existing IP address from your ISP and also have them type it in their internet internet browser.

2022-06-07 14:49:57

You simply tick package, an after that any person that does not get obstructed by your firewall program can watch the website, either by domain or IP address.

PHP is mounted yet disabled by default, you require to enable it i httpd.conf (not exactly sure what the specific course is). Simply look for PHP and also uncomment anything pertinent. Any kind of adjustment requires a reactivate of Apache (untick web sharing, delay, and also tick it once more).

MySQL isn't mounted by default, yet has a pkg installer for it, and also apple has actually currently set up PHP to connect to it (using origin @localhost without password).

2022-06-07 14:49:16