Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Build a Simple PHP Application Getting Started with PHP Your First PHP File

Linux?

Good evening, folks.

Just wondering why there are no instructions herein for installing PHP on a Linux system? I have Macs (4 of them, actually, since I never throw anything out), but my work laptop of choice runs Linux Mint. (My Macs are old.) I happened to install PHP on it a while back, and MySQL, but I'm just wondering why there's no guidance here for the Linux crowd. Seems to me that there would be a LOT of web developer gigs out there that required setting up this stuff on Linux, since the Internet pretty much runs on Linux.

1 Answer

Hello,

Unfortunately there's really not that big of a teaching here for the Linux environment. You can view the console foundation but that's about it. I wish they'd do a little bit more as the Linux environment is, in my opinion, the best operating system to run a web server on. I got taught a good amount of Linux when I went to college for my bachelor's degree in networking and I can say that the Linux environment has some good potential here. Anyway, back to your question: You can go here (http://www.php.net/manual/en/install.unix.php) to learn how to install PHP on a Linux system and here (https://dev.mysql.com/doc/refman/5.1/en/linux-installation.html) to learn how to install MySQL. My senior project in networking was to run a web server on both a Linux and Windows environment and to secure the environments and the network they were on and I used these two to help me install both. It was hard to learn how to properly install these two as you need to make sure you install them properly and securely but I had fun in the process. Also, you can install LAMP which is a web server, PHP, and MySQL for the Linux environment but I think you want to install these two yourself and get the experience. Good luck!

Cheers!

Shawn (cool name!), thanks for the quick reply. I remembered installing MAMP on one of my old Mac Minis 5 years ago when my wife and I attended WordCamp Dallas together. Surely enough, it was still there! Therefore, I just turned off the native Apache and turned of MySQL, then fired up MAMP and had it bind to the default ports, and bingo -- I was in business!

I agree with you that Linux is likely the best web server platform. The only exception I can think of is FreeBSD, maybe. Linux is definitely prevalent these days, though, I'd say. (FreeBSD was king back in the day. (I'm old; can you tell?))

I do have, effectively, the LAMP stack running on my Linux laptop, albeit not from a nice "package" like MAMP. However, since I found MAMP already installed in there, and since I can do these projects without affecting either system's distributed Apache or MySQL this way, I think I'll just go with that for now.

By the way, EXCELLENT classes. I like the fact that you can speed the classes up and slow them down. Saved me a lot of time going through HTML and CSS sections.

Thanks again.... Shawn