<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vanilla on Ubuntu 18.04 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/vanilla-on-ubuntu-18-04/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 18 Mar 2019 21:46:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install Vanilla Forum on Ubuntu 18.04</title>
		<link>https://www.osradar.com/install-vanilla-forum-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/install-vanilla-forum-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Mon, 18 Mar 2019 21:46:13 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Vanilla on Ubuntu 18.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11423</guid>

					<description><![CDATA[<p>Vanilla is an opensoure discussion forum  the installation is also very easy. please follow the steps to get an successful vanilla forum installation. maybe your  need some per-installed packages  to avoide any issues Requirements PHP version 7.0 or newer. PHP extensions mbstring, cURL, GD, and PDO, MySQLi, OpenSSL. MySQL version 5.6 or newer (or Percona/MariaDB [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-vanilla-forum-on-ubuntu-18-04/">Install Vanilla Forum on Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Vanilla is an opensoure discussion forum  the installation is also very easy. please follow the steps to get an successful vanilla forum installation. maybe your  need some per-installed packages  to avoide any issues</p>
<p><strong>Requirements</strong></p>
<p>PHP version 7.0 or newer.<br />
PHP extensions mbstring, cURL, GD, and PDO, MySQLi, OpenSSL.<br />
MySQL version 5.6 or newer (or Percona/MariaDB equivalent).<br />
Web server software (Nginx, Apache &#8230;).<br />
SSL encryption.</p>
<p><strong>Hosts :</strong></p>
<pre>127.0.0.1 localhost
127.0.1.1 mohamed-pc
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.2.30 vanilla.com
~</pre>
<p><strong>System Info</strong></p>
<pre>osradar@ubuntu-bionic:~$ uname -a 
Linux ubuntu-bionic 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux</pre>
<p><strong>Network</strong></p>
<pre>osradar@ubuntu-bionic:~$ ip a 

2: enp0s3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 02:fc:ab:43:0a:1b brd ff:ff:ff:ff:ff:ff
inet 192.168.0.101/24 brd 192.168.0.255 scope global dynamic enp0s3
valid_lft 6342sec preferred_lft 6342sec
inet6 fe80::fc:abff:fe43:a1b/64 scope link 
valid_lft forever preferred_lft forever
osradar@ubuntu-bionic:~$</pre>
<p>&nbsp;</p>
<p><strong>Configure Time zone</strong></p>
<pre>osradar@ubuntu-bionic:~$ sudo dpkg-reconfigure tzdata

Current default time zone: 'Europe/Amsterdam'
Local time is now: Wed Mar 13 19:30:22 CET 2019.
Universal Time is now: Wed Mar 13 18:30:22 UTC 2019.</pre>
<p>&nbsp;</p>
<p><strong>Update your system to the the last leve</strong>l</p>
<pre><code spellcheck="false">sudo apt update &amp;&amp; sudo apt upgrade -y
</code></pre>
<h3><strong>1-Install PHP and Needed  Extensions</strong></h3>
<p>The last  supported PHP for  Ubuntu 18.04 is the 7.2 version</p>
<p>Please add this  to your source list :</p>
<pre>deb http://ppa.launchpad.net/ondrej/php/ubuntu bionic main
deb-src http://ppa.launchpad.net/ondrej/php/ubuntu bionic main</pre>
<p>&nbsp;</p>
<p><strong>Install PHP</strong></p>
<p>The last step to install LAMP on Ubuntu 18.04 is to install the PHP preprocessor.</p>
<p>PHP adds server-side web page processing that enables dynamic web pages.</p>
<p>Run the following command to install PHP.</p>
<pre>apt install php <code spellcheck="false">php7.2-cli php7.2-fpm php7.2-common php7.2-mbstring php7.2-curl php7.2-gd php7.2-mysql</code></pre>
<p>Next, we need to tell Apache to serve PHP pages first.</p>
<p>Open /etc/apache2/mods-enabled/dir.conf file and change it to have index.php listed first.</p>
<pre>&lt;IfModule mod_dir.c&gt;

DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm

&lt;/IfModule&gt;</pre>
<p>Finally, we need to restart the Apache Web Server.</p>
<pre>systemctl restart apache2</pre>
<p>&nbsp;</p>
<p><strong>Show InstalledPHP version and php Modules</strong></p>
<p>With this command you can do it</p>
<pre>#php -m [PHP Modules] calendar Core ctype curl ....... 
#php --version PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, 
Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.15-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies</pre>
<h3><img loading="lazy" class="alignnone size-full wp-image-11426" src="https://www.osradar.com/wp-content/uploads/2019/03/vanilla12.png" alt="" width="1920" height="1050" srcset="https://www.osradar.com/wp-content/uploads/2019/03/vanilla12.png 1920w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla12-300x164.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla12-768x420.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla12-1024x560.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla12-696x381.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla12-1068x584.png 1068w" sizes="(max-width: 1920px) 100vw, 1920px" /> <strong> 2-Install MariaDB Server</strong></h3>
<p>You need a database Server, can be Mariadb server or Mysql.</p>
<p>To install latest stable  mariadbserver and mariadb client you can do it on this way.</p>
<p>please  edit /etc/apt/sources.list.d/mariadb.list</p>
<p>and add   on it</p>
<pre># http://downloads.mariadb.org/mariadb/repositories/
deb [arch=amd64] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.4/ubuntu bionic main
deb-src http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.4/ubuntu bionic main</pre>
<p>Please  update   the  repo lists</p>
<pre>#sudo apt -get  update</pre>
<p><strong>Now  install  the packages</strong></p>
<p>&nbsp;</p>
<pre>osradar@ubuntu-bionic:~$ sudo apt-get install mariadb-server mariadb-client 
Reading package lists... Done
Building dependency tree 
Reading state information... Done

</pre>
<p>&nbsp;</p>
<p><strong>Set Root Mysql password : </strong></p>
<p>How to set root mysql password ?</p>
<pre>osradar@ubuntu-bionic:~$ sudo mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y 
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
... Success!

Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
... Success!

Cleaning up...

All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!
osradar@ubuntu-bionic:~$ 



</pre>
<p><strong>Enable MariaDB to start on boot and then start the service:</strong></p>
<p>sudo systemctl enable mariadb<br />
sudo systemctl restart mariadb</p>
<p><strong>Connect and Create Database and database user related. </strong></p>
<p>Connect as root mysql user  predefined before :</p>
<pre>root@ubuntu-server-18:/var/log# mysql  -u root -p 
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 57
Server version: 10.4.3-MariaDB-1:10.4.3+maria~bionic-log mariadb.org binary distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]&gt; create database vanilla;
Query OK, 1 row affected (0.001 sec)

MariaDB [(none)]&gt; CREATE USER 'vanillauser'@'localhost' IDENTIFIED BY 'vanillapass';
Query OK, 0 rows affected (0.003 sec)

MariaDB [(none)]&gt; GRANT ALL ON vanilla.* TO 'vanillauser'@'localhost';
Query OK, 0 rows affected (0.002 sec)

MariaDB [(none)]&gt; FLUSH PRIVILLEGES;
</pre>
<p>&nbsp;</p>
<h3><strong>3-Install Apache Server</strong></h3>
<p>Lets Install The latest apache Servers from Ubuntu 18 repo</p>
<pre>#apt install apache2</pre>
<p>&nbsp;</p>
<p><strong>3-1-Enable and Start  apache2</strong></p>
<pre>root@ubuntu-server-18:~# systemctl enable apache2
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
root@ubuntu-server-18:~# systemctl start apache2
root@ubuntu-server-18:~#</pre>
<p>&nbsp;</p>
<p><strong>Check apache2  with  http://IP</strong></p>
<p><img loading="lazy" class="alignnone size-full wp-image-11472" src="https://www.osradar.com/wp-content/uploads/2019/03/vanilla15.png" alt="" width="1401" height="766" srcset="https://www.osradar.com/wp-content/uploads/2019/03/vanilla15.png 1401w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla15-300x164.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla15-768x420.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla15-1024x560.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla15-696x381.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla15-1068x584.png 1068w" sizes="(max-width: 1401px) 100vw, 1401px" /></p>
<p><strong>How to Create VirtualHost in Ubuntu 18 ? </strong></p>
<p>to make Apache serving contents, it&#8217;s necessary to create a virtual host file with the correct directives. Instead of modifying the default configuration file located at /etc/apache2/sites-available/000-default.conf directly,<br />
let&#8217;s make a new Virtualhost at /etc/apache2/sites-available/example.com.conf:</p>
<p>sudo vi /etc/apache2/sites-available/vanilla.com.conf</p>
<p>Paste in the following configuration but updated the new directory and domain name:<br />
/etc/apache2/sites-available/vanilla.com.conf</p>
<pre>&lt;VirtualHost *:80&gt;
ServerAdmin admin@vanilla.com
ServerName vanilla.com
ServerAlias www.vanilla.com
DocumentRoot /var/www/vanilla.com/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
&lt;/VirtualHost&gt;</pre>
<p>Save and exit</p>
<p>Please ensure the directory  are already created</p>
<p>Let&#8217;s enable the file with the a2ensite tool:</p>
<pre>sudo a2ensite vanilla.com.conf</pre>
<p>Disable the default site defined in 000-default.conf:</p>
<pre>sudo a2dissite 000-default.conf</pre>
<p>Next, let&#8217;s test for configuration errors:</p>
<pre>sudo apache2ctl configtest</pre>
<p>You should see the following output:</p>
<p>Output<br />
Syntax OK</p>
<p>Restart Apache to apply the changes:</p>
<p><strong>Download  Vanilla File to  /var/www/vanilla.com/html</strong></p>
<pre>root@ubuntu-server-18:~# cd /var/www/vanilla.com/html/
root@ubuntu-server-18:/var/www/vanilla.com/html# wget https://open.vanillaforums.com/get/vanilla-core-2.8.1,zip
--2019-03-18 21:51:05-- https://open.vanillaforums.com/get/vanilla-core-2.8.1
Resolving open.vanillaforums.com (open.vanillaforums.com)... 2606:4700:7::a29f:804f, 2606:4700:7::a29f:8a4e, 162.159.138.78, ...
Connecting to open.vanillaforums.com (open.vanillaforums.com)|2606:4700:7::a29f:804f|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘vanilla-core-2.8.1.zip’


</pre>
<p><strong>Extract the zip file. and reload the Apache configurations<br />
</strong></p>
<p>#unzip vanilla-core-2.8.1.zip</p>
<p>#mv vanilla-2.8.1  vanilla</p>
<p>root@ubuntu-server-18:~# sudo chown -R www-data:www-data /var/www/vanilla.com/<br />
root@ubuntu-server-18:~# systemctl restart apache2<br />
root@ubuntu-server-18:~#</p>
<p>&nbsp;</p>
<p>Now Please  go to http://host/vanilla  in my case  vanilla.com/vanilla  and fillup  your  information and  database credentials  and gooo</p>
<p><img loading="lazy" class="alignnone size-full wp-image-11479" src="https://www.osradar.com/wp-content/uploads/2019/03/vanila16.png" alt="" width="1399" height="915" srcset="https://www.osradar.com/wp-content/uploads/2019/03/vanila16.png 1399w, https://www.osradar.com/wp-content/uploads/2019/03/vanila16-300x196.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/vanila16-768x502.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/vanila16-1024x670.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/vanila16-696x455.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/vanila16-741x486.png 741w, https://www.osradar.com/wp-content/uploads/2019/03/vanila16-1068x699.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/vanila16-642x420.png 642w" sizes="(max-width: 1399px) 100vw, 1399px" /> <img loading="lazy" class="alignnone size-full wp-image-11480" src="https://www.osradar.com/wp-content/uploads/2019/03/vanilla17.png" alt="" width="1650" height="726" srcset="https://www.osradar.com/wp-content/uploads/2019/03/vanilla17.png 1650w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla17-300x132.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla17-768x338.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla17-1024x451.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla17-696x306.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla17-1068x470.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla17-955x420.png 955w" sizes="(max-width: 1650px) 100vw, 1650px" /> <img loading="lazy" class="alignnone size-full wp-image-11481" src="https://www.osradar.com/wp-content/uploads/2019/03/vanilla18.png" alt="" width="1920" height="1050" srcset="https://www.osradar.com/wp-content/uploads/2019/03/vanilla18.png 1920w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla18-300x164.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla18-768x420.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla18-1024x560.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla18-696x381.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/vanilla18-1068x584.png 1068w" sizes="(max-width: 1920px) 100vw, 1920px" /></p>
<p>Enjoy</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-vanilla-forum-on-ubuntu-18-04/">Install Vanilla Forum on Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-vanilla-forum-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
