Dokuwiki on the Pine64 - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: General Discussion on PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=3) +--- Thread: Dokuwiki on the Pine64 (/showthread.php?tid=943) |
Dokuwiki on the Pine64 - JCMPine64 - 05-04-2016 I got Dokuwiki running on PHP7 and Nginx, and it rocks. I have my main wiki running on a RasPi2 and page loads take a second or two and page saves take 2-3. On the Pine64 2GB it is under a second. What a difference! If anyone is interested, I can post the instructions. RE: Dokuwiki on the Pine64 - tllim - 05-05-2016 (05-04-2016, 08:31 PM)JCMPine64 Wrote: I got Dokuwiki running on PHP7 and Nginx, and it rocks. I have my main wiki running on a RasPi2 and page loads take a second or two and page saves take 2-3. On the Pine64 2GB it is under a second. What a difference! Please post the instruction and I will pin the thread. RE: Dokuwiki on the Pine64 - JCMPine64 - 05-05-2016 Installing Dokuwiki on the Pine64 I started with a 2GB Pine64 running longsleep's latest xenial ubuntu version. For these instructions: Server address: 192.168.1.206 Wiki name: New Wiki Wiki data file location: /mount/media/Media/Wiki ====== DokuWiki Setup ====== ===== Install and configure PHP7 ===== (If installing on RaspberryPi using PHP5, see the [[DokuWiki Setup#Source Information|Source Information Section]]) Install PHP7 Code: sudo apt-get install php7.0 Tighten up some security in php.ini by uncommenting and altering cgi.fix entry Code: sudo nano /etc/php/7.0/fpm/php.ini Ensure that PHP processor looks for connections using a socket instead of a port on our local interface. Code: sudo nano /etc/php/7.0/fpm/pool.d/www.conf Restart PHP7 Code: sudo service php7.0-fpm restart ===== Install and configure Nginx ===== Install Nginx Code: sudo apt-get install nginx Create the www directory Code: cd /usr/share/nginx Visit the server address in browser to verify that nginx is running and displays a welcome screen Code: 192.168.1.206 Configure nginx default server block Code: sudo nano /etc/nginx/sites-available/default Alter file to look like this: Code: server { Restart Nginx Code: sudo service nginx restart ===== Test PHP processing ===== Create test file Code: sudo sh -c 'echo "<?php phpinfo(); ?>" > /usr/share/nginx/www/info.php' In browser type Code: 192.168.1.206/info.php If everything is correctly configured, a PHP config screen will be displayed. Remove the test file Code: sudo rm /usr/share/nginx/www/info.php ===== Install and configure Dokuwiki ===== Download the DokuWiki file into the home directory Code: cd ~ Extract the files and then delete the tarball Code: tar xzvf dokuwiki-stable.tgz Change the name of the directory and move it to the web root Code: mv doku* wiki Change the web root directory and change ownership Code: cd /usr/share/nginx/www/wiki Start Dokuwiki installer in browser Code: 192.168.1.206/wiki/install.php Fill in the name of the wiki and other items. Save. (You may get a warning about the data directory. Taken care of next.) ===== Move wiki page file location ===== DokuWiki files are located by default at: Code: /usr/share/nginx/www/wiki If starting fresh, move the data directory to the desired location: Code: sudo cp -R data /mount/media/Media/Wiki Change the data directory to point to the wiki data directory Code: cd /usr/share/nginx/www/wiki/conf Local.php will look something like this Code: $conf['title'] = 'New Wiki'; ===== Plugins ===== - Arctic Template - Avatar (sets avatar for discussion threads) - Add new page (creates input field for creating new pages) - Comment (allows edit comments in pages that don't display on page) - Discussion Plugin (adds discussion sections to all pages) - Color syntax (allows use of color text) - Searchindex manager (rebuild site index - useful after first install if using pre-existing data directory) - Wrap (text formatting) - Tag (page tagging) - Pagelist (required by tag plugin) - Sortablejs (table sorting) - Rater (page rating) ===== Configuration ===== - Set "Maximum section edit level" = 0 - Set "Minimum headers for TOC" = 10 - Set the "From" email address to NewDokuWiki@gmail.com (need to have email set up on Pine64. See next post.) ===== Arctic Template Mods ===== - Set sidebar to 'right' ====== Source Information ====== Install Dokuwiki on Ubuntu Using PHP5 Move Data Directory RE: Dokuwiki on the Pine64 - JCMPine64 - 05-07-2016 ====== Email Setup ====== The password for gmail will be readable by root, so the best thing to do is to turn on two-step verification in Gmail. Install Mail (mpack is for mail attachments, which I didn't install): Code: sudo apt-get install ssmtp Configure Mail: Edit and modify/add lines as necessary Code: sudo nano /etc/ssmtp/ssmtp.conf Code: mailhub=smtp.gmail.com:587 No need to restart the mail server. Test Email: Code: echo "sample text" | mail -s "Subject" username@domain.com (username@domain.com is the destination address) If you want to have Crontab email after each activity, set Crontab to use a specific email address: Code: sudo crontab -e ====== Source Information ====== http://www.sbprojects.com/projects/raspberrypi/exim4.php https://rpi.tnet.com/project/faqs/smtp [url= https://rpi.tnet.com/project/faqs/smtp][/url] RE: Dokuwiki on the Pine64 - Luke - 05-07-2016 Easy to understand and well documented process. Thanks! will give this a try in the near future RE: Dokuwiki on the Pine64 - swinging - 01-06-2017 If anyone is interested, I can post the instructions. บาคาร่าผ่านเว็บ RE: Dokuwiki on the Pine64 - dkryder - 01-06-2017 php5 is available in the debian build. php7 is unable to be found. rather that fight whatever battles necessary to eventually get a php7 enviroment in place is using php5 o.k. and i guess it does not present any problems? edit: i used synaptic to install php5 and debian goes ahead and installs apache at the same time. interestingly now when i enter ip of pine64 board i get an apache welcome page instead of nginx , which i had installed last night prior to anything else and at first got a nginx welcome screen. i wonder why apache now overrules nginx. both are running |