2,187
edits
m (Added Applications category) |
(Added useful commands) |
||
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]] | [[Category:Applications]] |