PHP on a Linux System?
I'm new to web development (and to this forum), and I'm having some trouble.
I was asked to help out with a friend's corporate website. When I took a look at things with my FTP program, I found a bunch of folders with unfamiliar names. Because I've always done development on less-sophisticated systems, I have no idea what I'm looking at and how it will affect any PHP code I write.
The folders are:
If y'all could just point me in the right direction or to some helpful literature, I'd love to learn more about what I'm looking at.
You aren't looking at anything magical, just a list of directories. This explains what some of the common directories are normally used for, but this can vary from system to system. Generally if you are doing web development you are only really interested in apache/php/mysql config files (normally located in /etc but sometimes in /usr) and the DocumentRoot directories of each virtualhost (usually specified in the main apache httpd.conf file though again it varies - debian in particular uses their own apache config system) - these are likely to be in www. The best thing you can do is track down the apache config and have a read to see how things are configured. You can find the fine by running the following if you don't know where it is (you probably need to be root un updatedb):
You may also find that as you're connecting via FTP what you're seeing is just a user's home directory in which case it is easier still, just browse through and see what's in each directory, there are no rules as to what is where.
Thank you very much for your thoughtful response! As a follow-up, why would someone choose this kind of configuration for hosting a website over the typical ISP-provided setup with an Admin Panel and a single root folder?
Originally Posted by Mindzai
It doesn't seem like an untypical (is that a word?) set up to me, it's probably just that you are used to doing things via cPanel or similar which is a web front end and masks the specifics of the server from you. Most web servers run some variant of unix and most variants of unix use a directory structure like this. As for why someone would choose a particular set up, that's a question only they can answer!
Thanks again. It seems I've stumbled into the wild world of dedicated hosting. I'll advise them to find someone who's a qualified linux administrator. In the meantime, I've got a lot of reading to do.