install:ubuntu
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
install:ubuntu [2017-01-23 22:09] – added an option to host DokuWiki on localhost for testing purposes. See points 7a-c and 10a 141.48.172.201 | install:ubuntu [2017-12-28 17:55] – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Installation ====== | + | ====== Installation |
- | All one has to know is written on [[https:// | + | |
+ | 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 [[: | ||
- | ===== Custom Installation ===== | + | Please note that there is a dokuwiki package in the Ubuntu repositories. If you want to use it, please see the [[install: |
- | :!: 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:// | - Install Ubuntu Server 14.04 [[http:// | ||
- Update & Upgrade Ubuntu.< | - Update & Upgrade Ubuntu.< | ||
- | - Install Apache2 and PHP.< | + | - Install Apache2 and PHP.< |
- Enable Apache Rewrite module.< | - Enable Apache Rewrite module.< | ||
- Download and uncompress the latest stable release.< | - Download and uncompress the latest stable release.< | ||
Line 19: | Line 27: | ||
- Change permissions.< | - Change permissions.< | ||
- Change document root in Apache to point to / | - Change document root in Apache to point to / | ||
- | - If you want to host a DokuWiki server on localhost for testing purposes do NOT change the content of ''/ | + | - If you want to host a DokuWiki server on localhost for testing purposes do NOT change the content of ''/ |
DocumentRoot / | DocumentRoot / | ||
| | ||
</ | </ | ||
- | - enable new project by placing it into / | + | - enable |
- | - and then do <code bash> | + | - and then reload apache2 service<code bash> |
- Change AllowOverrides setting in Apache2 to use .htaccess files for security.< | - Change AllowOverrides setting in Apache2 to use .htaccess files for security.< | ||
- For directory ''/ | - For directory ''/ | ||
- Restart Apache2 service.< | - Restart Apache2 service.< | ||
- Visit '' | - Visit '' | ||
- | - If you decided to use host DokuWiki on localhost from point 7a), visit '' | + | - If you decided to host DokuWiki on localhost |
- Delete the install.php file after finished installing.< | - Delete the install.php file after finished installing.< | ||
- Needed for sending email (e.g. user registration): | - Needed for sending email (e.g. user registration): | ||
Line 37: | Line 45: | ||
===== Additional Installation Information ===== | ===== Additional Installation Information ===== | ||
- | For more information on installing and configuring Dokuwiki on Ubuntu, see [[debian_ubuntu_extras]]. | ||
- | ====== Ubuntu 12.04 Precise Pangolin ====== | ||
- | Ubuntu provides a '' | ||
- | The package will install three categories of files: | + | For more information on installing |
- | * immutable files in ''/ | + | |
- | * configuration files in ''/ | + | |
- | * data files and plugins in ''/ | + | |
- | Install it. I used Ubuntu 12.04.5. | + | ===== Apache configuration for running DokuWiki in ~/ |
- | + | ||
- | <code bash> | + | |
- | + | ||
- | This will prompt you for which webserver to use, Apache 2 or lighttpd. Pick one. | + | |
- | It will also prompt you for the admin password. | + | |
- | + | ||
- | If you're lucky, installation is done, and you can start using DokuWiki at [[http:// | + | |
- | + | ||
- | 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 | + | |
- | + | ||
- | / | + | |
- | + | ||
- | that maps the [[http:// | + | |
- | 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:// | + | |
- | + | ||
- | This is harmless - it is just '' | + | |
- | + | ||
- | ====== Apache configuration for running DokuWiki in ~/ | + | |
This works with Ubuntu 11.04 natty: | This works with Ubuntu 11.04 natty: | ||
Line 81: | Line 60: | ||
- Restart //apache// with< | - Restart //apache// with< | ||
- | + | ===== Ubuntu Server 14.04 and lighttpd ===== | |
- | ======Ubuntu Server 14.04 and lighttpd | + | |
- Install lighttpd and php. <code bash> | - Install lighttpd and php. <code bash> | ||
Line 98: | Line 76: | ||
sudo / | sudo / | ||
</ | </ | ||
- | - That's it. Enjoy your own DokuWiki server. (Test if it works on your http:// | + | - That's it. Enjoy your own DokuWiki server. (Test if it works on your %%http:// |
install/ubuntu.txt · Last modified: 2024-01-19 15:49 by Aleksandr