{"id":1355,"date":"2017-09-13T10:58:35","date_gmt":"2017-09-13T15:58:35","guid":{"rendered":"https:\/\/it.thelibrarie.com\/weblog\/?p=1355"},"modified":"2017-09-27T12:37:49","modified_gmt":"2017-09-27T17:37:49","slug":"xibo-install-ubuntu-17-04","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2017\/09\/xibo-install-ubuntu-17-04\/","title":{"rendered":"Xibo Install Ubuntu 17.04"},"content":{"rendered":"<p>Technically this guide could be used for 16.04 and 16.10 (maybe even 17.10 when it arrives), but I tested on 17.04. I wanted to get Xibo installed to stop using a monthly subscription for terrible service, save some money, be the hero, and get a slightly larger bonus.<\/p>\n<p><strong>Install Ubuntu 17.04<\/strong><br \/>\n<code>LAMP<\/code><br \/>\n<code>Mail<\/code><br \/>\n<code>Standard<\/code><br \/>\n<code>OpenSSH<\/code><\/p>\n<p><strong>Enable Root, SSHD Config (optional, may make your configuration less secure)<\/strong><br \/>\n<code>sudo passwd root<\/code><br \/>\n<code>newpassword<\/code><br \/>\n<code>sudo su -<\/code><br \/>\n<code>nano \/etc\/ssh\/sshd_config<\/code><br \/>\n<code>PermitRootLogin yes<\/code><br \/>\n<code>Ctrl x<\/code><br \/>\n<code>y<\/code><br \/>\n<code>service sshd restart<\/code><\/p>\n<p><strong>Update Your Server<\/strong><br \/>\n<code>apt-get update &amp;&amp; apt-get dist-upgrade<\/code><br \/>\n<code>y<\/code><\/p>\n<p><strong>Install PHP 5.6<\/strong><br \/>\nI know, by default LAMP installs PHP 7 now. We need PHP 5.6+ but less than 7.<br \/>\n<code>add-apt-repository ppa:ondrej\/php<\/code><br \/>\n<code>apt-get update<\/code><br \/>\n<code>apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-mbstring php7.0-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0<\/code><\/p>\n<p><strong>Install PHP 7 (NOTE: XIBO CURRENTLY DOES NOT SUPPORT PHP 7+, SO THESE NOTES ARE TO BE DISREGARDED)<\/strong><br \/>\n<code>apt-get install php-gd php-mcrypt php-soap php-dom php-curl php-zip<\/code><\/p>\n<p><strong>Switch From PHP7 to PHP5.6<\/strong><br \/>\n<code>a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart<\/code><br \/>\n<code>update-alternatives --set php \/usr\/bin\/php5.6<\/code><\/p>\n<p><strong>Switch From PHP5.6 to PHP7 (OPTIONAL)<\/strong><br \/>\n<code>a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart<\/code><br \/>\n<code>update-alternatives --set php \/usr\/bin\/php7.0<\/code><\/p>\n<p><strong>Download XIBO, Change Permissions on Apache (Currently version 1.8.2)<\/strong><br \/>\n<code>wget https:\/\/github.com\/xibosignage\/xibo-cms\/releases\/download\/1.8.2\/xibo-cms-1.8.2.tar.gz<\/code><br \/>\n<code>tar xvzf xibo-cms-1.8.2.tar.gz<\/code><br \/>\n<code>mv xibo-cms-1.8.2 \/var\/www\/html\/xibo-server<\/code><br \/>\n<code>chown -R www-data:www-data \/var\/www\/html\/xibo-server<\/code><br \/>\n<code>apache2ctl restart<\/code><\/p>\n<p><strong>Create XIBO Uploads Directory<\/strong><br \/>\n<code>mkdir \/var\/www\/xibouploads<\/code><br \/>\nMy Default www (documentroot) location is \/var\/www\/html, so this created directory is outside of the www realm (good thing).<br \/>\n<code>chown -R www-data:www-data \/var\/www\/xibouploads<\/code><\/p>\n<p><strong>Configure XIBO Installation<\/strong><br \/>\nOpen a web browser to http:\/\/YOURSERVERIP\/xibo-server\/web\/install\/index.php<br \/>\nYou may want to change your document root or apache virtual host at a later time because remembering http:\/\/YOURSERVERIP\/xibo-server\/web\/index.php\/login is a PITA.<br \/>\nFollow the <del datetime=\"2017-09-13T15:36:36+00:00\">white rabbit<\/del> wizard to complete the setup.<\/p>\n<p><strong>Edit Apache and Redirect<\/strong><br \/>\nI ended up creating a virtual host for my system and adding a redirect (there was a pesky &#8220;I want to load \/login instead of index.php&#8221; issue).<br \/>\n<code>nano \/etc\/apache2\/sites-enabled\/000-default.conf<\/code><br \/>\nAt the bottom add:<\/p>\n<blockquote><p>&lt;VirtualHost *:80&gt;<br \/>\nServerAdmin ITSUPPORT@yourcompany.tld<br \/>\nDocumentRoot \/var\/www\/html\/xibo-server\/web<br \/>\nServerName xibo<br \/>\nServerAlias xibo.yourdomain.local<br \/>\n&lt;Directory &#8220;\/var\/www\/html\/xibo-server\/web&#8221;&gt;<br \/>\nOptions -Indexes +FollowSymLinks -MultiViews<br \/>\nAllowOverride All<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\n&lt;\/Directory&gt;<br \/>\n&lt;\/VirtualHost&gt;<\/p><\/blockquote>\n<p>Enable modrewrite in apache with a2enmod rewrite, or cp \/etc\/apache2\/mods-available\/rewrite.load \/etc\/apache2\/mods-enabled\/ | apache2ctl restart<br \/>\n<code>sudo a2enmod rewrite<\/code><\/p>\n<p>Add the \/login redirect<br \/>\n<code>nano \/var\/www\/html\/xibo-server\/web\/.htaccess<\/code><br \/>\nAt the bottom add the following:<\/p>\n<blockquote><p>Redirect \/login\/ \/index.php<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Technically this guide could be used for 16.04 and 16.10 (maybe even 17.10 when it arrives), but I tested on 17.04. I wanted to get Xibo installed to stop using a monthly subscription for terrible service, save some money, be the hero, and get a slightly larger bonus. Install Ubuntu 17.04 LAMP Mail Standard OpenSSH &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2017\/09\/xibo-install-ubuntu-17-04\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Xibo Install Ubuntu 17.04<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1355","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1355"}],"version-history":[{"count":6,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1355\/revisions"}],"predecessor-version":[{"id":1375,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1355\/revisions\/1375"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}