Use Mac as a Web Server (Appendix)

[Related to: Use Mac as a Web Server]

After setting up a domain name for your website, you might want to change the domain name setting for phpBB and s9y so you can administer them from anywhere.

phpBB

Login to phpBB and click Go to Administration Panel. Re-authenticate and you'll be at the admin page. Click Configuration under General Admin. The first setting should read Domain Name. Enter your domain name here instead of 127.0.0.1 or whatever IP address it had before. Scroll down and press Submit to complete.

s9y

Login via Blog Administration. On the admin page, click Configuration under Administration. Open up Path and find URL to blog. Enter http://domain_name/serendipity/ where domain_name is your domain name and serendipity is the folder where your s9y files are in.

Use Mac as a Web Server (5/5)

So far, we've got a whole website running phpBB and s9y, and... great... you can connect, login, make a post, etc. But you and you only right now. The website needs to get out of the basement and see the light.

6. Do We Have an Address?

The trusty "System Preferences - Sharing - Services - Personal Web Sharing and see bottom" gig gets you an IP address that your website is accessible from. If you're connecting to the internet directly via dedicated line or a modem (DSL, cable, etc.), you'll see an actual IP address that your website can be accessed from elsewhere on the internet. If that's the case, great. Move to section 7. However, if your Mac is hooked up to a router that relays the internet connection, you'll see an internal (private) IP address such as 192.168.1.32 showing up. The most common one starts with 192.168 but other examples include 172.16 and 10.0. Read this Wikipedia entry for details.
Continue reading "Use Mac as a Web Server (5/5)"

Use Mac as a Web Server (4/5)

Wow, I must really be in the groove tonight. I think I'll do the last section after sleeping, but a glass of Pepsi should keep me awake just enough to write this section.

5. s9y (Serendipity)
In search for a good blog (weblog) solution to install on my web server, I came across Serendipity Weblog System, or 's9y' for short. There are other PHP-based blog systems out there such as Tatter Tools which seems to be gaining popularity in Korea, but I'm quite comfortable with how s9y works and I think it's good for you, too. I mean, just look at this place! **cough**
Continue reading "Use Mac as a Web Server (4/5)"

Use Mac as a Web Server (3/5)

Let's run something useful that uses the APM setup. Since I have phpBB and s9y running on this website, I'll look at those. Sounds pretty obvious, considering the reasons why I'm writing this. :-)

4. phpBB

phpBB is a popular internet message board system usually found in many websites and communities around the globe. In Korea, Zeroboard is often used more, however. Both systems use PHP and MySQL to operate. Actually, phpBB is more flexible in that it can use other database engines such as MS-SQL and Access. In the past I would have installed Zeroboard, but I decided to go against the local norm now. I'll do a bit of comparison between the two in a later article if I'm willing.
Continue reading "Use Mac as a Web Server (3/5)"

Use Mac as a Web Server (2/5)

You know, installing MySQL stumped me a lot in the past. I'm a little better at it now, hopefully. Let's dive in!

3. MySQL

Now we need another pillar to put up - a database engine. MySQL is a popular open-source choice for this and works with most of the solutions needing database functionality. Installation of MySQL completes are triple-module setup commonly referred to as "APM" (Apache-PHP-MySQL) or "AMP". Since it's installed on OS X, the whole server setup is called "MOXAMP" (Mac OS X-Apache-PHP-MySQL). Install on Linux and you have "LAMP". You get the idea. The APM setup is prequisite for a lot of dynamic website configuration: you have a web server (Apache) that accesses various database entries (MySQL) through scripting language (PHP), like a blog post.

Oh, yeah, the installation.
Continue reading "Use Mac as a Web Server (2/5)"

Copyright (C) 1996-2024 Woo-Duk Chung (Wesley Woo-Duk Hwang-Chung). All rights reserved.