Loading...
 

Edit Section: Ubuntu 16.04 LTS for Human Beans


x
 
!!# Tweaks to run Tiki Wiki CMS
Allow runing mod rewrite in Apache
!!!# Fix apache2.4 default settings to run Tiki
Edit /etc/apache2/sites-enabled/000-default
and change docroot from /var/www to /var/ww/tiki or your custom path, AllowOVerride from None to All, and ensure that the syntax to allow access to override .htaccess file is set with the syntax for Apache 2.4 ("Require all granted") and not with the former one for Apache2.2 ("Order allow,deny" and "Allow from all")
The file should be left as like:
{CODE(colors="shell", ln="1")}
root@coprinus:~# cat /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/html/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        #Order allow,deny
        #Allow from all
        Require all granted
    </Directory>
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
</VirtualHost>
{CODE}
~tc~::~/tc~
enable also the mod rewrite in Apache
{CODE(colors="shell", ln="1", caption="commands in a console")}
sudo a2enmod rewrite
sudo service apache2 restart
{CODE}
!!!# Install elasticsearch 5.x from repos
See:
https://www.elastic.co/guide/en/elasticsearch/reference/5.0/deb.html#deb-repo
Commands on a console:
{CODE(colors="shell")}
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
sudo apt-get update && sudo apt-get install elasticsearch
{CODE}
Ubuntu 16.04 uses systemd, as it can be queried with:
{CODE()}
ps -p 1
{CODE}
Running Elasticsearch with systemd
To configure Elasticsearch to start automatically when the system boots up, run the following commands:
{CODE(colors="shell")}
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
{CODE}
Info provided in the console standard output:
{QUOTE()}
Synchronizing state of elasticsearch.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable elasticsearch
Created symlink from /etc/systemd/system/multi-user.target.wants/elasticsearch.service to /usr/lib/systemd/system/elasticsearch.service.
{QUOTE}
Elasticsearch can be started and stopped as follows:
{CODE(colors="shell")}
sudo systemctl start elasticsearch.service
sudo systemctl stop elasticsearch.service
{CODE}
These commands provide no feedback as to whether Elasticsearch was started successfully or not. Instead, this information will be written in the log files located in /var/log/elasticsearch/.
By default the Elasticsearch service doesn’t log information in the systemd journal. To enable journalctl logging, the ~np~--quiet~/np~ option must be removed from the ExecStart command line in the elasticsearch.service file.
When systemd logging is enabled, the logging information are available using the journalctl commands:
To tail the journal:
{CODE(colors="shell")}
sudo journalctl -f
{CODE}
To list journal entries for the elasticsearch service:
{CODE(colors="shell")}
sudo journalctl --unit elasticsearch
{CODE}
To list journal entries for the elasticsearch service starting from a given time:
{CODE(colors="shell")}
sudo journalctl --unit elasticsearch --since  "2016-10-30 18:17:16"
{CODE}
Check man journalctl or https://www.freedesktop.org/software/systemd/man/journalctl.html for more command line options.
!!!!# Install also kibana 5.x from repos
See: 
* https://www.elastic.co/guide/en/kibana/5.0/install.html
* https://www.elastic.co/guide/en/kibana/5.0/deb.html
If you don't have that yet, see above to get the gpg-key, the apt-transport-https package and the repository url.
Commands on a console:
{CODE(colors="shell")}
sudo apt-get install elasticsearch
{CODE}
Running Kibana with systemd
To configure Elasticsearch to start automatically when the system boots up, run the following commands:
{CODE(colors="shell")}
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable kibana.service
{CODE}
Info provided in the console standard output:
{QUOTE()}
Synchronizing state of kibana.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable kibana
{QUOTE}
Kibana can be started and stopped as follows:
{CODE(colors="shell")}
sudo systemctl start kibana.service
sudo systemctl stop kibana.service
{CODE}
These commands provide no feedback as to whether Kibana was started successfully or not. Instead, this information will be written in the log files located in /var/log/kibana/.
Change HighlighterToggle Highlighter
  • Sitemap
To translate, do not change the language and the content. Instead, create a new translation in the new language.
The namespace for a page is guessed automatically from the page name. However, some exceptions may arise. This option allows to override the namespace.

Search and select what you are looking for from the options that appear.

No matching results.

days
Image Seed: noun \ˈsēd\ : the beginning of something which continues to develop or grow

Knowledge seeds

Switch Language