Tag Archives | LAMP

Apache Virtual Hosting with Fedora Core 3 and SELinux

The Fedora Core 3 Linux distribution includes a very powerful new security feature called SELinux. In my (very) limited understanding, SELinux overlays another set of policies and permissions over the basic UNIX-style security to produce a far more secure product. However, it can also trip up the unsuspecting. At last night’s LAMP class, we got caught. Installing Virtual Hosts as we had with Fedora Core 2 threw permission errors, despite everything we could think of. As it was a beginner class, we just settled for placing the virtual hosts under the standard DocumentRoot at /var/www/html and continuing on with our exercise, with a promise that we’d investigate and explain to the students what went wrong at the next class.

The Fedora web site provides guidance at “Understanding and Customizing the Apache HTTP SELinux Policy.” I was also pleased to see that a WebMin module is under development to simplify SElinux management at http://www.selinux.hitachi-sk.co.jp/en/tool/selpe/selpe-top.html

UPDATED: Indeed, it was the SELinux that was causing the problem. Turning that off (requiring one of the very rare reboots in the Linux world) and fixing a problem with rights (the parent home directory needs x permissions for searching, as pointed out in the Apache FAQ) solved the problem. We’ll be able to present the solution to the class, along with a little side-talk on how to figure these things out, at the next class.

LAMP course starts Tuesday at NHTI

I’m pleased to announce that I will again be one of the teachers at the LAMP course at the New Hampshire Technical Institute‘s Center for Training and Business Development. We start teaching on Tuesday night, and will be teaching ten evenings Tuesday and Thursday, 6 PM to 9:30 at the Concord campus. There’s till time to sign up and catch the first class — details are available at the CTBD site. We taught this class in the fall semester and it was a great success. At the end of the course, the students have a simple interactive database-backed web site running on Linux, Apache, MySQL and PHP.

Delivering a commercial LAMP app

Friday was spent at the client’s delivering the final beta of the first phase of a five-phase LAMP (Linux-Apache-MySQL=PHP) project. Client was ecstatic! But, of course, I came home with a list of small adjustments to punch through. Hope to tell more as it unfolds. Briefly, it’s a simple data entry and reporting system: 20 tables, 40 web pages, used by an inhouse staff to manage their workflow. This first piece got rid of the worst of their manual labors. Later phases will produce documents to present in a customer-facing web site, and tighten up the workflow tracking. Phase I was 40 hours of analysis and design with customer interviews, document review and resulted in a design document of workflow, prototyped web forms and an ERD (data model). The model was dead-on, requiring just a couple adjustments. Eighty hours of coding produced the forms and got us through the beta testing and demonstrations. Client goes live with a pilot test next week.

Mini Madness?

No, not the Cooper Mini, although Laura and I would love to play with one. The Mac Mini. Steve Jobs brought his portable Reality Distortion Field to MacWorld last week and put on an as-always great keynote, his first since a scare with pancreatic cancer last year, and the crowd went wild, and the press went wild and Slashdot went wild. Inevitably, a few naysayers trotted out the usual tired arguments against Apple. Reviews were either Apple Fan-tastic or Apple hater-mean. Let’s get real.

Laura asked me at lunch just who they were trying to sell to. Great question! The Mac Mini is a little too mini for those of us who push our machines really hard: the CPU, RAM and disk aren’t much upgradable. the video too weak for gamers. If you buy into the all-Apple thing, and buy the Apple keybaord and mouse, Apple Airport card, RAM and HD upgrade and a 21″ Cinema display, the price comes out pretty close to what I paid last year for a loaded iMac (the “Luxo Lamp” model). However, this can make an ideal office desktop machine for someone who needs mail, web browsing and routine office work (using Apple Works, OpenOffice.org, NeoOffice/J or Apple’s new iWork).

For those who already have the peripherals (or can buy them at a bargain), I suspect the Mac Mini can make a great desktop machine or second machine. But beware! Once you’ve experienced the Apple trademark “It Just Works!” experience, don’t be surprised at finding yourself pricing out a dual-proc PowerMac or a slick PowerBook.

Tim Bray thinks about whether a “Mini for Mom” is a good choice.

OSNews has an interesting article comparing a home-brew mini-PC vs. the Mac Mini.

If you’ve got the time and you’re really intrigued by the entire Apple phenomenon (I am!), Daring Fireball has an insightful Mac Mini analysis with an interesting conclusion.

The Best of O’Reilly’s OnLAMP

O’Reilly and Associates host a hopping web site along with publishing all of those books with the intriguing animals on the cover. Fellow Foxer Ed Leafe points out a column by chromatic summarizing his picks for The Best Articles of 2003. Check out the articles – there’s some good stuff in there!

Powered by WordPress. Designed by Woo Themes

This work by Ted Roche is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States.