UNIMAS Official Wiki » Dashboard » HOW-TO, Tutorial & User Manual » HOW-TO : Install MyMesyuarat v1.1 in Ubuntu 14.04 64-bit

HOW-TO : Install MyMesyuarat v1.1 in Ubuntu 14.04 64-bit

Last modified by Khairilzamrie bin Rosle on 2017/01/26 15:56

This HOW-TO is produced to assist people interested to install MyMesyuarat v1.1 on Ubuntu 14.04 LTS 64-bit. The official installation guide only provided for Windows and CentOS deployment.


  • Ubuntu 14.04 64bit
  • Apache 2.4 (bundled with Ubuntu 14.04)
  • PHP 5.5 and above
  • MyMesyuarat v1.2 or 1.1
  • Domain name for MyMesyuarat server - In this HOWTO we will use mymesyuarat.example.my
  • IP Address for eprints MyMesyuarat server - In this tutorial we will use

Step 1 of 7 : Prepare your PC

On your PC (not your server) set the MyMesyuarat server domain name you want to use in your hosts file. In this tutorial we used mymesyuarat.example.my as the domain name with IP Address for the MyMesyuarat server.

In Windows 7 :

Select the Start menu key and locate Notepad. ...
Right click on Notepad. ...
Select Run as administrator.
Using notepad, open C:\Windows\System32\Drivers\etc\hosts

In Linux PC or Mac :

sudo nano /etc/hosts

and add this line at the bottom of the file (Replace with the MyMesyuarat server IP Address) :       mymesyuarat.example.my

Save and close.

Step 2 of 7 : Install Apache2, PHP, PhpMyadmin & MySQL Server

First, log into your MyMesyuarat server via ssh from your PC. If you are using Windows PC, you can use Putty. If you are using a Mac or a Linux PC then open a terminal and issue this command (replace user with your own user which has sudo privillege and also replace with your server real IP Address):

ssh user@

Once you logged in, install tasksel via apt-get

sudo apt-get update && sudo apt-get install tasksel

After the installation finished, run tasksel :

sudo tasksel

A window with selections will appear. Choose LAMP and then choose OK button. The installation of Apache2, PHP and MySQL Server will start immediately. You will be asked to set password for MySQL Server admin user. Please remember the password you set as it will be used in further steps. 

Once the LAMP installation has finished, install PhpMyadmin :

sudo apt-get install phpmyadmin

During the installation you will be asked to specify the webserver to run phpmyadmin on, please choose Apache. You will also be asked to specify username/password to access MySQL Server. Use the password you set previously. You also will be asked to set password for PhpMyadmin admin account. Please remember the password you set because you will need it to log into PhpMyadmin later.

Next, you need to change some PHP configuration. To do that, issue this command :

sudo nano /etc/php5/apache2/php.ini

Change that you need to make :

  1. memory_limit - Make sure the value is set to the maximum RAM say, 4096 if the RAM is 4M
  2. max_execution_time -  Increase it to 500
  3. max_input_time -  This works in parallel with max_execution_time. Increase it to 300.
  4. upload_max_filesize -  Make sure the value is increased to 20M.
  5. output_buffering (optional) -  The value should always be 4096.

After finish making changes, save and quit (Ctl+X)

Step 3 of 7 : Create Database for MyMesyuarat

Open the installed PhpMyadmin using web browser  (replace the IP Address with your server server real IP Address)

Log in to PhpMyadmin using the password you set for PhpMyadmin admin account in previous step and  create a database with name mymesyuarat2

MyMesyuarat comes with a database script which you need to download and import into the newly created database. Download the script here :


Once downloaded, using PhpMyadmin, go to the mymesyuarat2 database and then select Import link. In the Import page, click on Choose File button and select the script file you downloaded. Then click Go Button. You should be able to see that mymesyuarat2 database now have several tables in it if the process successful.


Step 4 of 7 : Deploy MyMesyuarat

To deploy MyMesyuarat, download the MyMesyuarat source file into your server from this URL :


