How I Set Up VICIdial on Google Cloud Using AlmaLinux (From Scratch)

By Trust Nerds – Real Tech, Real Setup Guides.

🧱 Step 1: Create a Virtual Machine on GCP

βœ… Recommended Specs for VICIdial on Google Cloud:

  • OS: AlmaLinux 8.x
  • RAM: 8 GB minimum (for small setup)
  • vCPUs: 4+
  • Disk: 50 GB SSD
  • Static IP: Yes (for SIP and web access)

πŸ“Œ Commands:

After your instance is ready, SSH into it and run:

sudo dnf update -y
sudo hostnamectl set-hostname vicibox

🧰 Step 2: Install Required Dependencies

bashCopyEditsudo dnf install -y epel-release
sudo dnf install -y gcc make wget perl perl-Net-Telnet perl-DBI perl-DBD-MySQL \
screen ncurses-devel ncurses tftp-server httpd php php-mysqlnd mariadb-server \
mariadb php-pdo php-cli php-mbstring php-gd php-common php-xml php-soap \
perl-CPAN perl-Time-HiRes perl-Net-SSLeay mod_ssl

πŸ—ƒοΈ Step 3: Enable and Start Services

bashCopyEditsudo systemctl enable mariadb httpd
sudo systemctl start mariadb httpd

Secure MariaDB:

bashCopyEditsudo mysql_secure_installation

🌐 Step 4: Configure Firewall and Ports

bashCopyEditsudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --permanent --add-port=5060-5061/udp
sudo firewall-cmd --permanent --add-port=10000-20000/udp
sudo firewall-cmd --permanent --add-port=22/tcp
sudo firewall-cmd --reload

On GCP, open the same ports in the VPC network > firewall rules.


πŸ–₯️ Step 5: Install Asterisk

bashCopyEditcd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
tar -zxvf asterisk-16-current.tar.gz
cd asterisk-16*/
contrib/scripts/install_prereq install
./configure
make menuselect
make
make install
make samples
make config
ldconfig

πŸ“¦ Step 6: Download VICIdial Source

bashCopyEditcd /usr/src/
wget http://download.vicidial.com/iso/vicibox/server.tar.gz
tar -xvzf server.tar.gz
cd vicidial*

Run installer scripts:

bashCopyEdit./install.pl

Follow the prompts for database, web, and dialer setup.


πŸ–§ Step 7: Configure Apache and Web Interface

Edit Apache config if needed:

bashCopyEditnano /etc/httpd/conf/httpd.conf

Make sure DocumentRoot points to:

cssCopyEdit/var/www/html

Start Apache:

bashCopyEditsystemctl restart httpd

πŸ§ͺ Step 8: Set up Crontab for VICIdial

bashCopyEditcrontab -e

Paste in:

bashCopyEdit* * * * * /usr/share/astguiclient/AST_update.pl --debug
* * * * * /usr/share/astguiclient/ASTVDauto_dial.pl --debug

(Add all relevant cronjobs from the VICIdial install guide.)


πŸ”§ Step 9: Configure Asterisk

Basic config in:

bashCopyEditnano /etc/asterisk/sip.conf
nano /etc/asterisk/extensions.conf

Then reload:

bashCopyEditasterisk -rx "reload"

🌐 Step 10: Access the VICIdial Web Panel

Go to:

pgsqlCopyEdithttp://[your-server-IP]/vicidial/admin.php

Login with:

yamlCopyEditUsername: 6666
Password: 1234

βœ… Final Checklist

  • VICIdial installed and accessible
  • Static IP assigned
  • SIP and RTP ports open
  • Crontab configured
  • Apache and Asterisk running

πŸ“ž Questions or Need Help?

If this looks like a lot β€” don’t worry. I’ve done it from scratch, and I can help you do it too.

πŸ“ž Call us at +1-877-364-7090
🌐 trustnerds.net/contact

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top