/Jasmin-SMPP-Server-Panel

Jasmin SMPP Panel for Jasmin SMS Gateway. Need to setup contact with skype: anik_arif

Primary LanguageJavaScript

Jasmin SMPP Panel (Server)

Jasmin SMPP Panel for Jasmin SMS Gateway. Need to setup contact with skype: anik_arif

Jasmin SMPP Panel (Server)

Jasmin SMPP Panel for Jasmin SMS Gateway.

  • Ubuntu 18.04.3 LTS
  • Django
  • Apache
  • SQlite
  • Git

Installation

1st Phase Complete Things To Do After Install Ubuntu:

sudo apt update && sudo apt-get upgrade --fix-missing 
sudo apt install build-essential checkinstall
sudo apt install ubuntu-restricted-extras
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install launchpad-getkeys
sudo launchpad-getkeys 
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
sudo git config --global user.name "YourName"
sudo git config --global user.email youremail@gmail.com
wget -qO - http://bit.ly/jasmin-deb-repo | sudo bash
sudo apt-get install python-jasmin
sudo systemctl enable jasmind
sudo systemctl start jasmind

sudo apt list --upgradable
sudo apt upgrade -y
sudo apt -y autoclean 
sudo apt -y clean 
sudo apt update
sudo reboot


***2nd Phase***
Install Apache+clone repository to /var/www/:

sudo apt update
sudo apt-get install apache2 libapache2-mod-wsgi
sudo ufw allow 'Apache'
sudo systemctl enable apache2
sudo systemctl restart apache2
sudo systemctl reload apache2
cd /var/www/
sudo git clone https://github.com/amechax/JasminWebPanel.git
sudo rm -rf html
sudo mv JasminWebPanel html
cd html
sudo apt install python-pip
sudo pip install -r requirements.pip
sudo ./manage.py migrate 
sudo ./manage.py createsuperuser 
sudo ./manage.py collectstatic

If you are running the production server (see below) rather than the Django dev server. It should be run again on any upgrade that changes static files. If in doubt, run it.

You can also override the default settings for the telnet connection in var/www/html/main/local_settings.py. These settings with their defaults are:


TELNET_HOST = '127.0.0.1'
TELNET_PORT = 8990
TELNET_USERNAME = 'root'
TELNET_PW = 'password'

## Running

To run for testing and development: 

sudo python manage.py runserver [::]:8000



***3rd Phase***
## Deployment
To run on production:

cp 000-default.conf /etc/apache2/sites-available/000-default.conf
sudo a2enmod wsgi
sudo a2ensite 000-default.conf
sudo service apache2 restart
sudo chmod a+w db.sqlite3
cd ..
sudo chown root:root html
sudo service apache2 restart
sudo chown www-data:www-data html
cd html
sudo chown www-data:www-data db.sqlite3 
sudo service apache2 reload


## visit
http://localhost/

##Configration 
/etc/apache2/sites-available/000-default.conf


<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

<Directory /var/www/html>
<Files django.wsgi>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess html python-path=/var/www/html:/var/www/html/env/lib/python2.7/site-packages
WSGIProcessGroup html
WSGIScriptAlias / /var/www/html/main/wsgi.py
Alias /static /var/www/html/static/
</VirtualHost>




video tutorial
https://www.youtube.com/watch?v=MkawvVse_oY