dokuwiki:install_dokuwiki_with_apache
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dokuwiki:install_dokuwiki_with_apache [2022/06/30 18:28] – 45.89.242.195 | dokuwiki:install_dokuwiki_with_apache [2022/06/30 20:14] (current) – 45.89.242.222 | ||
---|---|---|---|
Line 4: | Line 4: | ||
* [[DokuWiki: | * [[DokuWiki: | ||
- | * [[DokuWiki: | + | * [[DokuWiki: |
- | * [[DokuWiki: | + | * [[DokuWiki: |
- | * | + | * [[DokuWiki: |
- | * | + | * [[DokuWiki: |
- | ===== Install Apache and PHP ===== | ||
- | ==== 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.1656613696.txt.gz · Last modified: 2022/06/30 18:28 by 45.89.242.195