Prerequisites :-
This page will guide you through the installation of Crater for Bahmni payments on your PC
You can install Crater via Bahmni docker-compose easily. This is the recommended approach. Please see this documentation. The below mentioned installation step is only in case someone wants to perform a direct install of crater on their machine.
Prerequisites
MySql( if not installed steps are given in database creation).
Apache2
...
Download Crater Zip.
1.Download the crater zip from the link given below
https://craterapp.com/downloads
...
Code Block |
---|
apt install unzip -y unzip crater.zip |
Tip |
---|
At the end of this module you will be able to access crater and its database on your own PC . |
Upload to Server
1.Install the apache web server
...
Do note to point the domain to the uploaded folder
Please note that, Crater must be installed on a primary domain or subdomain. Installing on a sub-folder will not work, for example:
Change permissions
In your crater root folder, run the command:
...
Code Block |
---|
sudo nano /etc/apache2/sites-available/crater.abc.my.id.conf |
Paste the content given below :-
Code Block |
---|
<VirtualHost *:80>
ServerName crater.abc.my.id
DocumentRoot /var/www/crater.abc.my.id/public
<Directory /var/www/crater.abc.my.id/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/crater.abc.my.id_error.log
CustomLog /var/log/apache2/crater.abc.my.id_access.log combined
</VirtualHost> |
Activate the rewrite module, virtual host, and restart the apache web servera2enmod rewrite
Code Block |
---|
a2enmod rewrite a2ensite crater.abc.my.id systemctl restart apache2 |
Now you need to Install SSL certbot ,follow the commands :-
...
Code Block |
---|
certbot --non-interactive -m <validemailid> --agree-tos --no-eff-email --apache -d crater.abc.my.id --redirect |
Tip |
---|
Try it now 👇Now try running localhost or the domain which you are using You will successfully be able to run installation wizard of crater in your own browser |
...
Code Block |
---|
mysql -u root -p mysql>create database crater; mysql>create user 'crater'@'localhost' identified by 'secret'; mysql>grant all privileges on crater.* to 'crater'@'localhost'; mysql>flush privileges; mysql>exit |
Tip |
---|
Use this username,database and password whenever prompted in installation wizard |
Installation Wizard :-
Check requirements and permissions
...
Add your information and you are all set to use crater.
...
Tip |
---|
Crater successfully installed |