Oxwall: Instalasi

From OnnoWiki
Jump to navigation Jump to search

Instalasi aplikasi pendukung

apt-get update
apt-get install apache2 mysql-server libmysqlclient15-dev libphp-adodb \
libgd2-xpm libgd2-xpm-dev php5-mysql php5-gd php5-curl php-pear \
unzip mysql-doc-5.0 postfix

Enable mod_rewrite di apache

sudo a2enmod rewrite

Alternatif lain

vi /etc/apache2/sites-enabled/000-default
DocumentRoot /var/www
<Directory />
     Options FollowSymLinks
     AllowOverride all
</Directory>
<Directory /var/www/>
     Options Indexes FollowSymLinks MultiViews
     AllowOverride all
     Order allow,deny
     allow from all
</Directory>

Restart Apache

/etc/init.d/apache2 restart


Download Oxwall dari

http://www.oxwall.org/
http://www.oxwall.org/download

Misalnya server berada di IP address 192.168.0.63

scp ow_core_update_pack_1.3.1.zip onno@192.168.0.63:
scp oxwall-1.3.1.zip onno@192.168.0.63:

masuk ke server

ssh onno@192.168.0.63
sudo su

Siapkan database

# mysql -u root -p123456
create database oxwall;
grant ALL on root.* to oxwall@localhost;
grant ALL on oxwall.* to oxwall@localhost  identified by 'oxwall';
grant ALL on oxwall.* to oxwall identified by 'oxwall';
exit

Install oxwall

mkdir /var/www/oxwall
cp oxwall-1.3.1.zip /var/www/oxwall
cp ow_core_update_pack_1.3.1.zip /var/www/oxwall
cd /var/www/oxwall/
unzip oxwall-1.3.1.zip
chmod -Rf 755 *
chmod -Rf 777 ow_pluginfiles/
chown -Rf www-data.www-data /var/www/oxwall

Selesaikan Instalasi Melalui Web

Selesaikan instalasi melalui web

http://192.168.0.63/oxwall

atau

http://ip-server/oxwall/
Oxwall-install-1.jpeg
Title 		     Situs Oxwall
Tagline             Oxwallsite
URL 		     http://192.168.0.63/oxwall
Root directory      /var/www/oxwall
Email 		     administrator@oxwallsite.org
Username            administrator
Password 	     passwordadministrator
Oxwall-install-2.jpeg
Host 		localhost
User 		oxwall
Password 	oxwall
Database Name 	oxwall
Table prefix   ow_

Edit Konfigurasi

Oxwall-install-3.jpeg

Edit

vi /var/www/oxwall/ow_includes/config.php
<?php

define('OW_URL_HOME', 'http://192.168.0.63/oxwall/');

define('OW_DB_HOST', 'localhost');
define('OW_DB_PORT', null);
define('OW_DB_USER', 'oxwall');
define('OW_DB_PASSWORD', 'oxwall');
define('OW_DB_NAME', 'oxwall');

define('OW_DB_PREFIX', 'ow_');

define('OW_DIR_USERFILES', OW_DIR_ROOT.'ow_userfiles'.DS);
define('OW_DIR_STATIC', OW_DIR_ROOT.'ow_static'.DS);
define('OW_URL_STATIC', OW_URL_HOME.'ow_static/');
define('OW_URL_USERFILES', OW_URL_HOME.'ow_userfiles/');
define('OW_DIR_PLUGINFILES', OW_DIR_ROOT.'ow_pluginfiles/');

define('OW_PASSWORD_SALT', '4f6feaede4582');

define('OW_DIR_CORE', OW_DIR_ROOT.'ow_core'.DS);
define('OW_DIR_INC', OW_DIR_ROOT.'ow_includes'.DS);
define('OW_DIR_LIB', OW_DIR_ROOT.'ow_libraries'.DS);
define('OW_DIR_UTIL', OW_DIR_ROOT.'ow_utilities'.DS);
define('OW_DIR_PLUGIN', OW_DIR_ROOT.'ow_plugins'.DS);
define('OW_DIR_THEME', OW_DIR_ROOT.'ow_themes'.DS);
define('OW_DIR_SYSTEM_PLUGIN', OW_DIR_ROOT.'ow_system_plugins'.DS);
define('OW_DIR_SMARTY', OW_DIR_ROOT.'ow_smarty'.DS);

define('OW_USE_CLOUDFILES', false);

if ( defined('OW_CRON') )
{ 
    define('OW_DEBUG_MODE', false);
    define('OW_DEV_MODE', false);
    define('OW_PROFILER_ENABLE', false);
} 
else 
{ 
    /**
    * Make changes in this block if you want to enable DEV mode and DEBUG mode
    */
    
    define('OW_DEBUG_MODE', false);
    define('OW_DEV_MODE', false);
    define('OW_PROFILER_ENABLE', false); 
}

Edit crontab

crontab -e
* * * * * /usr/local/bin/php /your/path/to/oxwall/ow_cron/run.php


Oxwall-install-4.jpeg
Oxwall-install-5.jpeg
Oxwall-install-6.jpeg

Referensi

Pranala Menarik