Installing Centurion / complete install guide for ubuntu

From Centurion Project

Jump to: navigation, search

The following is Centurion installation guide for Ubuntu 10.04, however, it should also work for most other versions of Ubuntu Linux with minor modifications.

Contents

Check Out Centurion From Git

The first step in installing Centurion is to obtain the source code. To do that you will need to clone the repository from github.

  1. sudo apt-get install git
  2. mkdir source
  3. cd source
  4. git clone https://github.com/centurion-project/Centurion

Configure Apache

If needed, install PHP with modules:

  1. sudo apt-get install php5-cli php5 php5-gd php5-imagick php5-mysql libapache2-mod-php5 php5-curl

Choose a name for your new web host. In this tuturial we will use a fictional local-test.centurion-project.org. Now, modify /etc/hosts file, and add local-test.centurion-project.org after 127.0.0.1. This is how /etc/hosts should look like after modifications:

  1. 127.0.0.1       localhost local-test.centurion-project.org
  2.  
  3. # The following lines are desirable for IPv6 capable hosts
  4. ::1     localhost ip6-localhost ip6-loopback
  5. fe00::0 ip6-localnet
  6. ff00::0 ip6-mcastprefix
  7. ff02::1 ip6-allnodes
  8. ff02::2 ip6-allrouters

Create a new file at /etc/apache/sites-available/local-test.centurion-project.org with the following contents (remember to replace your_user with your username):

  1. <VirtualHost *:80>
  2.     DocumentRoot /home/your_user/source/Centurion/public
  3.     ServerName local-test.centurion-project.org
  4.     DirectoryIndex index.php
  5.     <Directory /home/your_user/source/Centurion>
  6.          AllowOverride All
  7.          Order allow,deny
  8.          Allow from all
  9.     </Directory>
  10. </VirtualHost>

You should further verify that your /etc/apache2/ports.conf contains the following

  1. NameVirtualHost *:80
  2. Listen 80

Then execute the following command:

  1. sudo a2enmod rewrite
  2. sudo a2enmod mime_magic
  3. sudo a2enmod headers
  4. sudo a2ensite local-test.centurion-project.org
  5. sudo /etc/init.d/apache2 restart

Configure MySQL

The following assumes that you have already set up your mysql server. If this is not the case, then execute sudo apt-get install mysql-server.

  1. mysql -u root -p
  2. create database centurion character set utf8 collate utf8_general_ci;
  3. grant all on centurion.* to 'centurion'@'%' identified by 'your_secret_password';

Configure Centurion

Now check if everything is OK by going to http://local-test.centurion-project.org. If there are no errors, you will see a button "Remove installation file" which should delete index.php and move index.php_next to index.php. You can also do it manually. "status" directory can be removed, and you can also remove write priviledge from "index.php" by executing "chmod -x index.php". That's all!

Final Notes and Tips & Tricks

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox