Difference between revisions of "Habari"

From ArchWiki
Jump to: navigation, search
m (fixed category)
(change category to Web applications)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Web Server]]
+
[[Category:Web applications]]
[[zh-CN:Habari]]
+
[[zh-hans:Habari]]
== Introduction ==
+
{{Archive|Not packaged for Arch, last release 2014.[http://habariproject.org/en/download]}}
This document describes how to set up the Habari open source blogging engine on an Arch Linux system. It also tells how to enable your .htaccess file and required php modules that would prevent install errors from occurring.
+
This document describes how to set up the [http://habariproject.org/en/ Habari] open source blogging engine on an Arch Linux system.
 +
It also tells how to enable your .htaccess file and required php modules that would prevent install errors from occurring.
  
== Before You Install ==
+
== Before you install ==
 
Know that Habari is still alpha and there is no package in the main or AUR repositories. While some would claim that wordpress is better, wordpress is bloated and habari makes for an excellent alternative fit for efficient arch user.
 
Know that Habari is still alpha and there is no package in the main or AUR repositories. While some would claim that wordpress is better, wordpress is bloated and habari makes for an excellent alternative fit for efficient arch user.
{{Box Note | This howto assumes you have a LAMP already setup and ready to go. If you haven't set one up yet, see [[LAMP]].}}
+
{{Note| This howto assumes you have a LAMP already setup and ready to go. If you haven't set one up yet, see [[LAMP]].}}
  
 
== Installation ==
 
== Installation ==
=== Step 1: Check PHP Configuration ===
+
 
# vim /etc/php/php.ini
+
=== Step 1: Check PHP configuration ===
Goto:
+
Make sure the following extensions are uncommented in {{ic|/etc/php/php.ini}}:
; available extensions
 
and enable, if not already enabled:
 
 
  extension=gd.so
 
  extension=gd.so
 
  extension=gettext.so
 
  extension=gettext.so
 
  extension=iconv.so
 
  extension=iconv.so
extension=json.so
 
 
  extension=mhash.so
 
  extension=mhash.so
extension=mysql.so
 
extension=pdo.so
 
 
  extension=pdo_mysql.so
 
  extension=pdo_mysql.so
 
  extension=session.so
 
  extension=session.so
 
  extension=xmlrpc.so
 
  extension=xmlrpc.so
 
  extension=zlib.so
 
  extension=zlib.so
=== Step 2: Prepare MySQL Database ===
+
 
You need to create a habari database for the blog to write stuff to. One can choose '''habaridata''' for the db name, '''habari''' for the username, and '''habaripass''' for the password. Assuming you've already accessed your mysql install and set a root password:
+
=== Step 2: Prepare MySQL database ===
$ mysql -u root
+
 
mysql> CREATE DATABASE habaridata;
+
You need to create a habari database for the blog to write stuff to. One can choose '''habaridata''' for the db name, '''habari''' for the username, and '''habaripass''' for the password.
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON habaridata.* TO 'habari'@'localhost' IDENTIFIED BY 'habaripass';
+
Assuming you've already accessed your mysql install and set a root password:
mysql> FLUSH PRIVILEGES;
+
 
Quit MySQL:
+
{{hc|$ mysql -u root|
mysql> QUIT;
+
mysql> CREATE DATABASE habaridata;
=== Step 3: Check Apache Configuration ===
+
mysql> GRANT ALL PRIVILEGES ON habaridata.* TO 'habari'@'localhost' IDENTIFIED BY 'habaripass';
# vim /etc/httpd/conf/httpd.conf
+
mysql> QUIT;
Look for and uncomment, if commented:
+
}}
 +
 
 +
=== Step 3: Check Apache configuration ===
 +
 
 +
Edit {{ic|/etc/httpd/conf/httpd.conf}} and uncomment the following line:
 +
 
 
  LoadModule rewrite_module modules/mod_rewrite.so
 
  LoadModule rewrite_module modules/mod_rewrite.so
 +
 
Change all (just to be safe):
 
Change all (just to be safe):
 +
 
  AllowOverride None
 
  AllowOverride None
 +
 
To:
 
To:
 +
 
  AllowOverride FileInfo
 
  AllowOverride FileInfo
 +
 
Add (just to be safe):
 
Add (just to be safe):
 +
 
  # Habari .htaccess
 
  # Habari .htaccess
 
  <Directory /srv/http/blog>
 
  <Directory /srv/http/blog>
 
       AllowOverride FileInfo
 
       AllowOverride FileInfo
 
  </Directory>
 
  </Directory>
Restart Apache:
+
 
# /etc/rc.d/httpd restart
+
Restart Apache ({{ic|httpd.service}}).
=== Step 4: Prepare Habari Directory ===
+
 
 +
=== Step 4: Prepare Habari directory ===
 +
 
 
  # cd /srv/http
 
  # cd /srv/http
 
  # mkdir habari (or whatever you want to call the folder that'll house the habari install (e.g., blog, etc.))
 
  # mkdir habari (or whatever you want to call the folder that'll house the habari install (e.g., blog, etc.))
Line 63: Line 72:
 
  # chown http:http user/cache
 
  # chown http:http user/cache
 
  # chmod o+w user/cache
 
  # chmod o+w user/cache
=== Step 5: Run The Installer ===
+
 
 +
=== Step 5: Run the installer ===
 +
 
 
Head over to <nowiki>http://yourdomain.com/habari</nowiki> or whatever folder you called it. The habari installer should come up. This is fairly straightforward. Input the database information including the username and password. It is recommended to also have a prefix for the database, if you're mysql for other programs. The hostname will be localhost 99% of the time. You can enable all the plugins including the nifty wordpress importer if you want to migrate from that. The name of the blog can also be specified by changing the default '''My Habari'''. Click the install button at the very bottom and congratulations; you are now running Habari
 
Head over to <nowiki>http://yourdomain.com/habari</nowiki> or whatever folder you called it. The habari installer should come up. This is fairly straightforward. Input the database information including the username and password. It is recommended to also have a prefix for the database, if you're mysql for other programs. The hostname will be localhost 99% of the time. You can enable all the plugins including the nifty wordpress importer if you want to migrate from that. The name of the blog can also be specified by changing the default '''My Habari'''. Click the install button at the very bottom and congratulations; you are now running Habari
== External Links ==
+
 
 +
== External links ==
 +
 
 
* Main Habari Install Resource: http://wiki.habariproject.org/en/Installation
 
* Main Habari Install Resource: http://wiki.habariproject.org/en/Installation
 
* Habari Troubleshooting: http://wiki.habariproject.org/en/Troubleshooting
 
* Habari Troubleshooting: http://wiki.habariproject.org/en/Troubleshooting
 
* For more info on mysql database preparation, see https://help.ubuntu.com/community/PunBB
 
* For more info on mysql database preparation, see https://help.ubuntu.com/community/PunBB
 
* Habari Themes: http://wiki.habariproject.org/en/Available_Themes
 
* Habari Themes: http://wiki.habariproject.org/en/Available_Themes

Latest revision as of 18:13, 16 August 2017

Gnome-colors-add-files-to-archive.pngThis article is being considered for archiving.Gnome-colors-add-files-to-archive.png

Reason: Not packaged for Arch, last release 2014.[1] (Discuss in Talk:Habari#)

This document describes how to set up the Habari open source blogging engine on an Arch Linux system. It also tells how to enable your .htaccess file and required php modules that would prevent install errors from occurring.

Before you install

Know that Habari is still alpha and there is no package in the main or AUR repositories. While some would claim that wordpress is better, wordpress is bloated and habari makes for an excellent alternative fit for efficient arch user.

Note: This howto assumes you have a LAMP already setup and ready to go. If you haven't set one up yet, see LAMP.

Installation

Step 1: Check PHP configuration

Make sure the following extensions are uncommented in /etc/php/php.ini:

extension=gd.so
extension=gettext.so
extension=iconv.so
extension=mhash.so
extension=pdo_mysql.so
extension=session.so
extension=xmlrpc.so
extension=zlib.so

Step 2: Prepare MySQL database

You need to create a habari database for the blog to write stuff to. One can choose habaridata for the db name, habari for the username, and habaripass for the password. Assuming you've already accessed your mysql install and set a root password:

$ mysql -u root
mysql> CREATE DATABASE habaridata;
mysql> GRANT ALL PRIVILEGES ON habaridata.* TO 'habari'@'localhost' IDENTIFIED BY 'habaripass';
mysql> QUIT;

Step 3: Check Apache configuration

Edit /etc/httpd/conf/httpd.conf and uncomment the following line:

LoadModule rewrite_module modules/mod_rewrite.so

Change all (just to be safe):

AllowOverride None

To:

AllowOverride FileInfo

Add (just to be safe):

# Habari .htaccess
<Directory /srv/http/blog>
     AllowOverride FileInfo
</Directory>

Restart Apache (httpd.service).

Step 4: Prepare Habari directory

# cd /srv/http
# mkdir habari (or whatever you want to call the folder that'll house the habari install (e.g., blog, etc.))
# cd habari
# chmod o+w . (this is to make the installation go smoothly, so apache can write to the folder)
# touch .htaccess
# touch config.php
# chmod o+w .htaccess
# chmod o+w config.php
# svn checkout http://svn.habariproject.org/habari/trunk/htdocs .
# mkdir user/files
# chown http:http user/files
# chmod o+w user/files
# chown http:http user/cache
# chmod o+w user/cache

Step 5: Run the installer

Head over to http://yourdomain.com/habari or whatever folder you called it. The habari installer should come up. This is fairly straightforward. Input the database information including the username and password. It is recommended to also have a prefix for the database, if you're mysql for other programs. The hostname will be localhost 99% of the time. You can enable all the plugins including the nifty wordpress importer if you want to migrate from that. The name of the blog can also be specified by changing the default My Habari. Click the install button at the very bottom and congratulations; you are now running Habari

External links