Semua arahan yang dikehendaki telah diikuti.
Seperti di http://trac.oscc.org.my/mymeeting/wiki/installation.
- To install Apache, PHP and MySQL, open Terminal and do the following steps:
sudo apt-get install apache2 php5 libapache2-mod-php5 php5-cli
sudo apt-get install mysql-server mysql-client php5-mysql
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/mysql restart
- Make sure Apache, PHP and MySQL are installed and running.
apache2 -v
mysql -V
php -v
sudo /etc/init.d/apache2 status
sudo /etc/init.d/mysql status
- Apache modules mod_rewrite is necessary:
- Enable it
cd /etc/apache2/mods-enabled
sudo a2enmod rewrite - Make sure AllowOverride is set to Allow by changing "AllowOverride None” to “AllowOverride All”.
cd /etc/apache2/sites-available/
sudo nano default...... ...
#AllowOverride None
AllowOverride All... - Restart Apache service.
- Enable it
- These PHP modules are necessary (enabled them in php.ini):
- php_cli (for command line interface)
- php_mysql (to work with MySQL)
- Mail transfer agent (eg Postfix, Sendmail) - ONLY needed for 2.2 and below. 2.3-dev already has SMTP support.
sudo apt-get install postfix
Get MyMeeting source
SVN checkout
- Install Subversion
sudo apt-get install subversion
- Check out MyMeeting
cd /var/www/
sudo svn co https://svn.oscc.org.my/mymeeting/trunk mymeeting - To update MyMeeting
cd /var/www/mymeeting
sudo svn updateInstall MyMeeting v2
Pre install steps (optional)
- After downloading/checking out the source, go the MyMeeting folder and go to app/config/core.php
vi app/configu/core.php - Find a line with Configure::write('Security.salt', 'xxxxxxxxx');
- Replace xxxx with random string of your own
- IMPORTANT: only do this before installation, not after
- Go to MyMeeting console directory which resides in your web folder
cd /var/www/mymeeting/cake/console
sudo ./cake install
- Follow and key in the instructions and settings needed to complete the process of installation.
- Create the MyMeeting database (have to provide MySQL root password)
sudo ./cake createdb
Step above will create a database and the user to access it, also it will create database.php configuration file in app/config.
Alternatively, you can do this manually and skip this step. To do this manually, create the database and user in MySQL prompt, and then create database.php in app/config directory. Same as in Windows step above.
- Once the creating database is done, run the script again to finish the installation
sudo ./cake install
- Once all the steps are done, the script will create a configuration file mymeeting.php & core.php in app/config. Now go to your browser and type " http://localhost/mymeeting". MyMeeting should be working now. Default login is admin and random password is generated.
Post installation
Change permission (applicable to Linux)
- Make sure this folder is writable
- /var/www/html/mymeeting/app/webroot/upload (CentOS)
- /var/www/mymeeting/app/webroot/upload (Ubuntu)
- Or run this command to fix the permission of all necessary folders. This command can be run anytime.
sudo ./cake fixup fixpermission
Set up cron/task scheduler (For Ubuntu)
- Put in cron job
crontab -e
- To send out notifications (meeting invitations, changes on meeting details, comments) every 15 min everyday
*/15 * * * * /var/www/mymeeting/cake/console/cake -app /var/www/mymeeting/app cron emails > /dev/null 2>&1
- To send out reminders to specific on their related tasks at 7am everyday
0 7 * * * /var/www/mymeeting/cake/console/cake -app /var/www/mymeeting/app cron reminders > /dev/null 2>&
- To check cronjob
crontab - l
No comments:
Post a Comment