Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Linux and httpd file system layout - LAMP server

The Linux / Unix file system tree is a complex one ... but for the administrator of a LAMP server, there are just a few critical directories / areas he'll be working in most of the time.

THE UNIX / LINUX FILE TREE


1. Extra software you install - perhaps a version of httpd that you've compiled yourself, MySQL, and Java and Tomcat if you're using them - go in /usr/local

2. Configuration files go in /etc

3. User's own information, and potentially the web site documents, go under /home

4. Log files, mail queues, print spools, etc., go under /var; I'm sure there's a standard and easy word to represent this grouping, but I can't come up with it

5. /tmp is an area that processes use for temporary storage, and sometimes it might need to be cleaned up

6. Process startup and shutdown scripts are kept in /etc/init.d, with symbolic links in directories such as rc3.d to control which of them are run (and in what order).

THE APACHE HTTPD FILE TREE

The Apache httpd server, when installed from source, defaults to a clean install in /usr/local/apache2. You'll want to move the web site, and log files too, to other areas as you configure it.


The main executable files are in the bin subdirectory (1) ...

 httpd - the main daemon
 apachectl - the daemon controller to start and stop
 apxs - to tell other software builds the release & config

The configuration file is in the conf directory (2) ... a file called httpd.conf. Other sample files are provided too in order to help you change the daemon's behaviour easily by reference to examples.

Log files (3) can be kept in the server area but they'll commonly be move out elsewhere, together with the documents and programs directories ...


The document root will be in a directory called - well - you've a big choice of name and there's no real standard - htdocs or html or www or website or public_html or httpdocs ... (4)

Programs to be run under the Common Gateway Interface are placed in cgi-bin (5) ... even if they're not really binary programs very often these days, but rather scripts in Perl or Python.

Directories such as data, private and include (6) are used to hold information needed as the website runs through CGI scripts or embedded languages such as PHP, but which shouldn't have their own URLs.



See also Linux Web Server training

Please note that articles in this section of our web site were current and correct to the best of our ability when published, but by the nature of our business may go out of date quite quickly. The quoting of a price, contract term or any other information in this area of our website is NOT an offer to supply now on those terms - please check back via our main web site

Related Material

Web Application Deployment - Linux - General
  [2023] - ()
  [2035] - ()
  [3219] - ()
  [3902] - ()
  [4259] - ()

Web Application Deployment - Backups and File System Management
  [153] - ()
  [334] - ()
  [554] - ()
  [593] - ()
  [703] - ()
  [735] - ()
  [754] - ()
  [1013] - ()
  [1023] - ()
  [1288] - ()
  [1439] - ()
  [1648] - ()
  [1765] - ()
  [1801] - ()
  [1893] - ()
  [2299] - ()
  [4056] - ()
  [4063] - ()
  [4115] - ()
  [4390] - ()
  [4400] - ()
  [4405] - ()
  [4481] - ()

Web Application Deployment - Apache httpd - Sourcing, Installation, Testing
  [523] - ()
  [526] - ()
  [550] - ()
  [660] - ()
  [907] - ()
  [982] - ()
  [1095] - ()
  [1292] - ()
  [1449] - ()
  [1455] - ()
  [1707] - ()
  [1731] - ()
  [1768] - ()
  [1945] - ()
  [2080] - ()
  [2096] - ()
  [2184] - ()
  [2520] - ()
  [3426] - ()
  [4437] - ()

Web Application Deployment - Further httpd Configuration
  [345] - ()
  [466] - ()
  [526] - ()
  [550] - ()
  [631] - ()
  [649] - ()
  [662] - ()
  [755] - ()
  [853] - ()
  [934] - ()
  [1009] - ()
  [1080] - ()
  [1121] - ()
  [1207] - ()
  [1351] - ()
  [1355] - ()
  [1377] - ()
  [1381] - ()
  [1551] - ()
  [1554] - ()
  [1564] - ()
  [1566] - ()
  [1619] - ()
  [1636] - ()
  [1707] - ()
  [1762] - ()
  [1767] - ()
  [1778] - ()
  [1939] - ()
  [1954] - ()
  [1955] - ()
  [1974] - ()
  [2060] - ()
  [2272] - ()
  [2478] - ()
  [2900] - ()
  [3133] - ()
  [3449] - ()
  [3635] - ()
  [3862] - ()
  [3955] - ()
  [4001] - ()
  [4307] - ()

resource index - Deployment
Solutions centre home page

You'll find shorter technical items at The Horse's Mouth and delegate's questions answered at the Opentalk forum.

At Well House Consultants, we provide training courses on subjects such as Ruby, Lua, Perl, Python, Linux, C, C++, Tcl/Tk, Tomcat, PHP and MySQL. We're asked (and answer) many questions, and answers to those which are of general interest are published in this area of our site.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2021: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/solutions/general- ... erver.html • PAGE BUILT: Wed Mar 28 07:47:11 2012 • BUILD SYSTEM: wizard