Web Designs Done Right!

About Me

I've been designing websites for many years now. I remember way back in 1995, when I was working on the Helpdesk for Applied Materials in Santa Clara, CA. I would hack into the database (which was accessed by a basic intranet frontend) using only JavaScript...oh what fun! But then I got serious & learned XHTML coupled with PHP, & so I began to turn out website after website.

And all these years later, I'm still at it! A lot has changed, but the principles I've learned throughout the years have kept growing, & are evident in my designs.

I Train Dogs Too!

It's sounds kind of funny, but yes, I do train dogs :) I have been dog training on & off, for 20+ years now. My favorite type of training is in the sport of Schutzhund. Schutzhund is German for "protection dog", & it's a great dog sport that focuses on developing & evaluating those traits in dogs that make them more useful, which in turn makes for a much better dog/human relationship.



Bloggin' 'bout Web Coding...

This & That...

10/17/24 - Thursday Evening, 7:40pm

Content goes here...

The "Joys" of Web Development on Arch Linux: Apache Edition

Ah, the thrill of web development on Arch Linux. It's like running a marathon in a maze, blindfolded, and occasionally being chased by a bear. And that bear is Apache Web Server.

When I first installed Arch Linux, I knew I was signing up for a bit of a challenge. But hey, it’s Arch! It’s lightweight, fast, and endlessly customizable! That’s what I kept telling myself as I dove into the deep end of the Linux pool. Little did I know that getting a web development environment running on this thing would be like trying to teach a cat to swim.

Step 1: Installing Apache – Piece of Cake, Right?

Arch Linux: You want to install Apache? No problem, just run sudo pacman -S apache.

Me: "Wow, this is going so smoothly. I wonder why people say Arch is hard?"

Five minutes later...

Apache: "Ah, you installed me? Good. Now spend the next two hours configuring me."

Step 2: Configuring Apache – The Real Fun Begins

Now, if you thought the installation was easy, you're in for a treat! The real "joy" starts when you try to configure Apache. Oh, you want to change the default document root to your project folder? Of course, it's just a simple change in the /etc/httpd/conf/httpd.conf file. Except...

  • You miss one semicolon, and Apache throws a tantrum.
  • You change one directory path, and suddenly it refuses to start.
  • You forget to enable the service at boot, and it plays hide-and-seek after every restart.

It’s like a highly temperamental artist – "You don’t understand my vision!" – while you just want to serve some HTML.

Step 3: Permissions – Welcome to Your New Nightmare

Ah, permissions. If there’s one thing I’ve learned, it’s that Arch Linux and Apache are both very particular about who’s allowed to do what. After setting up my development environment, I quickly realized that getting permissions right is more confusing than trying to explain recursion to a toddler.

"Why can’t Apache read my files?"

"Oh, because they’re in a folder owned by root? Sure, let me just—oh, wait, now nobody can read them."

At this point, I've chanted sudo chown so many times that I feel like I'm summoning some kind of permissions demon. And then there's chmod, which I'm pretty sure is short for "Choose How Much Of Despair."

Step 4: The Firewall – Apache's Bouncer

Let’s not forget the firewall. Arch Linux is very protective. You’ll try to load your site in the browser, only to be greeted by a very polite error message: "This site can't be reached."

Apache is running, I’ve configured it, I’ve set up my virtual hosts – but the firewall is like, "Nope, not on my watch!" It’s like Apache is the VIP guest, but the firewall forgot to check the list. So, after a good hour of opening ports, reloading services, and running ufw allow 80/tcp, I finally get it working.

Only to realize I blocked all my other services. Good job, me.

Step 5: Virtual Hosts – Let’s Make This Interesting

By the time I got to virtual hosts, I thought I was a pro. "How hard can it be?"