In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to build your own Wiki in Linux", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn how to build your own Wiki in Linux.
Wiki is a hypertext system that is open on the Internet and can be co-authored by multiple people. It was first developed by American Ward Cunningham in 1995. This hypertext system supports community-oriented collaborative writing, as well as a group that supports such writing.
Demand
DokuWiki doesn't need much dependency because it doesn't need a database. Here are the requirements of DokuWiki:
PHP 5.3.4 or later (PHP 7 + is recommended) one web server (Apache/Nginx/ anything else) and one VPS. Buy a cheap managed VPS, so you don't have to do it. You just need to contact the support team and they will install it for you. Guidance
Before you start, you should upgrade your system. Run the following command:
Sudo apt-get update & & sudo apt-get upgrade
Install Apache
We need a web server for our wiki. We use Apache in this tutorial, but you can also use Nginx or any other web server. Install apache with the following command:
Apt-get install apache2 install PHP7 and modules build your own wiki on Ubuntu using DokuWiki and build your own wiki on Ubuntu using DokuWiki
Next, if you haven't installed PHP yet, you should install PHP first. In this tutorial, we use PHP7. So install PHP7 and some other PHP modules using the following command:
Apt-get install php7.0-fpm php7.0-cli php-apcu php7.0-gd php7.0-xml php7.0-curl php7.0-json php7.0-mcrypt php7.0-cgi php7.0 libapache2-mod-php7.0 download and install DokuWiki
Here comes the main part-actually installing DokuWiki.
First, create a directory for your DokuWiki:
Mkdir-p / var/www/thrwiki
Go to the directory you just created:
Cd / var/www/thrwiki
Run the following command to download the latest (stable) DokuWiki:
Wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
Extract the .tgz file:
Tar xvf dokuwiki-stable.tgz
Change file / folder permissions:
Www-data:www-data-R / var/www/thrwikichmod-R 707 / var/www/thrwiki configure Apache for DokuWiki
Create a .conf file for your DokuWiki (we'll name it thrwiki.conf, but you can name it whatever you want) and open it with your favorite text editor. We use nano:
Touch / etc/apache2/sites-available/thrwiki.confln-s / etc/apache2/sites-available/thrwiki.conf / etc/apache2/sites-enabled/thrwiki.confnano / etc/apache2/sites-available/thrwiki.conf
Here's what's in thrwiki.conf:
ServerAdmin wikiadmin@thishosting.rocks DocumentRoot / var/www/thrwiki/ ServerName wiki.thishosting.rocks ServerAlias www.wiki.thishosting.rocks Options FollowSymLinks AllowOverride All Order allow,deny Allow from all ErrorLog / var/log/apache2/wiki.thishosting.rocks-error_log CustomLog / var/log/apache2/wiki.thishosting.rocks-access_log common
Edit the lines related to your server. Replace wikiadmin@thishosting.rocks and wiki.thishosting.rocks with your own data, and restart apache to make the changes take effect:
Systemctl restart apache2.service
That's it. The configuration is now complete. Now you can continue to install and configure DokuWiki through the front-end page http://wiki.thishosting.rocks/install.php. After the installation is complete, you can delete the install.php with the following command:
Rm-f / var/www/html/thrwiki/install.php above is all the content of the article "how to build your own Wiki in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.