Created
November 18, 2019 15:07
-
-
Save linuxfemale/9bfcfa2ae041e23afabaa9f834c23988 to your computer and use it in GitHub Desktop.
Jasmin SMPP Panel for Jasmin SMS Gateway.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
```shell | |
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 [email protected] | |
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/ | |
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment