Love The Way I Work

Tag archive

Debian

Installing Movable Type on Debian Server

in Blogging/Debian/Linux/Tutorial by

Movable Type

Movable Type is a widely-used proprietary weblog publishing system developed by California-based Six Apart. Movable Type also supports most popular weblogging features, including user accounts, comments, categories, and themes, and is extensible through a large library of third-party plug-ins. Movable Type is free of charge for personal blogs with unlimited authors and blogs; paid support and commercial licenses, which allow more authors and weblogs on a single installation of the software, are also available. Source: http://en.wikipedia.org/wiki/Movable_Type.

Introduction

This tutorial reviews how to install Movable Type (MT) on your local Debian server. This tutorial does NOT offer easy Movable Type installation instructions. This guide was created because the official Movable Type installation guide are not written for beginner users like me :D. Hopefully these guide are easier to understand for us normal people.

😀 Gud lak! I hope this helps save you time.

Requirements

Movable Type requires the following:

  • An account on a webserver that allows you to run custom CGI scripts.
  • Perl installed on your server, version 5.004_04 or greater. Perl version 5.6 or higher is highly recommended.
  • BerkeleyDB or, preferably, a SQL-based database for storage of Movable Type data. Movable Type supports MySQL, SQLite, PostgreSQL. This guide use MySQL for Database server.
  • An FTP program to upload the necessary files to your webserver, or shell access if you wish to install the system from the shell.
  • A web browser with Javascript enabled.

Prequesitions

Installing Perl, imagemagick, perlmagick, and libxml-atom-perl

aptitude install perl imagemagick perlmagick libxml-atom-perl

Installing Webserver

You can view my post about Installing Webserver on Debian Server.

CGI Config

We want to run cgi scripts from its default location (default on Debian is here: /usr/lib/cgi-bin) into a another location (under Movable Type folder: /var/www/myblog), therefore find this section in the httpd.conf file (/etc/apache2/sites-enabled/000-default):

vi /etc/apache2/sites-enabled/000-default
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options ExecCGI -MultiViews 
+SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory>

Replace with:

ScriptAlias /cgi-bin/ /var/www/myblog/
    <Directory "/var/www/myblog">
        AllowOverride None
        Options ExecCGI -MultiViews 
+SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory>

Open and edit /etc/apache2/apache2.conf file, uncomment this:

vi /etc/apache2/apache2.conf
AddHandler cgi-script .cgi

Then restart your Apache

/etc/init.d/apache2 restart

Installing MySQL Database

You can view my post about MySQL Database Server on Debian.

Create MySQL Database and User

mysql
mysql> create database movabletype;
mysql> GRANT ALL PRIVILEGES ON *.* TO supriyadisw@localhost
identified by 'suprimt' with grant option;
mysql> flush privileges;
mysql> q

Downloading

The distribution can be downloaded from the Movable Type web site.

Download the full version. This file that you download is a .zip and .tar.gz file that contains hundreds of files and folders inside.

After downloading, the file that you downloaded is saved in .tar.gz format; this is a compressed bundle containing the files in the Movable Type distribution. Unpack this archive.

tar zxvf MT-3.33-en.tar.gz

Rename your MT-3.33 folder into myblog folder:

mv MT-3.33 myblog

Check your server configuration

Type the following URL into your browser: http://your-server-ip-address/myblog.
You should get this screen:

Movable Index Page

Then click “Movable Type System Check” link under Installing section or type the following URL into your browser: http://your-server-ip-address/myblog/mt-check.cgi.

You should get a screen that lists a bunch of technical mumbu-jumbo. Scroll to the bottom and there should be a message that tells you that your server checks out and will work with Movable Type.

Initialize Movable Type

Type the following URL into your browser: http://your-server-ip-address/myblog/mt-wizard.cgi. Make sure your myblog writable by server :). This Wizard will make configuration file into your myblog folder.

Movable Type Configuration Wizard

Movable Wizard Begin

Click Begin button to start configuration wizard.

WordPress on Debian Linux

in Blogging/Debian/Linux/Tutorial/Wordpress by

This tutorial is how to install WordPress on Debian Linux. Installing WordPress on Debian? What for? Are there many easy ways to install WordPress on our server (Web hosting)? Eventually, We don’t need to know what distro that our server use or what operating system is. You right.

I have a “special” condition here. I need to install WordPress on my own Debian server for testing purpose. If You like me, play around with WordPress as a developer (perhaps you create your own theme or plugin), you should have your own server in your local PC on LAN.

You can use your own server to test your own WordPress theme or plugin before you release it. You can upload and test your theme or plugin directly on your remote server of course, but if you have a little problem with Internet connection (just like me), it is so hard way 😀

These are my little steps to built my WordPress theme or plugin:

  1. Built on my local PC
  2. Upload to my local server
  3. Testing my work and make sure works propertly
  4. Upload to my remote server
  5. Testing again in the “real” condition
  6. Make sure I have no problem with my work
  7. Sharing my work

Let’s start to install WorPress on Debian

Installing http server on Debian

You can see my tutorial how to install http server on Debian, Installing HTTP Server on Debian.

Installing MySQL Database

You can see my tutorial how to install MySQL Database Server on Debian.

Download WordPress

You can download WordPress from their official website.

