OpenVZ Remote Installation

luke802

New Member
Joined
Nov 23, 2007
Messages
6
Reaction score
0
Hello,

I have PBX-In-A-Flash installed locally and want to also install it on a remote dedicated server. The server is stable and running CentOS5 and the LAMP stack already.

What would be the best way to go about doing this?

****************************
By the way: It is also possible for me to get the CentOS5 Install refreshed so that there is nothing unusual except SSH access if that makes the remote install easier than having the LAMP stack pre-installed.
****************************
 
****************************
By the way: It is also possible for me to get the CentOS5 Install refreshed so that there is nothing unusual except SSH access if that makes the remote install easier than having the LAMP stack pre-installed.
 
Hi

The main issue is to get the dependencies properly installed. It may be easiest to start with a fresh install.

To get an idea of the dependencies - you can look in the anaconda file in /root of your local install, which shows which packages have been installed.

It may not be a bad idea to practice this on vmware before you start, by installing a basic server from the centos DVD or minmial install from Centos CD - disk 1

Once the dependencies are installed, then you should be able to download the install script from http:/pbxinaflash/scripts/install.sh and everything should proceed as normal.

You can inspect the install-pbx.log in /root after install to make sure everything went according to plan.

Yours

Joe
 
Thanks Joe,

I will attempt that and buzz you back here on the forum. It's just that I find the a2bililng software a wonderful tool thats just a pain to install on its own. Great work they've done here on the integration with pbx-in-a-flash. Just great.
 
Hi

I'd be interested to see how you get on with A2Billing, as I wrote the integration script, So you can blame me if it does not go well ;-)

I have not heavily tested the A2Billing install script. It's a first for me, as I usually install A2Billing on Centos 4, asterisk 1.2.24, MySQL5 and PHP4, and of course, FreePBX, which all sit nicely together. So in my role as "Commercial Director -Asterisk2Billing", I'd really like some feedback on the script.

Joe
 
Hi

The main issue is to get the dependencies properly installed. It may be easiest to start with a fresh install.

To get an idea of the dependencies - you can look in the anaconda file in /root of your local install, which shows which packages have been installed.

It may not be a bad idea to practice this on vmware before you start, by installing a basic server from the centos DVD or minmial install from Centos CD - disk 1

Once the dependencies are installed, then you should be able to download the install script from http:/pbxinaflash/scripts/install.sh and everything should proceed as normal.

You can inspect the install-pbx.log in /root after install to make sure everything went according to plan.

Yours

Joe
Hi Joe,
Maybe I am missing something. Where exactly am I supposed to find the install.sh file ?

Thanks.
 
oops typo

http:/pbxinaflash.net/scripts/install.sh
 
Remote Installation Prep script

I've attached a script I've been using to prepare a CentOS 5 server only install for PBX-in-a-flash.

The resulting PBX-in-a-flash installation seems OK, but I've not had time to test extensively.

Tested so far on VMWare Fusion. Real live remote install next week.

Any feedback would be most welcome.

JT
 

Attachments

How do you run the script

JT,

How does one supposed to run the script ?
Do you need to download the txt file to the machine and run it ? How exactly ? Can you please give some basic instructions ?

Thanks.
 
Log in to your server as root. Then...
Code:
cd /root
wget scriptname.sh
chmod +x scriptname.sh
./scriptname.sh
There are lots of additional scripts in the Add-Ons Forum.
 
Asterisk is not running

JT,

I used the script and it went quite smoothly. I believe that there were some error messages which I couldn't follow. When I try to view the piaf_install.log I can't find the file.
When typing asterisk -vr it returns command not found. On the web interface FreePBX is not found.
What did I do wrong ?

Thanks,

OY
 
Sorry, but our support (lousy as it is) assumes you've installed PBX in a Flash using our ISO build. You're more than welcome to roll your own but, if you do, then you're on your own. Not being ugly but there's just no way to troubleshoot a system with thousands of configuration options, none of which any of us know. Heed the teachings of the American Indians: "Don't wander off the reservation." ;)
 
Actually all the scripts fall in that demilitarized zone a bit. This particular topic is a precursor of sorts to the promised remote server package to be offered (commercially, I would guess) in the future. In that light I am hoping to hear some battle tales from those using this script.

Also, is anybody doing this on a openvz or virtuozzo node?

Guessing this will all be made extremely clear when the official remote ball is launched.
 
Is this a reply to something specific ?
Did you mean to say that the script would NOT work ???

Did anybody else try it ?
 
I know that it is possible to run Asterisk on Virtuozzo, not sure about PIAF exactly. I am interested in testing it with Xensource. Did anybody try it ?
 
Ward has the right of it.

The PBX in a Flash guys are doing an excellent job and you shouldn't expect much support if you venture off their path.

I'll do my best to support folks who try the script, but before you start down that path you would be WELL ADVISED to have experience installing and using PBX in a Flash as supplied AND to have linux administrative experience 'cause things can a do go wrong especially when you try to install on top of an existing system.

JT
 
Hi JT,

Thanks. Here is an excerpt from the ending of the log file. Just to repeat what I mentioned before; FreePBX is not on the web interface, and asterisk command cannot be found. I installed it on a CentOS 5.0.
Thanks.

rm: cannot remove `/boot/grub/splash.xpm.gz': No such file or directory
cp: cannot create regular file `/boot/grub/splash.xpm.gz': No such file or directory
`/etc/yum.repos.d/CentOS-Base.repo' -> `/root/CentOS-Base.repo.org'

FATAL: can not find freepbx_engine to start Asterisk
Generating '/etc/zaptel.conf'
Generating '/etc/asterisk/zapata-auto.conf'
mv: accessing `/etc/asterisk/zapata-auto.conf.bak': Not a directory
/usr/local/sbin/genzaptelconf: line 577: /etc/asterisk/zapata-auto.conf: Not a directory
/usr/local/sbin/genzaptelconf: line 64: ztcfg: command not found

FATAL: can not find freepbx_engine to start Asterisk
/usr/local/sbin/ast-cmd: line 111: /usr/sbin/asterisk: No such file or directory
 
Orenyny,

That looks like a pretty fundamental problem. Like what in world is going on?

Are you running as root?

Can you cd to /boot/grub ? Is there anything there?

What are the contents of /etc/redhat-release ?

JT
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top