Install Ultimate SMS on Ubuntu Instance – 20.04/21.04/22.04 with APACHE2 AND PHP8.1
Install Ultimate SMS on Ubuntu Instance with APACHE2 AND PHP8.1
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 PHP8.1 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 php8.1 libapache2-mod-php8.1 php8.1-mbstring php8.1-xmlrpc php8.1-soap php8.1-gd php8.1-xml php8.1-cli php8.1-bcmath php8.1-mysql php8.1-curl php8.1-zip
STEP 3: EDIT PHP SETTINGS AS PER ULTIMATE SMS RECOMMENDATIONS
sudo nano /etc/php/8.1/apache2/php.ini
Make the following edits to the php.ini file:
memory_limit = 256M upload_max_filesize = 64M post_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
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 the ultimate sms site on Apache and then restart the 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
Now upload Ultimate SMS Fresh_Installation_File folder files on /var/www/html folder.
Move to the project root directory and Update Ownership of the directory:
cd /var/www/html sudo chown -R www-data:www-data /var/www/html/
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/zH9r3XC8EbY
If you face any issues with installing Ultimate SMS on an Ubuntu instance then please create a support ticket on our support portal: https://codeglen.ticksy.com/ Our technical team will get in touch with you. It will take a maximum of 24 to 48 hours to reply.