install:ubuntu
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install:ubuntu [2017-07-21 23:50] – ajout du paquet php-xml 24.85.236.152 | install:ubuntu [2024-01-19 15:49] (current) – old revision restored (2022-07-08 22:56) Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Installation ===== | + | ====== Installation |
+ | **Please note** | ||
+ | The repository of Ubuntu has still the 2018-04-22 version of DokuWiki. This version is not recommended. Please install the newest version of DokuWiki. The instruction below uses a version downloaded directly from dokuwiki.org. | ||
+ | |||
+ | |||
+ | * [[: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | =====Ubuntu 14.04, and 16.04?===== | ||
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 [[: | 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 [[: | ||
- | :!: 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 | + | 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 | ||
+ | |||
+ | 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. | ||
- Install Ubuntu Server 14.04 [[http:// | - Install Ubuntu Server 14.04 [[http:// | ||
Line 35: | Line 54: | ||
===== 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 79: | Line 69: | ||
- 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 96: | Line 85: | ||
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:// |
+ | |||
+ | ===== Installation of DokuWiki using apt-get ===== | ||
+ | |||
+ | < | ||
+ | Check the date, if the date is over a couple months then I would highly recommend stopping here and trying the above methods for installation. | ||
+ | < | ||
+ | If you insist on using the above package then the steps below will assist getting your installation operational. | ||
+ | |||
+ | Note: | ||
+ | - As of 2020-01-02 the package is dated **2018-04-22** which is quite out of date. | ||
+ | - I am concerned that: | ||
+ | - more items in / | ||
+ | - more items in / | ||
+ | - Initially there are a number of PHP warnings that appear to pop up occasionally when first exploring the wiki, however they seem to go away and not return (often). These issues are documented on the DokuWiki web site, and claim to be fixed, likely the issues will go away after the DokuWiki install package gets updated. | ||
+ | |||
+ | Assuming that you have already installed apache and PHP (see above) and they are operating correctly. | ||
+ | |||
+ | The following commands will require **sudo** prefix or require you to be **su** (naughty). | ||
+ | < | ||
+ | |||
+ | Folders of interest | ||
+ | * / | ||
+ | * / | ||
+ | * / | ||
+ | |||
+ | The apt package has number of problems which you will need to address: | ||
+ | < | ||
+ | chown www-data: | ||
+ | chown www-data: | ||
+ | chown www-data: | ||
+ | ln -s / | ||
+ | ln -s / | ||
+ | |||
+ | Create virtual directory for apache | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | Options +FollowSymLinks | ||
+ | AllowOverride All | ||
+ | DirectoryIndex index.php | ||
+ | Order allow, | ||
+ | Allow from all | ||
+ | </ | ||
+ | AliasMatch ^/ | ||
+ | AliasMatch ^/ | ||
+ | |||
+ | Tell apache to enable the virtual folder (Note: use a2dissite to disable). | ||
+ | < | ||
+ | systemctl reload apache2</ | ||
+ | Open your web browser and configure DokuWiki (You will likely get warnings if you have PHP 7.x). | ||
+ | < |
install/ubuntu.1500673834.txt.gz · Last modified: 2017-07-21 23:50 by 24.85.236.152