How To Install b2evolution on an Ubuntu 14.04 VPS
B2evolution is an open-source CMS, based on PHP and MySQL with the ability to run multiple blogs using one installation and one database only. It is fairly easy to install b2evolution on an Ubuntu VPS
The installation process should take about 5-10 minutes if you follow the very easy steps described below.
This install guide assumes that Apache, PHP and MySQL are already installed and configured on your Ubuntu based virtual server.
At the time of writing this tutorial, the latest stable version available is b2evolution 5.0.9 and it requires:
- Apache Web Server >= 2.0 compiled with mod_rewrite module;
- PHP >= 5.0 with the following PHP extensions enabled: GD Graphics Library version 2.0.x and XML. Also, the PHP variable ‘magic_quotes_runtime’ should be set to ‘Off’.
- MySQL >= 5.0.3 installed on your Linux virtual server.
Download the latest stable version of b2evolution available at http://b2evolution.net/downloads/ to the server and extract the downloaded archive to the document root of your web server using the following commands:
cd /tmp/ wget http://www.b2evolution.net/downloads/b2evolution-5.0.9-stable-2014-05-15.zip unzip -d /var/www/html/ b2evolution-5.0.9-stable-2014-05-15.zip
Since b2evolution requires a database, create a new MySQL database:
mysql -u root -p mysql> CREATE DATABASE b2evolutiondb; mysql> GRANT ALL PRIVILEGES ON b2evolutiondb.* TO 'b2evolutionuser'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION; mysql> FLUSH PRIVILEGES; mysql> quit
Next, create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘b2evolution.conf’:
and add the following lines:
<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/b2evolution/ ServerName your-domain.com ServerAlias www.your-domain.com <Directory /var/www/html/b2evolution/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/your-domain.com-error_log CustomLog /var/log/apache2/your-domain.com-access_log common </VirtualHost>
Then, execute the following command on your virtual server:
ln -s /etc/apache2/sites-available/b2evolution.conf /etc/apache2/sites-enabled/b2evolution.conf
Edit the ‘/etc/php5/apache2/php.ini/php.ini’ PHP configuration file and add/modify the following lines:
magic_quotes_runtime = Off date.timezone = US/Central
Restart the Apache web server for the changes to take effect:
service apache2 restart
Make the document root and the b2evolution files and directories in it writable by the Apache service which is running as user ‘www-data’ and group ‘www-data’ by executing the following command:
chown www-data:www-data -R /var/www/html/b2evolution/
Open http://your-domain.com/blogs/install/index.php using a web browser and enter your MySQL database name, MySQL username, MySQL password, your email address and click on the ‘Update config file’ button. Then, follow the easy instructions and at the end of the last page, you will see the administrator username and a random password.
You can log in to the b2evolution administrator back-end using ‘admin’ as username and the pre-generated password at https://your-domain.com/b2evolution/blogs/admin.php
That is it. The b2evolution installation is now complete.
For security reasons, it is recommended to delete the ‘/var/www/html/blogs/install/’ directory once you are done with the installation process.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install b2evolution for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.