Software Used

openDCIM version 2.1, the current version as of the writing of the
guide, but it should apply to previous versions, and possibly to
future ones as well.

CentOS 6.4 Minimal 64bit, with the latest updates as of 2013-05-25,
but it should apply to previous versions, and possibly to future
ones as well.

The vim editor is used in the commands below, because it adds nice
colored syntax highlighting when editing configuration files. If you
don't have vim, you can use vi, which comes preinstalled with
CentOS, or any text editor of your choice.

Install Apache, PHP, MySQL

Install, start and enable Apache:

yum -y install httpd
service httpd start
chkconfig httpd on

Install PHP, and the MBSTRING module required for internationalization:

The symbolic link is not required. If you don't want to create it, just
rename the directory openDCIM-2.1 to opendcim. However, having a
symbolic link in place allows you to find out the version of openDCIM at
a glance, and makes upgrades easier.

Now, prepare the configuration file for access to the database:

cd /var/www/opendcim
cp db.inc.php-dist db.inc.php
vim db.inc.php

Edit the following lines, to reflect your settings of database host (in
this example localhost), database name (dcim), and credentials that
you assigned when creating the database:

Now, you can open openDCIM in your browser to proceed with the
installation. If you have set up a DNS entry for a domain name to point
to your web server's IP, you will go to something similar to https://opendcim.example.com/.
Otherwise, you can visit https://IP_of_web_server/.

In any case, you will be asked to accept the web server's HTTPS
certificate. This will only happen once per browser. You will then be
asked for the Authentication credentials that you configured earlier
with htpasswd.