Once downloaded, extract the file and copy the content (which consist of config, tmp, webroot, etc folders and files) it to


Now, change the ownership of the folders and files to www-data :

sudo chown -R www-data:www-data /var/www/mymesyuarat

And also change the file permission :

sudo chmod -R 755 /var/www/mymesyuarat

Step 5 of 6 : Configure Virtualhost

Create new virtualhost config file :

sudo nano /etc/apache2/sites-available/mymesyuarat.conf

and paste this configuration :

<VirtualHost *:80>
        ServerAdmin webmaster@unimas.my

        ServerName mymesyuarat.example.my
        DocumentRoot /var/www/mymesyuarat

    <Directory "/var/www/mymesyuarat">
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all

        ErrorLog ${APACHE_LOG_DIR}/mymesyuarat-error.log
        CustomLog ${APACHE_LOG_DIR}/mymesyuarat-access.log combined


Make sure to replace mymesyuarat.example.my to your real domain name. Save the configuration (Ctl+X) and quit.

Now, you need to enable the virtualhost :

sudo a2ensite mymesyuarat.conf 

Then, enable mod rewrite :

sudo a2enmod rewrite

After that, restart your apache :

sudo service apache2 restart

Step 6 of 7 : Setup Job Schedule (Cronjob)

MyMesyuarat take advantage of background job and we need to specify the job schedule . To setup, issue this command in the server :

crontab -e

Choose option 2 and add the line:

*/5 * * * * /var/www/mymesyuarat/cake/console/cake -app /var/www/mymesyuarat/app cron emails > /dev/null 2>&1

Save the configuration (Ctl+X) and quit.

Step 7 of 7 : Install MyMesyuarat

Before starting installation, we must specify the correct database account in MyMesyuarat config file. You will need to edit database.php file :

sudo nano /var/www/mymesyuarat/app/config/database.php

In the file, replace the login and password parameter (root and password in this case) to mysql account username & password that have access to mymesyuarat2 database.


        var $default = array(

                'driver' => 'mysql',
                'host' => 'localhost',
                'login' => 'root',
                'password' => 'password',
                'database' => 'mymesyuarat2',
                'prefix' => '',
                'persistent' => false,
                'schema' => '',
                'encoding' => ''

Save the configuration (Ctl+X) and quit.

Now you are ready to install MyMesyuarat. Using browser in your PC, browse to http://mymesyuarat.example.my/install
You will walk through 6 main steps in order to complete MyMesyuarat installation

  1. The first page is Software License Agreement. Just check on  Agree and Install  and click Next button to proceed.
  2. After that, Directory & File Permission page will be displayed. There are several directories inside MyMesyuarat that needs to checked if the file permission is accessible to be executed as part of the CakePHP engine itself. If everything is in green then you can click on Next button to proceed. If there is still in red that means you may accidentally skipped Step 4 of 7 above. 
  3. Next, MySQL Configuration page will appear. You can change the particulars if you need to. But in this case just leave it as it is and proceed by clicking on Next Button.
  4. Next, Language page will be displayed. Just choose whatever language you prefer and click Submit Button. Then click on Next button to procced.
  5. Next, Global Settings page will appear. Specify all the details in the form. Just make sure to remember the username and password you specified as you will use that to log into MyMesyuarat. Click Submit button.
  6. Finally , registration page will appear. Just complete the form and click on Register and go to MyMesyuarat now button to proceed

After finishing these steps, you should be able to log in into MyMesyuarat. Enjoy!!!

Created by Khairilzamrie bin Rosle on 2015/05/07 10:49

Start Here

Welcome to the UNIMAS WIKI.
To start, use search function by entering keywords in the search box below :

Quick Navigation


Course Registration Guidelines

HOW-TO, Tutorial & User Manual

HOW-TO, Tutorial &amp; User Manual




Semester Registration

Semester Registration Guidelines

Student Quick Guide


Recently Created

81502 | 81673 | 81971 | 80997 | 71606

Recently Modified

My Recent Modifications

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 5.0.3 - Documentation