Getting Started -> Installing vspPanel

As with most server / panel environments there are two (2) steps to installing the system. The first is to install the Asterisk PBX system, this is the underlying system which will handle your calls, codecs, transcoding and generally make your voice flow through the server.

Step 1: Installing the Asterisk PBX to work with vspPanel

The following commands will download the latest Asterisk PBX version from the asterisk.org website. Please make sure in the "CD" commands that you replace the [WRITE VERSION HERE] with the version number thats downloaded. (The name of the directory it makes).

yum install -y bison bison-devel ncurses ncurses-devel zlib zlib-devel

yum install -y openssl openssl-devel gnutls-devel gcc gcc-c++ mysql-devel

wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz

wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar.gz

tar -zxvf asterisk-addons-1.4-current.tar.gz

tar -zxvf asterisk-1.4-current.tar.gz

cd asterisk-addons-[WRITE VERSION HERE]

make clean

make

make install

cd asterisk-[WRITE VERSION HERE]

make clean

make

make install

make config

The second thing that needs to be done is to configure Asterisk for use with vspPanel. This is relatively easy and is done by downloading our pre-made configuration scripts and AGI's for the Asterisk PBX. Just type the commands below.

cd /var/lib/asterisk/agi-bin

wget http://www.vsppanel.com/pub/current/agipack.tar.gz

tar -zxvf agipack.tar.gz

cd /etc/asterisk/

wget http://www.vsppanel.com/pub/current/settingspack.tar.gz

tar -zxvf settingspack.tar.gz

chmod 777 /etc/asterisk/

chmod 777 /var/lib/asterisk/agi-bin/

Asterisk should now be installed and ready for use on your system

Finally, lets start our Asterisk server.

service asterisk start 

 

OR if that doesn't work

 /usr/sbin/safe_asterisk

 

And your done with Asterisk, it should be up and running now.

  Step 2: Installing the vspPanel Web Interface 

Installing VSPPanel is similar to installing most other scripts on the internet. Please make sure you have a system which meets the minimum requirements for VSPPanel. (Apache, PHP-Curl, PHP, PHP-Mcrypt, Mysql).

 If you are installing on a fresh Fedora based system use the following to install the required software:

yum install httpd mysql-server php php-curl php-mcrypt php-mysql mysql

After making sure your environment is correct you will need to upload the vspPanel package to your web directory. The most common web directory on a fresh installation is /var/www/html

You can either upload using FTP or using a Web Get command. If you want to web get vspPanel simply enter the following commands:

mkdir /var/www/html/vsppanel

cd /var/www/html/vsppanel 

wget http://www.vsppanel.com/pub/current/vsppanel.tar.gz

 

Once the vspPanel installation file is in your web directory unzip it using the following command:

tar -zxvf vsppanel.tar.gz

 Now we need to set a few permissions to make sure everything is accessible. For more detailed permissions please see the FAQ and Forums.

cd ..

chmod -R 777 vsppanel 

 Your going to need a mySQL user for your vspPanel installation. Lets create one now (assuming you have just installed mySQL server on a clean computer):

service mysqld start

mysql -u root -p

(enter in your root password when asked, or Just press ENTER)

You should now be at the MySQL prompt. Enter in the following command, replacing 'mypassword' with the password you want to use for your SQL installation. (We'll keep it as mypassword for this install process, but DONT DO THAT if you want it to be secure).

GRANT ALL PRIVILEGES ON *.* TO 'vsppaneluser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

 You have just created a new MySQL user with username: vsppaneluser and password mypassword 

We now need to turn on our newly installed HTTPD (apache) server so we can continue the configuration of vspPanel in our browser, to do this type:

service httpd start

service asterisk restart

Now, open your web browser and go to:

http://127.0.0.1/vsppanel/setup.php

OR

http://yourIPaddress/vsppanel/setup.php