How to Install b2evolution blog on Linux

In this post, i will show on how to install b2evolution blog on Linux. This howto used Red Hat Enterprise Linux 6 as a sample, therefore it’s should be working on other linux distributions as well. b2evolution is an advanced weblog tool, i-e software allowing you to run your own blogs, newsfeeds or even photo stream. It is a medium scale CMS centered around the blog concept and fully featured with multiple blogs. Follow the following steps to install b2evolution blog on Linux.

1. Go to your Documentroot directory. As a sample i used default apache root directory :

[root@rhel6 html]# pwd
/var/www/html

2. Download the b2evolution into the root directory :

[root@rhel6 html]# wget http://sourceforge.net/projects/evocms/files/b2evolution/b2evo%204.1.2-stable/b2evolution-4.1.2-stable-2011-11-02.zip/download

3. Extract the .zip file using unzip commmand as below :

[root@rhel6 html]# unzip b2evolution-4.1.2-stable-2011-11-02.zip

4. List all files inside root directory. The extracted .zip file will be inside b2evolution folder :

[root@rhel6 html]# ls
b2evolution  b2evolution-4.1.2-stable-2011-11-02.zip

5. Proceed to create the database for b2evolution. On your server, try to create a new (empty) MySQL database for b2evolution (For example, you can call it “b2evodb”. If your the newbie, you can follow this basic steps to create a new database and assign a user and it’s permission :

[root@rhel6 b2evolution]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.47 Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE b2evodb;
Query OK, 1 row affected (0.01 sec)

mysql> CREATE USER 'b2evouser'@'localhost' IDENTIFIED BY 'b2evopassword';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON b2evodb.* to b2evouser@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> SHOW GRANTS FOR 'b2evouser'@'localhost';
+------------------------------------------------------------------------------------------------------------------+
| Grants for b2evouser@localhost                                                                                   |
+------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'b2evouser'@'localhost' IDENTIFIED BY PASSWORD '*9565663E85992CAA389CF05321B712B71C125D18' |
| GRANT ALL PRIVILEGES ON `b2evodb`.* TO 'b2evouser'@'localhost'                                                   |
+------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)

mysql>

6. Make conf folder writable, otherwise you will get an error during the installation :

[root@rhel6 ~]# chmod 777 /var/www/html/b2evolution/blogs/conf/

7. Run the installation script on your server. Go to the following address in your web browser :
http://192.168.1.43/b2evolution/blogs/install/

See also  How to Fix "-bash: man: command not found" on CentOS 6.3

b2evolution

b2evolution

Installing b2evolution...
Checking files...

Preparing to install .htaccess ... ERROR!
Failed to copy files!
Everything should still work, but for optimization you should follow these instructions.
Creating b2evolution tables...
Loading module: _core/model/__core.install.php
Loading module: collections/model/_collections.install.php
Loading module: files/model/_files.install.php
Loading module: sessions/model/_sessions.install.php
Loading module: messaging/model/_messaging.install.php
Loading module: maintenance/model/_maintenance.install.php
Created table «evo_groups»
Created table «evo_groups__groupsettings»
Created table «evo_settings»
Created table «evo_global__cache»
Created table «evo_users»
Created table «evo_users__fielddefs»
Created table «evo_users__fields»
Created table «evo_locales»
Created table «evo_antispam»
Created table «evo_users__usersettings»
Created table «evo_plugins»
Created table «evo_pluginsettings»
Created table «evo_pluginusersettings»
Created table «evo_pluginevents»
Created table «evo_cron__task»
Created table «evo_cron__log»
Created table «evo_country»
Created table «evo_currency»
Created table «evo_slug»
Created table «evo_skins__skin»
Created table «evo_skins__container»
Created table «evo_blogs»
Created table «evo_coll_settings»
Created table «evo_widget»
Created table «evo_categories»
Created table «evo_items__item»
Created table «evo_postcats»
Created table «evo_comments»
Created table «evo_items__prerendering»
Created table «evo_items__version»
Created table «evo_items__status»
Created table «evo_items__type»
Created table «evo_items__tag»
Created table «evo_items__itemtag»
Created table «evo_items__subscriptions»
Created table «evo_subscriptions»
Created table «evo_blogusers»
Created table «evo_bloggroups»
Created table «evo_links»
Created table «evo_files»
Created table «evo_filetypes»
Created table «evo_sessions»
Created table «evo_basedomains»
Created table «evo_track__keyphrase»
Created table «evo_hitlog»
Created table «evo_track__goal»
Created table «evo_track__goalhit»
Created table «evo_messaging__thread»
Created table «evo_messaging__message»
Created table «evo_messaging__threadstatus»
Created table «evo_messaging__contact»
Creating minimum default data...
Creating default blacklist entries... OK.
Creating default groups... OK.
Creating user field definitions... OK.
Creating admin user... OK.
Activating multiple sessions for administrator... OK.
Creating default Post Types... OK.
Creating default file types... OK.
Activating selected default locale... OK.
Creating default settings... OK.
Creating default currencies... OK.
Creating default countries... OK.
Creating default scheduled jobs... OK.
Creating default "help" slug... OK.
Installing default skins... OK.
Installing plugin: quicktags_plugin... OK.
Installing plugin: auto_p_plugin... OK.
Installing plugin: autolinks_plugin... OK.
Installing plugin: texturize_plugin... OK.
Installing plugin: smilies_plugin... OK.
Installing plugin: videoplug_plugin... OK.
Installing plugin: calendar_plugin... OK.
Installing plugin: archives_plugin... OK.
Installing plugin: ping_b2evonet_plugin... OK.
Installing plugin: ping_pingomatic_plugin... OK.
Installing plugin: tinymce_plugin... OK.
Installing plugin: twitter_plugin... OK.
Installing sample contents...
Assigning avatar to Admin... OK.
Creating demo blogger user... OK.
Creating demo user... OK.
Creating default blogs... OK.
Creating sample categories... OK.
Creating sample posts... OK.
Creating sample comments... OK.
Creating default group/blog permissions... OK.
Installing default widgets for blog #1... OK.
Installing default widgets for blog #2... OK.
Installing default widgets for blog #3... OK.
Installing default widgets for blog #4... OK.
The /cache folder could not be created/written to. b2evolution will still work but without caching, which will make it operate slower than optimal.
Installation successful!

Now you can log in with the following credentials:
Login:  	admin
Password:  	ukNx9B44

Note that password carefully! It is a random password that is given to you when you install b2evolution. If you lose it, you will have to delete the database tables and re-install anew.

http://192.168.1.43/b2evolution/blogs/admin.php

See also  How to Check Ubuntu Version

http://192.168.1.43/b2evolution/blogs/

Comments