dokuwiki-install/README.md

51 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2024-10-13 15:13:33 +02:00
## Dokuwiki install script for Ubuntu 22.04 and 24.04 server.
2024-10-13 01:16:36 +02:00
### Prerequisites
2024-10-13 14:06:02 +02:00
Ubuntu 22.04 or higher with Nginx and Php-Fpm. Nginx with Php-Fpm can be installed from
[\[Here\]](https://git.x-files.dk/ubuntu-web-server/nginx-install)
2024-10-13 02:23:48 +02:00
2024-10-13 14:06:02 +02:00
**Important:**\
2024-10-13 15:15:56 +02:00
This the script will only work if you installed Nginx using the script located [\[Here\]](https://git.x-files.dk//ubuntu-web-server/nginx-install)
2024-10-13 01:16:36 +02:00
### Download the script
```
2024-10-13 14:06:02 +02:00
git clone https://git.x-files.dk/ubuntu-web-application/dokuwiki-install.git
2024-10-13 01:16:36 +02:00
```
### Usage
cd dokuwiki-install
sudo ./dokuwikiinstall <domain name>
### Example
sudo ./dokuwikiinstall wiki.something.xyz
This will create a Dokuwiki site running on port 80 with the domain name you chose under the installation.
Don't worry though this can easily be fixed by modifying the Nginx configuration later.
If you need an example on how to configure Nginx to run this on port 443 I an example
2024-10-13 14:06:02 +02:00
[\[Here\]](https://git.x-files.dk/ubuntu-web-server/nginx-install/src/branch/main/cfg-apps/dokuwiki.443.conf)
2024-10-13 01:16:36 +02:00
### Configuration
Once the script is done browse to http://<i></i>wiki.hostname.xyz/install.php and fill out the mandatory fields marked with green.
<p align="center" width="100%">
<img src="https://git.x-files.dk/assets/dokuwiki-configuration.png" alt="Dokuwiki Configuration"/>
</p>
### Post install
This is needed in order to change some configuration settings in Nginx after you are done with the setup screen.
cd dokuwiki-install
sudo ./postinstall
### Troubleshooting
Most issues will probably be caused by the fact that we all set up and configure Nginx diffrently. If you encounter problems I would suggest you look at the Nginx configuration I use
2024-10-13 14:06:02 +02:00
[\[Here\]](https://git.x-files.dk/ubuntu-web-server/nginx-install/src/branch/main/cfg/nginx.conf)
2024-10-13 01:16:36 +02:00
and also the default "sites-enabled" Nginx configurarion I use
2024-10-13 14:06:02 +02:00
[\[Here\]](https://git.x-files.dk/ubuntu-web-server/nginx-install/src/branch/main/cfg/default)
2024-10-13 01:16:36 +02:00
when you start troubleshooting.
### More guides
2024-10-13 14:06:02 +02:00
More guides can be found on [\[wiki.x-files.dk\]](https://wiki.x-files.dk)
2024-10-13 01:16:36 +02:00
### Last tested
2024-10-13 14:06:02 +02:00
October 10th 2024 on Ubuntu 24.04.