Install Ultimate SMS on Ubuntu Instance – 22.04/24.04 with Nginx and PHP 8.2
Install Ultimate SMS on Ubuntu Instance with Nginx and PHP 8.2
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 Nginx
Log in with your SSH access, then run the following commands.
sudo apt update sudo apt install nginx
Stop and start Nginx service:
sudo systemctl stop nginx sudo systemctl start nginx
STEP 2: INSTALL PHP8.2 AND DEPENDENCIES
sudo apt update sudo apt install software-properties-common -y sudo add-apt-repository ppa:ondrej/php -y sudo apt update sudo apt install php8.2 php8.2-cli php8.2-common php8.2-fpm php8.2-mysql php8.2-xml php8.2-gd php8.2-zip php8.2-mbstring php8.2-curl php8.2-bcmath php8.2-tokenizer php8.2-json -y
STEP 3: EDIT PHP SETTINGS AS PER ULTIMATE SMS RECOMMENDATIONS
sudo nano /etc/php/8.2/fpm/php.ini
Make the following edits to the php.ini file:
memory_limit=256M upload_max_filesize=124M cgi.fix_pathinfo=0 max_input_vars=3000
Remember to restart the PHP-FPM service for your changes to take effect:
sudo systemctl restart php8.2-fpm
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 codeglen.com:
sudo nano /etc/nginx/sites-available/codeglen.com.conf # Replace with your domain
Add the below lines to the file:
I am creating a virtual host for codeglen.com
server {
listen 80; # Or 443 for HTTPS
server_name codeglen.com www.codeglen.com; # Replace with your domain
root /var/www/html/public; # IMPORTANT: Point to the 'public' directory
index index.php index.html index.htm; # Default files to look for
# Custom log files for this domain
access_log /var/log/nginx/codeglen.com-access.log; # Replace with your domain
error_log /var/log/nginx/codeglen.com-error.log; # Replace with your domain
# This is the Nginx equivalent of Laravel's .htaccess rewrite rules
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# Pass PHP scripts to FastCGI (PHP-FPM) server
location ~ \.php$ {
include snippets/fastcgi-php.conf; # Includes common FastCGI parameters
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; # Adjust if your PHP-FPM socket path or version is different
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params; # Includes other standard FastCGI parameters
}
# Deny access to .env and other sensitive files
location ~ /\.env|^\.git {
deny all;
}
# Deny access to .ht* files
location ~ /\.ht {
deny all;
}
}
STEP 6: CREATE A SYMLINK TO ENABLE THE SITE
sudo ln -s /etc/nginx/sites-available/codeglen.com.conf /etc/nginx/sites-enabled/
Test Nginx configuration for syntax errors:
sudo nginx -t
After saving and closing the file, you’ll need to reload Nginx so the changes take effect:
sudo systemctl reload nginx
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:
sudo chown -R www-data:www-data /var/www/html/ sudo chmod -R 775 /var/www/html/storage sudo chmod -R 775 /var/www/html/bootstrap/cache
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.