dokuwikipi_-_host_your_own_wiki_site_like_this_one
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
dokuwikipi_-_host_your_own_wiki_site_like_this_one [2016/07/23 20:45] – walkeradmin | dokuwikipi_-_host_your_own_wiki_site_like_this_one [2023/03/09 22:35] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | these are rough notes, this page will be formatted and checked soon...... | + | ====== DokuWiki Install |
- | + | ||
- | + | ||
- | ===== DokuWiki Install ===== | + | |
\\ | \\ | ||
\\ | \\ | ||
Line 76: | Line 73: | ||
sudo nano / | sudo nano / | ||
\\ | \\ | ||
- | Add this section\\ | ||
\\ | \\ | ||
- | < | + | Put this at the end, and comment out any other similar entries. |
- | \\ | + | |
- | Options Indexes FollowSymLinks | + | |
- | \\ | + | |
- | AllowOverride All | + | |
- | \\ | + | |
- | Require all granted | + | |
\\ | \\ | ||
+ | < | ||
+ | < | ||
+ | Options Indexes FollowSymLinks | ||
+ | AllowOverride All | ||
+ | Require all granted | ||
</ | </ | ||
+ | </ | ||
\\ | \\ | ||
\\ | \\ | ||
- | | + | |
- | \\ | + | |
- | You should have a section that looks like this: | + | |
- | \\ | + | |
- | < | + | |
- | Options FollowSymLinks | + | |
- | AllowOverride All | + | |
- | </ | + | |
- | < | + | |
- | Options Indexes FollowSymLinks MultiViews | + | |
- | AllowOverride All | + | |
- | Order allow, | + | |
- | allow from al | + | |
- | </ | + | |
- | \\ | + | |
- | For some reason I also had to duplicate this in the following file: | + | |
/ | / | ||
- | Change the DocumentRoot line to / | ||
- | \\ | ||
- | Don't forget to restart Apache before testing these changes\\ | ||
- | sudo / | ||
\\ | \\ | ||
+ | < | ||
+ | < | ||
+ | # The ServerName directive sets the request scheme, hostname and port that | ||
+ | # the server uses to identify itself. This is used when creating | ||
+ | # redirection URLs. In the context of virtual hosts, the ServerName | ||
+ | # specifies what hostname must appear in the request' | ||
+ | # match this virtual host. For the default virtual host (this file) this | ||
+ | # value is not decisive as it is used as a last resort host regardless. | ||
+ | # However, you must set it for any further virtual host explicitly. | ||
+ | #ServerName www.example.com | ||
+ | ServerAdmin al@nwalker.co.uk | ||
+ | ServerName wiki.alanwalker.eu | ||
+ | DocumentRoot / | ||
+ | DirectoryIndex doku.php | ||
+ | </ | ||
+ | # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, | ||
+ | # error, crit, alert, emerg. | ||
+ | # It is also possible to configure the loglevel for particular | ||
+ | # modules, e.g. | ||
+ | #LogLevel info ssl:warn | ||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
- | chmod the following | + | # For most configuration files from conf-available/, |
- | + | # enabled or disabled at a global level, it is possible to | |
- | chmod -R 777 | + | # include a line for only one particular virtual host. For example |
+ | # following | ||
+ | # after it has been globally disabled with " | ||
+ | # | ||
+ | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet | ||
+ | </ | ||
+ | \\ | ||
+ | Don't forget to restart Apache before testing these changes\\ | ||
+ | sudo / | ||
+ | \\ | ||
+ | \\ | ||
+ | To test the Apache settings, navigate to the following page: | ||
+ | http:// | ||
+ | \\ | ||
+ | \\ | ||
+ | If you see the page, then your security is not right, if you get an access error, then the apache security is working. | ||
+ | \\ | ||
+ | \\ | ||
+ | Now you can navigate to your IP Address, and you should see an error, with a link that says to run the installer, click this link | ||
+ | \\ | ||
+ | \\ | ||
+ | You will see some errors regarding folder access | ||
+ | \\ | ||
+ | \\ | ||
{DOCUMENT_ROOT}/ | {DOCUMENT_ROOT}/ | ||
•{DOCUMENT_ROOT}/ | •{DOCUMENT_ROOT}/ | ||
Line 131: | Line 153: | ||
•{DOCUMENT_ROOT}/ | •{DOCUMENT_ROOT}/ | ||
•{DOCUMENT_ROOT}/ | •{DOCUMENT_ROOT}/ | ||
+ | \\ | ||
+ | \\ | ||
+ | You have to chmod each of these folders, it is good practice to work out the exact permissions required, but for testing purposes you can give all rights which is 777 | ||
+ | \\ | ||
+ | \\ | ||
+ | So for the first error, {DOCUMENT_ROOT}/ | ||
+ | chmod -R 777 /conf | ||
+ | |||
+ | You need to repeat this for each line. | ||
+ | \\ | ||
+ | \\ | ||
+ | Click the //**Restart installer**// | ||
+ | \\ | ||
+ | \\ | ||
+ | DONT FORGET TO RUN THE MYSQL SECURE INSTALLATION | ||
+ | [[http:// | ||
+ | \\ | ||
+ | \\ |
dokuwikipi_-_host_your_own_wiki_site_like_this_one.txt · Last modified: 2023/03/10 16:56 by walkeradmin