Category:Apache: Difference between revisions
Jump to navigation
Jump to search
(Initial creation) |
(Added useful commands) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{|class=" | Common folder paths... | ||
{|class="vwikitable" | |||
|- | |- | ||
! File path !! What's there | |||
|- | |- | ||
| <code> /var/ | | <code> /var/www </code> || Default web root | ||
|- | |- | ||
| <code> / | | <code> /var/log/apache</code> || Logs | ||
|- | |- | ||
| <code> /etc/php5/apache2 </code> || PHP config file | | <code> /etc/apache2 </code> || Config files | ||
|- | |||
| <code> /etc/apache2/sites-available </code> || Website definition files | |||
|- | |||
| <code> /etc/apache2/sites-enabled </code> || Enabled websites (normally symbolic links to files in <code>sites-available</code>) | |||
|- | |||
| <code> /etc/php5/apache2 </code> || PHP config file | |||
|} | |||
Common commands... | |||
{|class="vwikitable" | |||
|- | |||
! Command !! Action | |||
|- | |||
| <code> service apache2 restart </code> || Restart Apache | |||
|- | |||
| <code> apache2ctl -t </code> || Check Apache config (useful prior to restart) | |||
|- | |||
| <code> apache2ctl -k graceful </code> || Graceful restart (allows worker threads to finish current requests before exiting | |||
|} | |} | ||
'''How to''' | |||
* '''[[Multiple_Websites_On_The_Same_Server|Create websites (virtual hosts)]]''' | |||
* '''[[Secure_Website|Create secure (HTTPS) websites]]''' | |||
[[Category:Applications]] |
Latest revision as of 09:06, 31 July 2012
Common folder paths...
File path | What's there |
---|---|
/var/www |
Default web root |
/var/log/apache |
Logs |
/etc/apache2 |
Config files |
/etc/apache2/sites-available |
Website definition files |
/etc/apache2/sites-enabled |
Enabled websites (normally symbolic links to files in sites-available )
|
/etc/php5/apache2 |
PHP config file |
Common commands...
Command | Action |
---|---|
service apache2 restart |
Restart Apache |
apache2ctl -t |
Check Apache config (useful prior to restart) |
apache2ctl -k graceful |
Graceful restart (allows worker threads to finish current requests before exiting |
How to
Pages in category 'Apache'
The following 6 pages are in this category, out of 6 total.