dokuwiki:install_dokuwiki_with_apache
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dokuwiki:install_dokuwiki_with_apache [2022/06/30 18:23] – created 45.89.242.195 | dokuwiki:install_dokuwiki_with_apache [2022/06/30 20:14] (current) – 45.89.242.222 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== DokuWiki - Install DokuWiki with Apache ====== | ====== DokuWiki - Install DokuWiki with Apache ====== | ||
- | ===== Install Apache and PHP ===== | + | There are multiple steps: |
- | ==== Install the Apache | + | * [[DokuWiki:Install |
+ | * [[DokuWiki: | ||
+ | * [[DokuWiki: | ||
+ | * [[DokuWiki: | ||
+ | * [[DokuWiki: | ||
- | <code bash> | ||
- | sudo apt-get install apache2 -y | ||
- | </ | ||
- | ---- | ||
- | ==== Install the necessary PHP components ==== | ||
- | <code bash> | ||
- | sudo apt-get install php php-gd php-xml php-json -y | ||
- | </ | ||
---- | ---- | ||
- | |||
- | ==== Start and enable Apache ==== | ||
- | |||
- | <code bash> | ||
- | sudo systemctl enable --now apache2 | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Install DokuWiki ===== | ||
- | |||
- | ==== Download the latest version of DokuWiki ==== | ||
- | |||
- | For the latest Staple version: | ||
- | |||
- | <code bash> | ||
- | wget https:// | ||
- | </ | ||
- | |||
- | |||
- | For the Release Candidate Version: | ||
- | |||
- | <code bash> | ||
- | wget https:// | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ==== Unpack the compressed tar file ==== | ||
- | |||
- | <code bash> | ||
- | tar xvzf dokuwiki-stable.tgz | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | Move and rename the newly-created directory: | ||
- | |||
- | <code bash> | ||
- | sudo mv dokuwiki-XXX / | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ==== Setup the .htaccess file ==== | ||
- | |||
- | Copy the sample .htaccess file: | ||
- | |||
- | <code bash> | ||
- | sudo cp / | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ==== Change the ownership of the DokuWiki folder ==== | ||
- | |||
- | <code bash> | ||
- | sudo chown -R www-data: | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Configure Apache ===== | ||
- | |||
- | At the moment, Apache has no way of knowing about the new installation. | ||
- | |||
- | * To make it aware, create a configuration file for DokuWiki. | ||
- | |||
- | <code bash> | ||
- | sudo vi / | ||
- | </ | ||
- | |||
- | ...and populate that file with: | ||
- | |||
- | <file / | ||
- | ServerName dokuwiki.example.com | ||
- | DocumentRoot / | ||
- | |||
- | AllowOverride All | ||
- | Require all denied | ||
- | |||
- | Order allow,deny | ||
- | Deny from all | ||
- | |||
- | ErrorLog / | ||
- | CustomLog / | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | Save and close the file. | ||
- | |||
- | ---- | ||
- | |||
- | |||
- | ====== Enable the new site ====== | ||
- | |||
- | <code bash> | ||
- | sudo a2ensite dokuwiki | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Reload the Apache configuration files ====== | ||
- | |||
- | <code bash> | ||
- | sudo systemctl reload apache2 | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
dokuwiki/install_dokuwiki_with_apache.1656613437.txt.gz · Last modified: 2022/06/30 18:23 by 45.89.242.195