DokuWiki

It's better when it's simple

User Tools

Site Tools


install:ubuntu

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
install:ubuntu [2017-01-22 14:23]
2a01:cb08:2f5:6300:cc7d:924a:f417:fbb0
install:ubuntu [2017-10-27 10:49]
134.100.101.1 Link to the debian page for install from DEB package
Line 1: Line 1:
-====== Installation =====+===== Installation =====
-All one has to know is written on [[https://​wiki.debian.org/​DokuWiki|debian.org on how to install DokuWiki on Debian]] and [[install:​debian|dokuwiki.org on how to install DokuWiki on Debian]]. What's true for Debian is true for Ubuntu too.+
  
 +These are instructions on how to install a single DokuWiki under Ubuntu 14.04. Other version installations are discussed below. If you want to install a DokuWiki Farm, follow these instructions and then visit the [[:​farms|Farm Page]].
  
-===== Custom Installation ===== +Please note that there is a dokuwiki package in the Ubuntu repositories. If you want to use it, please see the [[install:​debian|Debian install page]] instead. This article describes the installation of DokuWiki from a tarball. (The Ubuntu and Debian packages follow the Debian directory conventions and that is why different steps are needed when using the Ubuntu/​Debian package). 
-:!: For Ubuntu 16.04 you will want to use libapache2-mod-php7.0 and make sure to install php7.0-xml, php7.0 with apt-get+ 
 +:!: **For Ubuntu 16.04** you will want to use libapache2-mod-php7.0 and make sure to install php7.0-xml, php7.0 with apt-get 
 + 
 +Upgrading from Ubuntu 14.04 LTS to Ubuntu 16.04 LTS I had to add the following:​ 
 + 
 +  * apt-get install php7.0 
 +  * apt-get install php-mbstring 
 +  * apt-get install php7.0-xml 
 + 
 +This resolved all the issues restoring Dokuwiki back to normal prior to the upgrades.
  
-This is an example for Ubuntu 14.04. 
   - Install Ubuntu Server 14.04 [[http://​askubuntu.com/​questions/​340965/​how-do-i-install-ubuntu-server-step-by-step|Step by step instructions with screenshots]]   - Install Ubuntu Server 14.04 [[http://​askubuntu.com/​questions/​340965/​how-do-i-install-ubuntu-server-step-by-step|Step by step instructions with screenshots]]
   - Update & Upgrade Ubuntu.<​code bash>​sudo apt-get update && sudo apt-get upgrade</​code>​   - Update & Upgrade Ubuntu.<​code bash>​sudo apt-get update && sudo apt-get upgrade</​code>​
-  - Install Apache2 and PHP.<​code bash>​sudo apt-get install apache2 libapache2-mod-php5</​code>​+  - Install Apache2 and PHP.<​code bash>​sudo apt-get install apache2 libapache2-mod-php php-xml</​code>​
   - Enable Apache Rewrite module.<​code bash>​sudo a2enmod rewrite</​code>​   - Enable Apache Rewrite module.<​code bash>​sudo a2enmod rewrite</​code>​
   - Download and uncompress the latest stable release.<​code bash>   - Download and uncompress the latest stable release.<​code bash>
Line 18: Line 26:
 </​code>​ </​code>​
   - Change permissions.<​code bash>​sudo chown -R www-data:​www-data /​var/​www/​dokuwiki</​code>​   - Change permissions.<​code bash>​sudo chown -R www-data:​www-data /​var/​www/​dokuwiki</​code>​
-  - Change document root in Apache to point to /​var/​www/​dokuwiki<​code bash>​sudo nano /​etc/​apache2/​sites-enabled/​000*.conf</​code>​ +  - Change document root in Apache to point to /​var/​www/​dokuwiki<​code bash>​sudo nano /​etc/​apache2/​sites-enabled/​000*.conf</​code>​ Replace\\ ''​DocumentRoot /​var/​www/​html''​\\ with\\ ''​DocumentRoot /​var/​www/​dokuwiki''​ 
-     ​- ​Replace\\ ''​DocumentRoot /​var/​www/​html''​\\ with\\ ''​DocumentRoot /​var/​www/​dokuwiki''​+     - If you want to host a DokuWiki server on localhost for testing purposes do NOT change the content of ''/​etc/​apache2/​sites-enabled/​000*.conf'',​ instead create a new file in \\ ''/​etc/​apache2/​sites-available''​\\ with <code bash>​sudo touch apache2-dokuwiki.conf</​code>​with the following content:<​code bash><​VirtualHost 127.0.0.1>​ 
 +        DocumentRoot /​var/​www/​dokuwiki 
 + ​ ServerName localhost 
 +</​VirtualHost></​code>​ 
 +     - enable the new project by placing it into /​etc/​apache2/​sites-enabled with <code bash>​sudo a2ensite apache2-dokuwiki</​code>​ 
 +     - and then reload apache2 service<​code bash>​sudo service apache2 reload</​code>​
   - Change AllowOverrides setting in Apache2 to use .htaccess files for security.<​code bash>​sudo nano /​etc/​apache2/​apache2.conf</​code>​   - Change AllowOverrides setting in Apache2 to use .htaccess files for security.<​code bash>​sudo nano /​etc/​apache2/​apache2.conf</​code>​
      - For directory ''/​var/​www/''​ replace\\ ''​AllowOverride None''​\\ with\\ ''​AllowOverride All''​      - For directory ''/​var/​www/''​ replace\\ ''​AllowOverride None''​\\ with\\ ''​AllowOverride All''​
   - Restart Apache2 service.<​code bash>​sudo service apache2 restart</​code>​   - Restart Apache2 service.<​code bash>​sudo service apache2 restart</​code>​
   - Visit ''​http://​IP-address-of-your-server/​install.php''​ to initially configure your DokuWiki.   - Visit ''​http://​IP-address-of-your-server/​install.php''​ to initially configure your DokuWiki.
 +     - If you decided to host DokuWiki on localhost for testing purposes from point 7a-c, visit ''​127.0.0.1/​install.php''​
   - Delete the install.php file after finished installing.<​code bash>​sudo rm /​var/​www/​dokuwiki/​install.php</​code>​   - Delete the install.php file after finished installing.<​code bash>​sudo rm /​var/​www/​dokuwiki/​install.php</​code>​
   - Needed for sending email (e.g. user registration):​ install sendmail program, e.g. postfix <code bash>​sudo apt-get install postfix   - Needed for sending email (e.g. user registration):​ install sendmail program, e.g. postfix <code bash>​sudo apt-get install postfix
Line 32: Line 46:
 ===== Additional Installation Information ===== ===== Additional Installation Information =====
 For more information on installing and configuring Dokuwiki on Ubuntu, see [[debian_ubuntu_extras]]. For more information on installing and configuring Dokuwiki on Ubuntu, see [[debian_ubuntu_extras]].
-====== Ubuntu 12.04 Precise Pangolin ====== 
-Ubuntu provides a ''​dokuwiki''​ package. 
- 
-The package will install three categories of files: 
-  * immutable files in ''/​usr/​share/​dokuwiki''​ 
-  * configuration files in ''/​etc/​dokuwiki''​ 
-  * data files and plugins in ''/​var/​lib/​dokuwiki''​ 
- 
-Install it. I used Ubuntu 12.04.5. 
- 
-<code bash>​sudo apt-get install -y dokuwiki</​code>​ 
- 
-This will prompt you for which webserver to use, Apache 2 or lighttpd. Pick one. 
-It will also prompt you for the admin password. ​ Choose one and enter it. 
- 
-If you're lucky, installation is done, and you can start using DokuWiki at [[http://​localhost/​dokuwiki]]. 
- 
-If not, you will need to make further changes to your webserver configuration. 
-I used Apache 2, and what the package does is add a symlink 
- 
-  /​etc/​apache2/​conf.d/​dokuwiki.conf -> /​etc/​dokuwiki/​apache.conf 
- 
-that maps the [[http://​localhost/​dokuwiki]]* URL space to DokuWiki and grants access only to localhost. 
-I edited the file to provide wider access and also had to edit rewrite rules elsewhere in my Apache configuration that counteracted this. 
- 
-After that, I could log in as admin and edit pages. 
- 
-Note that running [[http://​localhost/​dokuwiki/​install.php]] will report permission errors on directories that don't actually exist. 
- 
-This is harmless - it is just ''​install.php''​ not being smart enough to detect that the directories in question are located elsewhere. ​ You don't actually need to run ''​install.php''​ or fix these things like the text below suggests. 
  
 ====== Apache configuration for running DokuWiki in ~/​public_html ====== ====== Apache configuration for running DokuWiki in ~/​public_html ======
install/ubuntu.txt · Last modified: 2017-12-28 17:55 by Aleksandr