dokuwiki:install_dokuwiki_with_apache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dokuwiki:install_dokuwiki_with_apache [2022/06/30 18:26] 45.89.242.195dokuwiki:install_dokuwiki_with_apache [2022/06/30 20:14] (current) 45.89.242.222
Line 4: Line 4:
  
   * [[DokuWiki:Install DokuWiki with Apache:Install Apache and PHP|Install Apache and PHP]]   * [[DokuWiki:Install DokuWiki with Apache:Install Apache and PHP|Install Apache and PHP]]
-  * [[DokuWiki:Install DokuWiki with Apache:Install Apache|Install Apache]] +  * [[DokuWiki:Install DokuWiki with Apache:Install DokuWiki|Install DokuWiki]] 
-  * [[DokuWiki:Install DokuWiki with Apache:Install the necessary PHP components|Install the necessary PHP components]] +  * [[DokuWiki:Install DokuWiki with Apache:Configure Apache|Configure Apache]] 
-  *  +  * [[DokuWiki:Install DokuWiki with Apache:Enable the new site|Enable the new site]] 
-  *  +  * [[DokuWiki:Install DokuWiki with Apache:Configure DokuWiki|Configure DokuWiki]]
  
-===== Install Apache and PHP ===== 
  
-==== Install the Apache web server ==== 
  
-<code bash> 
-sudo apt-get install apache2 -y 
-</code> 
  
----- 
- 
-==== Install the necessary PHP components ==== 
- 
-<code bash> 
-sudo apt-get install php php-gd php-xml php-json -y 
-</code> 
  
 ---- ----
- 
-==== Start and enable Apache ==== 
- 
-<code bash> 
-sudo systemctl enable --now apache2 
-</code> 
- 
----- 
- 
-===== Install DokuWiki ===== 
- 
-==== Download the latest version of DokuWiki ==== 
- 
-For the latest Staple version: 
- 
-<code bash> 
-wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz 
-</code> 
- 
- 
-For the Release Candidate Version: 
- 
-<code bash> 
-wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-rc.tgz 
-</code> 
- 
----- 
- 
-==== Unpack the compressed tar file ==== 
- 
-<code bash> 
-tar xvzf dokuwiki-stable.tgz 
-</code> 
- 
----- 
- 
-Move and rename the newly-created directory: 
- 
-<code bash> 
-sudo mv dokuwiki-XXX /var/www/html/dokuwiki 
-</code> 
- 
-<WRAP info> 
-**NOTE:**  where **XXX** is the release number. 
-</WRAP> 
- 
----- 
- 
-==== Setup the .htaccess file ==== 
- 
-Copy the sample .htaccess file: 
- 
-<code bash> 
-sudo cp /var/www/html/dokuwiki/.htaccess{.dist,} 
-</code> 
- 
----- 
- 
-==== Change the ownership of the DokuWiki folder ==== 
- 
-<code bash> 
-sudo chown -R www-data:www-data /var/www/html/dokuwiki 
-</code> 
- 
----- 
- 
-===== 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 /etc/apache2/sites-available/dokuwiki.conf 
-</code> 
- 
-...and populate that file with: 
- 
-<file /etc/apache2/sites-available/dokuwiki.conf> 
-ServerName dokuwiki.example.com 
-DocumentRoot /var/www/html/dokuwiki 
- 
-AllowOverride All 
-Require all denied 
- 
-Order allow,deny 
-Deny from all 
- 
-ErrorLog /var/log/apache2/dokuwiki_error.log 
-CustomLog /var/log/apache2/dokuwiki_access.log combined 
-</file> 
- 
-<WRAP info> 
-**NOTE:**  If a domain is being used, ensure to change the **ServerName** option. 
-</WRAP> 
- 
----- 
- 
-Save and close the file. 
- 
----- 
- 
- 
-====== Enable the new site ====== 
- 
-<code bash> 
-sudo a2ensite dokuwiki 
-</code> 
- 
----- 
- 
-====== Reload the Apache configuration files ====== 
- 
-<code bash> 
-sudo systemctl reload apache2 
-</code> 
- 
----- 
- 
  
dokuwiki/install_dokuwiki_with_apache.1656613602.txt.gz · Last modified: 2022/06/30 18:26 by 45.89.242.195

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki