Install Ultimate SMS on Ubuntu Instance – 16.04/17.10/18.04/20.04 with APACHE2 AND PHP7.4

Install Ultimate SMS on Ubuntu Instance with APACHE2 AND PHP7.4

 

Ultimate SMS is a powerful, flexible, and User-friendly Bulk SMS Marketing Application. It’s also an all-in-one solution for your SMS marketing. It’s easy to use & install.

Please follow the following steps to install Ultimate SMS on Ubuntu Instance.

STEP 1: INSTALL APACHE2

Login with your ssh access then run the following commands.

sudo apt update
sudo apt install apache2

Stop and start apache service:

sudo systemctl stop apache2.service
sudo systemctl start apache2.service

STEP 2: INSTALL PHP7.4 AND DEPENDENCIES

sudo apt-get update 
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php 
sudo apt-get update

sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-cli php7.4-bcmath php7.4-mysql php7.4-curl php7.4-zip

STEP 3: EDIT PHP SETTINGS AS PER ULTIMATE SMS RECOMMENDATIONS

sudo nano /etc/php/7.4/apache2/php.ini

Make the following edits to php.ini file:

memory_limit = 256M
upload_max_filesize = 64M
cgi.fix_pathinfo=0
max_input_vars=3000

STEP 4: COMPOSER INSTALL

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Now upload Ultimate SMS Fresh_Installation_File folder files on /var/www/html folder.
Move to project root directory and Update Ownership of directory:

cd /var/www/html
sudo chown -R www-data:www-data /var/www/html/

STEP 5: CONFIGURE VIRTUALHOST

Create a virtual host config file named usms.conf:

sudo nano /etc/apache2/sites-available/usms.conf

Add the below lines to the file:

I am creating a virtual host for codeglen.com

<VirtualHost *:80>
 #insert your email address instead akasham67@gmail.com
 ServerAdmin akasham67@gmail.com
 #its your project root directory
 DocumentRoot /var/www/html/
 #your domain name or installation path url
 ServerName codeglen.com

<Directory "/var/www/html">
     Options +FollowSymlinks
     AllowOverride All
     Require all granted
</Directory>

 ErrorLog ${APACHE_LOG_DIR}/error.log
 CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Enable rewrite module for .htaccess rewrites and redirects:

sudo a2enmod rewrite

STEP 6: ENABLE SITE AND RESTART APACHE2

Enable ultimate sms site on apache and then restart apache service:

sudo a2ensite usms.conf
sudo a2dissite 000-default
sudo systemctl restart apache2.service

In case you want to change this behavior, you’ll need to edit the /etc/apache2/mods-enabled/dir.conf file and modify the order in which the index.php the file is listed within the DirectoryIndex directive:

sudo nano /etc/apache2/mods-enabled/dir.conf
<IfModule mod_dir.c>
        DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>

After saving and closing the file, you’ll need to reload Apache so the changes take effect:

sudo systemctl reload apache2

STEP 7: INSTALL MySQL

Install MySQL on the server please check this URL: Install MySQL on Ubuntu Instance

STEP 8: INSTALL ULTIMATE SMS

Now browse or insert your ultimate sms installation domain URL on the browser and follow the following video tutorial: https://youtu.be/XKBzca7ojHA?t=303

If you will face any issues with install Ultimate SMS on ubuntu instance then please let me know through my email akasham67@gmail.com or create an account with https://support.codeglen.com or with contact us through support form  https://ultimatesms.codeglen.com/support/