This tutorial will show you how to install WhatsAppBulk on a fresh VPS

CentOS will be used as an Operating System on the tutorial.

If you already have Apache,MYSQL installed skip point 1 and 2.

Also, make sure you run

yum update

So you have the latest repositories.

1. Installing Apache

To install Apache, run this command through SSH:

yum -y install apache2

2. Installing MYSQL

To install MYSQL, run this command through SSH:

yum -y install mysql-server libapache2-mod-auth-mysql php5-mysql

3. Installing PHP5 Libraries

Make sure you go through all of these commands to fully run WhatsAppBulk without any issues.

yum -y install php5 libapache2-mod-php5 php5-mcrypt
yum -y install php5-curl
yum -y install phpmyadmin
a2enmod rewrite

4. Installing ionCube Loader

Download ionCube Loader Wizard and follow the steps to install.
Don’t forget to restart apache using

service apache2 restart

After installing ionCube Loader.

5. Installing Redis

Let’s install redis using yum:

yum install redis-server

then we can start it using :

 sudo service redis-server start

6. Installing WhatsAppBulk

Upload files downloaded from our store to your VPS, and unzip them to any folder you desire, let’s say to:

/var/www

Then, rewrite the permissions of the program using:

chmod -R 755 /var/www

After unzipping, edit your apache document root with:

nano /etc/apache2/sites-enabled/000-default

Edit the value where it say DocumentRoot , to :

DocumentRoot /var/www/public

Also, make sure AllowOverride is set to All

7. Configuring Database

Using phpmyadmin,create a database named “wbulk” and import the file database/wbulk.sql you downloaded from our store
Then, open this file in any text editor you wish :

/var/www/app/config/database.php

Then, edit these information to match your database information:

		'mysql' => array(
			'driver'    => 'mysql',
			'host'      => 'localhost',
			'database'  => 'wbulk',
			'username'  => 'root',
			'password'  => '',
			'charset'   => 'utf8',
			'collation' => 'utf8_unicode_ci',
			'prefix'    => '',
		),

8. Placing your license

If you didn’t get your license , Click here to learn how to configure your license 
Place your license in directory the root directory of the platform, which is here:

/var/www

So the license.key path becomes

/var/www/license.key

And directory tree:

|-- CONTRIBUTING.md
|-- app
|-- artisan
|-- bootstrap
|-- composer.json
|-- composer.lock
|-- cron.txt
|-- nextChallenge.dat
|-- phpunit.xml
|-- public
|-- readme.md
|-- server.php
|-- vendor
|-- license.key

9. Installing Supervisor & Starting services

This step if you installed beanstalkd or redis , no need for it when using sync as Queue System

To install Supervisor, use: (Make sure Supervisor version is 3 or higher)

yum install supervisord

If you had trouble installing supervisor directly, you can follow the manual guide to install supervisor then come back to configure

Then go to /etc/supervisord.conf and add:

[program:wab]
command=/usr/local/bin/php artisan queue:listen --env=production --timeout=0 --tries=3
directory=/var/www
autostart=yes
autorestart=yes

Then start supervisord, using:

sudo service supervisord restart


10. Adding Crons

This cron is mainly for Inbox feature and WhatsApp Catcher ( Version 4.0 and up only ), setup the following cron ( edit directory , if needed ):

0 * * * * cd /var/www; /usr/bin/php artisan RunInbox
0 * * * * cd /var/www; /usr/bin/php artisan WaCatcher

Tip: This cron is setup to work once per hour, you can edit the frequency if you’d like

11. Finalizing

Head to your domain, you will be auto redirected to login
Default login credentials are:

Version 4.0 and up:
Email: admin
Password: admin

Version 2.X and 3.X:
Email: admin
Password: 1234

Leave a Reply

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