Upload your WordPress archieve into your debian server

You can use any ftp tools to upload your WordPress archieve into your server.

Extract your WordPress archieve into your server directory

tar zxvf wordpress-x.x.x.tar.gz --directory=/var/www/

Using MySQL

Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.

mysql -u ''adminusername'' -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 6 to server
version: 4.0.24_Debian-10sarge1-log

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> CREATE DATABASE ''wordpress'';
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO 'wordpress'@'localhost' 
      -> IDENTIFIED BY 'wordpresspassword' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
  
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql> EXIT
Bye

In the above:

  • adminusername will typically be root, unless you have another high-privileged account set up.
  • wordpress or blog are good values for databasename.
  • wordpress is a good value for wordpressusername.
  • hostname will usually be localhost. If you don’t know what this value should be, check with your system administrator. If you are the system administrator, figure out what this value should be.
  • password should be a difficult-to-guess password, ideally containing a combination of upper- and lower-case letters, numbers, and symbols.

Write down the values you used for databasename, wordpressusername, hostname, and password.

Configure your WordPress setting

Rename the wp-config-sample.php file to wp-config.php. Open and edit wp-config.php file

// ** MySQL settings ** //
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'wordpresspassword');
define('DB_HOST', 'localhost');

Run the Install Script

Using your favorite web browser, visit wp-admin/install.php within the directory into which you just installed WordPress on your web site. For example: point your browser to http://yourserver/wordpress/wp-admin/install.php.

Preview your WordPress

Point your browser to http://yourserver/wordpress.

Well done! You have your own WordPress on Your Debian Server.

😀 Gud lak

Installing HTTP Server on Debian

in Debian/Linux/Tutorial by

This tutorial about installing HTTP Server on Debian Linux.

Installing Apache HTTP Server for HTTP (Web) Server Service

apt-get install apache2

Testing HTTP Server:
Open a web browser and enter http://localhost or its IP Address http://ip-address.

Installing PHP for Apache HTTP Server

apt-get install php4
/etc/init.d/apache2 restart
vi /var/www/testphp.php

Insert this following line into testphp.php file.

<?php phpinfo(); ?>

Save this new file.

Open a web browser and enter http://IP-Address/testphp.php .

Install PostgreSQL for Apache HTTP Server

apt-get install libapache2-mod-auth-pgsql
apt-get install php4-pgsql
/etc/init.d/apache2 restart

Mapping URLs to folders outside /var/www/

vi /etc/apache2/conf.d/alias

Insert this following line into the new file.

Alias /URL-path /location_of_folder/

<directory /location_of_folder/>
   Options Indexes FollowSymLinks
   AllowOverride All
   Order allow,deny
   Allow from all
</Directory>

Save a new file.

/etc/init.d/apache2 restart

Open a web browser and enter http://IP-Address/URL-path .

Done.. Good Luck…

Link

Installing PostgreSQL on Debian

in Debian/Linux/Tutorial by

Description

This tutorial is about howto installing PostgreSQL on Debian Server.

Installing PostgreSQL

apt-get update
apt-get install pgsql

Create Language

Example plpgsql

su postgres
createlang plpgsql template1
exit

Change authentication method

We need to edit file pg_hba.conf to change authentification method for accessing PostgreSQL database.

cp /etc/postgresql/pg_hba.conf /etc/postgresql/pg_hba.confbak
vi  /etc/postgresql/pg_hba.conf

Find this section

# TYPE  DATABASE  USER  IP-ADDRESS  IP-MASK  METHOD
# Database administrative login by UNIX sockets
local  all  postgres        ident sameuser
#
# All other connections by UNIX sockets
local  all  all        ident sameuser
#
# All IPv4 connections from localhost
host  all  all  127.0.0.1  255.255.255.255  ident sameuser
#
# All IPv6 localhost connections
host  all  all  ::1  ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff  ident sameuser
host  all  all    ::ffff:127.0.0.1/128  ident sameuser
#
# reject all other connection attempts
host  all  all  0.0.0.0  0.0.0.0  reject

Edit that section to

# TYPE  DATABASE  USER  IP-ADDRESS  IP-MASK  METHOD
# Database administrative login by UNIX sockets
local  all  postgres        ident sameuser
#
# All other connections by UNIX sockets
local  all  all        password
#
# All IPv4 connections from localhost
host  all  all  127.0.0.1  255.255.255.255  password
#
# All IPv6 localhost connections
host  all  all  ::1  ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff  password
host  all  all    ::ffff:127.0.0.1/128  password
#
# reject all other connection attempts
host  all  all  0.0.0.0  0.0.0.0  reject

Restart PostgreSQL Server

/etc/init.d/postgresql restart

Create a New Database

Example wordpress

su postgres
createdb -T template1 wordpress
exit

Create a New User

Example: User supriyadisw with password cak3p

su postgres
createuser supriyadisw -P
Enter password for new user: cak3p [enter]
Enter it again: cak3p [enter]
Shall the new user be allowed to create databases? (y/n) y [enter]
Shall the new user be allowed to create more new users? (y/n) n [enter]
CREATE USER
exit

Login to PostgreSQL

pgsql -U supriyadisw wordpress [enter]
Password: cak3p [enter]

Good Luck 😀

Go to Top