Difference between revisions of "Lamp Server Notes"

From OpenEMR Project Wiki
(Blanked the page)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Apache Notes==
=====Files=====
{| style="margin: 0 0em 0 0em;"
|-
| width="250" | <tt style="font-size: 130%">/etc/apache2</tt>
| width="400" | Config File
|-
| <tt style="font-size: 130%">/usr/share/doc/apache2-doc</tt>
| Apache2 Manual.
|-
| <tt style="font-size: 130%">/var/www/html</tt>
| Default http home directory.
|} 
<br>


=====Commands=====
{| style="margin: 0 0em 0 0em;"
|-
| width="250" | <tt style="font-size: 130%">apache2 -v</tt>
| width="400" | Display apache version.
|-
|
|
|} 
<br>
=====Configuration File Settings=====
{| style="margin: 0 0em 0 0em;"
|-
| width="250" | <tt style="font-size: 130%">ServerSignature Off</tt>
| width="400" | Suppress identification of the Apache version.
|-
| <tt style="font-size: 130%">ServerTokens Prod</tt>
| Suppress identification of OS.
|- valign="top"
| <tt style="font-size: 130%"><Directory /var/www/html><br>&nbsp;&nbsp;&nbsp; Options -Indexes<br></Directory></tt>
| Turn off directory listing.
|} 
<br><br>
=====Configuration File - Directory DIrectives=====
{| style="margin: 0 0em 0 0em;"
|-
| width="250" | <tt style="font-size: 130%">Options None</tt>
| width="400" | 
|-
| <tt style="font-size: 130%">Order deny, allow</tt>
| Order of deny, allow directives.
|-
| <tt style="font-size: 130%">Deny from all.</tt>
| Deny request from everybody.
|-
| <tt style="font-size: 130%">Options -FollowSymLinks</tt>
| Disable following symbolic links.
|-
| <tt style="font-size: 130%">Options +FollowSymLinks</tt>
| Enable following symbolic links.
|-
| <tt style="font-size: 130%">AllowOverride All</tt>
| Allows override of directory directives with .htaccess files.
|-
| <tt style="font-size: 130%">Options -Includes</tt>
| Turn off server side includes (mod_includes).
|-
| <tt style="font-size: 130%">Options -ExecCGI</tt>
| Turn off CGI file executions.
|-
| <tt style="font-size: 130%">LimitRequestBody 512000</tt>
| Limits size of HTTP request.  Any value from 0 to 2147483647 (2GB).
|-
| <tt style="font-size: 130%">MaxClients 10</tt>
| Limits simultaneous connections.  Default is 256.
|}
<br>
=====Sample Virtual Host=====
<pre  style="font-size: 130%">
<VirtualHost *:80>
  DocumentRoot /var/www/html/example.com/
  ServerName www.example.com
  DirectoryIndex index.htm index.html index.php
  ServerAlias example.com
  ErrorDocument 404 /story.php
  ErrorLog /var/log/httpd/example.com_error_log
  CustomLog /var/log/httpd/example.com_access_log combined
</VirtualHost>
</pre>
<br>
<br>
==MySQL Notes==
<br><br>
==PHP Notes==
<br><br>
==Other Packages of Interest==

Latest revision as of 16:49, 28 May 2014