How to install MOR Front-End

From Kolmisoft Wiki
Jump to navigationJump to search

Warning.pngIMPORTANT - this add-on is no longer supported! Kolmisoft has stopped development of MOR Front-End due to the reason of other priority projects as company concentrates mainly on improving softswitch/ billing part.

However, there's possibility to integrate any Website / Front End you want using MOR API. Please contact vilius@kolmisoft.com for more information.


Configuration from MOR GUI


Login to MOR as admin and go to SETTINGS > Setup > Settings > API.

Check options "Allow API" and "API allow Registration".

Put any password in "API Secret Key".


Installation


Connect to server on which MOR Front-End should be installed via SSH.

There should be CentOS operating system on server.

You can install MOR Front-End where MOR is installed.


Issue following commands:

yum -y install subversion
svn co http://svn.kolmisoft.com/magento/install_script /usr/src/magento_install
sh /usr/src/magento_install/magento_install.sh /var/www/html/INSTALL_DIRECTORY 'http://SERVER_IP/DIRECTORY/' 'MOR_API_KEY' 'http://MOR_SERVER_ADDRESS/billing' db_username db_password db_name db_host

Place correct values on last command:

INSTALL_DIRECTORY - directory where Front End files will be placed. Example: mor_front_end

SERVER_IP - IP of server on which Front End will be installed. IP of server to which you are connected. Example: 11.22.33.44

DIRECTORY - address which should be entered to access Front End. Example: accounts

MOR_API_KEY - same key which was entered in SETTINGS > Setup > Settings > API.

MOR_SERVER_ADDRESS - IP of MOR server. If you have few servers solution, it should be IP of GUI server. Example: 22.33.44.55

db_username - Front End database user which will be used by Front End.

db_password - password of same user.

db_name - name of Front End database. It will be create by install scripts. DO NOT USE 'mor' or other database names which already exist. Example: mor_front_end

db_host - if you do not want to use remote database, then use 127.0.0.1 here.

Administrator password will be automatically generated during installation. Please check output to see it.


Front-End access


When installation is completed, you can put

http://SERVERIP/DIRECTORY/

on your browser to access Front End.


To access administrator interface, use

http://SERVERIP/DIRECTORY/admin

username is magento_admin

password was provided during installation.



Additional information


If user already has a domain name he wants to use - you should also create a conf file like this:

echo "
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot /var/www/html/FRONT_END_DIR
ServerName www.example.com
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/html/FRONT_END_DIR>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
alias /billing /var/www/html/billing
</VirtualHost>
" >> /etc/httpd/conf.d/FRONT_END_DIR.conf


Please change FRONT_END_DIR to your installed directory and www.example.com to your domain.

Uncomment this line in /etc/httpd/conf/httpd.conf:

NameVirtualHost *:80
/etc/init.d/httpd reload


Installation errors


FAILED xmlstarlet installation failed!

Solution:

yum -y install libxslt-devel



How to reset Front-end administrator password


Default admin panel address is:

http://SERVERIP/DIRECTORY/admin


In order to access Front-End admin interface without disturbing user and asking for passwords - use magento_support_access.sh script with alias fcrack.

Default Front-End login and password will be

username: magento_admin
password: magento_admin


Example:

[root@localhost ~]# fcrack /var/www/html/magento2
URL to access magento admin panel:
Press enter to continue


Please note that MOR alias'es must be enabled in order fcrack would work.

MOR alias'es can be enabled using these commands (you have to do them only once):

sh /usr/src/mor/test/scripts/various/alias.sh
bash



Logs


DB update scripts writes to a log /var/log/magento/db_updates.log


Backups


Backups are created during Front-End update. They are located at $INSTALL_DIR/backups




See also