Installing in CentOS 6.5, possible additions to the install script

992 views
Skip to first unread message

Andy Lauppe

unread,
Apr 15, 2014, 11:06:13 AM4/15/14
to as...@googlegroups.com
I'm installing astpp in CentOS 6.5, and I've noticed that the installer could use a couple changes. Here are the things I've had to change.

I added the following lines before perl -MCPAN -e "install... to get it to stop asking about queueing dependancies, etc.

export PERL_MM_USE_DEFAULT=1
export PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"

I've had to add the following packages via yum to get freeswitch to compile properly:

sqlite-devel libsqlite3-dev pcre-devel speex-devel libedit-devel


 
I believe, if these things were added to the script, it would probably completely without any errors in most systems, preventing a fair amount of debugging that ends up being required to get astpp to work properly. 

My $0.02.
Andy

Samir Doshi

unread,
Apr 15, 2014, 2:29:51 PM4/15/14
to as...@googlegroups.com
Hi Andy,

I appreciate your suggestion.
It would be great if it will stop asking dependency questions. It will reduce overhead in installation.

We will apply this patch in installation script and update GIT.

Thanks,
Samir Doshi


--
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/4167a611-5329-424b-92df-a95c7e6541a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

MukhtarBol

unread,
May 11, 2014, 8:46:56 AM5/11/14
to as...@googlegroups.com
Hello guys,

I have been trying to install astpp with freeswitch following installation guide but ran into something. I am not an expert but I was able to follow without errors until this step;
* Edit modules.conf
    Enable mod_xml_curl, mod_xml_cdr, mod_perl (If you want to use calling card features)

* Compile the Source
    ./configure
    make
Can you guys guide over this hurdle? I tried to edit the modules.config file in the freeswitch directory adding the above three lines but to a no avail. I tried to move on with the rest but I keep getting "no such file or directory exists: I know you guys are laughing at me by now, but I just to use this wonderful free software for calling card business. I have played around with couple other open source software but decided to settle on this one since it's a complete package and serves the purpose well.

By the way, I using Amazon ec2 CentOS 6.4 x86_64 AMI as my platform. Will this cause troubles down the road in your view? I would really appreciate your comments and instructions, because I am such a newbie with no previous experience with the product.

THANKS.

Samir Doshi

unread,
May 12, 2014, 3:16:58 AM5/12/14
to as...@googlegroups.com
Hi,

Did you download freeswitch? If so then please check path.
You will need to modify modules.conf file in source of freeswitch.

Regarding ec2, nope i don't think there will be any issue.

I would suggest to use auto installation script for easy installation.

Thanks,
Samir Doshi


--
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.

Mukhtar Mohamud

unread,
May 12, 2014, 5:40:26 PM5/12/14
to as...@googlegroups.com
Thanks for the response.

Yes, I did follow the steps and everything looked perfect untill the point where I had to make changes to modules.conf file by removing # symbol from mod_xml_curl as well mod_perll. I went to configure the source but when I tried to 'make' and it says "make file not found". I can't get passed this point even I tried bot CentOS and Debian. I would appreciate if you can tell me where I can find the easy installer and to excute it

This is the link I was referring to https://github.com/ASTPP/ASTPP/blob/master/INSTALL. Isn't this the official ASTPP install guide, or there's another one I am missing.

Thanks,


Mukhtar Mohamud

unread,
May 13, 2014, 3:18:11 AM5/13/14
to as...@googlegroups.com
Hi Samir.

I thin you were referring to the following Quick Installation command on http://wiki.astpp.org/index.php?title=Installation_Guide. I tried tried this on a fresh CentOS but all I got was a question for ASTPP upgrade. I ran it but ended up back on the command prompt and nothing afterwards, no dancing scripts or funny things happening. Then I thought this might for upgrades; since I didn't ASTPP on my system, I went on to try the manual install with no success so far. If this command is the Auto Installer, please tell me what I need to run it successfully. Do I need to install LAMP on my server first along with "git" or "wget"? If you can show me the way, I would greately appreciate.

# wget --no-check-certificate http://bit.ly/SouxDj -O install.sh
# chmod +x install.sh # ./install.sh
Thanks,
Mukhtar.

Juned Khan

unread,
May 13, 2014, 3:30:40 AM5/13/14
to Lalji Mirza Pa
Hi Mukhtar,


I need to install LAMP on my server first along with "git" or "wget"?
No install script will do everything for you. also manual steps are given in case you want to install components your way.

Regarding your "make file not found" no problem. pleas confirm in FS source directory Makefile is there or not. in other case i suggest you to download fresh Freeswitch source and install it again.you will get latest stable release version here https://wiki.freeswitch.org/wiki/Main_Page and for mod_perl related instructions follow this http://wiki.freeswitch.org/wiki/Mod_perl






For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Juned Khan

Mukhtar Mohamud

unread,
May 15, 2014, 7:34:49 AM5/15/14
to as...@googlegroups.com
Hello guys.

I went to wiki.freeswitch.org and other sources but found difficult to install freeswitch mannually, bacause I ran into too many problems and bugs. At some point, I was able to build it but in the end it crumbled like a cookie. I figured it ight b easier to usethe ASTPP auto installer for ease, but then again there's enough docs on how to execute it what prerequisites are required before running the script.
I got the following output after running the script on a fresh install;

Backup Directory : /usr/src/ASTPP_15052014111202
mv: cannot stat `/usr/src/ASTPP': No such file or directory
mv: cannot stat `/var/www/html/astpp': No such file or directory
mv: cannot stat `/var/www/cgi-bin/*': No such file or directory
mv: cannot stat `/usr/local/astpp': No such file or directory
Enter your MySQL root password:

Can you guys explain what's going on here. I think I need to install all rpm and the other stuff required in the mannual procedure. Can anyone elaborate any further please. I am trying to learn this new product and play with it if you don't mind. In the end, the goal, for me, is to use for calling card biz. But first, I need to get know the product and I will my time with it.

Thanks,




Juned Khan

unread,
May 15, 2014, 7:39:50 AM5/15/14
to as...@googlegroups.com
Hi Mukhtar,

You selected Upgrade ASTPP to YES and script tried to backup necessary ASTPP directory as well as database but as ASTPP was not installed properly on your system so it just failed to complete backup process.

That's what happened.



For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Juned Khan
iNextrix Technologies Pvt Ltd.
www.inextrix.com

Mukhtar Mohamud

unread,
May 15, 2014, 8:02:14 AM5/15/14
to as...@googlegroups.com
Thanks bro for the response.

So, the "Quick Installation" script I am using on http://wiki.astpp.org/index.php?title=Installation_Guide is the correct one but I was supposed to select 'n" rather than "y". I got it. What packages do I need to install first before running the script and It works with both Debian Wheezy and CentOS 6. Correct?

Thanks,


Juned Khan

unread,
May 15, 2014, 9:44:47 AM5/15/14
to Lalji Mirza Pa
Hi Mukhtar,

You don't need to install any packages manually, install script do everything for you. just keep monitoring the install process if you found something missing(any packages or dependencies) then do that manually.



For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Juned Khan

Mukhtar Mohamud

unread,
May 15, 2014, 10:09:07 AM5/15/14
to as...@googlegroups.com

Hi Juned

just did exactly as you said with or without the packages pre-intalled and got the result, which is what you see below. I chose "n" each time wound up back on the command prompt and nothing happened afterwards.I

Do you want to upgrade ASTPP?
(y/n)? :

The following are the command lines I used one at a time. Please correct me if I am using a wrong script.By the way, I got the same result using both Debian Wheezy and CentOS.

Mukhtar Mohamud

unread,
May 16, 2014, 4:15:44 AM5/16/14
to as...@googlegroups.com
Hi friends,

Point of correction!!! The script seems to be working fine; I think I doubled pressed '"n" and that exited me out of the installer. Anyway, I ran the script and it finshed the installation just fine. But when I tried to locate the admin page by using the EC2 DNS that I provided during the installation as qfdn, connection timed out as if there was nothing on my server. Any advice? The installer finshed the work and gave the link to back page along with the default login credentials, but the problem is I can't find the page.

Thanks,

Mukhtar Mohamud

unread,
May 25, 2014, 12:33:37 PM5/25/14
to as...@googlegroups.com
Hello,

I have made changes to the instalerl script as Andy suggested earlier on but still no luck. Here's the link to the changed script https://www.dropbox.com/s/cvz0op29jzfwqdg/install.sh. I kept getting the following errors:

Warning: no success downloading '/root/.cpan/sources/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-2.125.tar.gz.tmp5101'. Giving up on it. at /usr/share/perl5/CPAN/Distribution.pm line 379

Can anyone describe what's missing here? Do I need to install some packages mannually? If so, what packages. I am using CentOS 6.3 on Amaon ec2. I would appreciate greately your tips. In last few days, I have managed to install AsteriskNow along with A2billing as an alternative but I'd love to use ASTPP iand Freeswitch if possible.

Thanks,
Mukhtar

Mukhtar Mohamud

unread,
May 25, 2014, 2:28:55 PM5/25/14
to as...@googlegroups.com
H Juned.

I went back to check my Freeswitch directory to see if the makefile is there as you suggested in one of the emails you sent me before. I have found the path to the makefile using winscp connection and the following is where the makefile is located.

 /usr/local/src/freeswitch/build. Is the akefile in the right place, because I keep getting the following error:

make: *** No targets specified and no makefile found.  Stop.

Please help me figure out this mytery. I followed themannual installation on wiki.astpp.org.

Thanks,

Juned Khan

unread,
May 25, 2014, 2:48:49 PM5/25/14
to Lalji Mirza Pa

i mukhtar,

I have already suggested you to download new freeswitch source and install again. Did u do that ? If no then what you have to do now is

Remove existing freeswitch source

rm -rf /usr/local/src/freeswitch

And then download latest stable from freeswitch site which  is1.2.23.

Then do installation nad yeah install dependencies first.

Mukhtar Mohamud

unread,
May 25, 2014, 5:18:59 PM5/25/14
to as...@googlegroups.com
Hi my friend.

I have installed freeswitch over and over again from fresh, from the links you sent me before. I, e, from Freeswitch git. Every time I ran the instal, of course installing all the dependencies and all required packages first following the steps with so much focus, I kept getting the same error I have mentioned in my previous email regarding the make and make install commands. I can delete and start it over again but I am not sure if I will ever get it working.

Please tell if this is the version you were referring to 1.2.23, released on 19-Mar-2014. I got this from https://wiki.freeswitch.org/wiki/Main_Page I REALLY want to get a triumph over this freeswitch challange once for all, and I would appreciate your inputs.

Thanks,
Mukhtar.


Samir Doshi

unread,
May 26, 2014, 3:21:57 AM5/26/14
to as...@googlegroups.com
Hi Mukhtar,

Reading your issue thread, it looks like your fs compilation is not completing 100%.

Can you please compile freeswitch again using ./configure and send entire log?

Thanks,
Samir Doshi


Mukhtar Mohamud

unread,
May 26, 2014, 4:40:15 AM5/26/14
to as...@googlegroups.com
Hi Huned.

I am begining to accept a defeat. This ridiculous Freaswitch is driving me crazy. I spent a whole day trying to get it up and running. I attempted the git install, then uploaded the laltest version via winscp but it didn't work. I started all over at six times and can't compile the stupid software.

I did install all required packages and it says "configure: error: no usable libjpeg; please install libjpeg devel package or equivalent". I ran"yum install libjpeg devel -y" and got the following message "Package libjpeg-turbo-1.2.1-3.el6_5.x86_64 already installed and latest version
No package devel available". What the hell is wrong with this?

I also noticed the git install doesn't install all the files that come with tar file. Please tell me what do next. I can't cofigure let alone make and build it.

Thanks,



Juned Khan

unread,
May 26, 2014, 6:25:02 AM5/26/14
to Lalji Mirza Pa
Mukhtar, you need to install libjpeg development package. "yum install libjpeg devel -y"  will not install that. you have to run "yum install libjpeg-devel" this will install that missing development package for you. similarly if you get same kinda of error then just do the same.

Also if you are downloading FS using git then you have to run ./bootstrap.sh script first which will download all required files, then you can follow normal steps like ./configure, make etc. but if you are downloading FS source in tar then no need to run that script.



For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Juned Khan

Mukhtar Mohamud

unread,
May 27, 2014, 4:40:16 PM5/27/14
to as...@googlegroups.com
HI Samir.

It seems that I have managed to configure freeswitch and I was able to run the mak and make install...At the end  of make command, here's what I got:

make[3]: *** [mod_perl-all] Error 1
make[3]: Leaving directory `/usr/local/src/freeswitch/src/mod'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/freeswitch/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/freeswitch'
make: *** [all] Error 2
[root@ip-172-31-4-239 freeswitch]# ln -s /usr/local/freeswitch/bin/freeswitch /usr/local/bin/freeswitch
[root@ip-172-31-4-239 freeswitch]# ln -s /usr/local/freeswitch/bin/fs_cli /usr/local/bin/fs_cli
[root@ip-172-31-4-239 freeswitch]# cp /usr/src/ASTPP/freeswitch/init/freeswitch.init to /etc/init.d/freeswitch
cp: target `/etc/init.d/freeswitch' is not a directory
[root@ip-172-31-4-239 freeswitch]# cd /usr/src/
[root@ip-172-31-4-239 src]#

Is this common error that doesn't pose any problms, or something serous? Secondly, before ASTPP installation, should I follow the steps on wiki.astpp.org and do the following, or I just skip  to ASTPP installation with git?

Configure Freeswitch Startup Script
[CentOS]
   cp /usr/src/ASTPP/freeswitch/init/freeswitch.init to /etc/init.d/freeswitch
   chmod 755 /etc/init.d/freeswitch
   chkconfig --add freeswitch
   chkconfig --level 345 freeswitch on
Thanks,
Mukhtar


Mukhtar Mohamud

unread,
May 27, 2014, 7:37:49 PM5/27/14
to as...@googlegroups.com
Hello Samir,

My goal was to familiarize myself with AST and Freeswitch and understand the inner workings of the product before using it in real world scenario. Though I haven't been able to get it up running after all those  of tireless efforts that I put in, I still believe it's a much better product than A2billing in terms of GUI, features, etc and the fact that the authors offer both community and commercial support. I would like to know about the commercial support and ongoing maintenance support available. I am ready to experiment the Calling card business with this product if I can afford the commercial support. Please send me your proposal for bot installation of ASTPP and freeswitch as well as for future maintenance services. I look forward to hearing from you.

Thanks for the support,
Mukhtar.

Mukhtar Mohamud

unread,
May 29, 2014, 2:03:08 AM5/29/14
to as...@googlegroups.com
Hey guys,

I sent a request for commercial support the other day and didnt get a response. I was wondering if anyone can direct me to the right people who can help with the installation and any future assistance.

Thanks,
Mukhtar.

Samir Doshi

unread,
May 29, 2014, 2:21:29 AM5/29/14
to as...@googlegroups.com
Hi,

We sent you an email.

Thanks,
Samir Doshi


devnull

unread,
May 29, 2014, 2:51:54 PM5/29/14
to as...@googlegroups.com
Another thing you might want to consider is switching from cpan to cpanm in the installation. It may require a few more modules to install, but its well worth it and it automatically installs the dependencies by default, amongst other things. Just a thought.
regards;

Mukhtar Mohamud

unread,
Jun 24, 2014, 2:59:05 PM6/24/14
to as...@googlegroups.com
Hello Samir.

I am back again. I felt that I needed to take the time to understand how things work and get inside the code. I have been learning and exploring few things lately, and  I have managed to compile/configure and integrate Opensips and Freeswitch plus Opensips-cp successfully. I am now attempting to install ASTPP on top of them but I ena2enmod rewrite" command countered database connection failure, something I have noticed other users in the group were experiencing similar issues in the past but didn't find a working solution in the threads that I have read. I have run "a2enmod rewrite" command and restarted apache2 with no success. Here's the error I am dealing with:

A Database Error Occurred

Error Number: 1146

Table 'astpp.ci_sessions' doesn't exist

INSERT INTO `ci_sessions` (`session_id`, `ip_address`, `user_agent`, `last_activity`, `user_data`) VALUES ('f5023e49e447636108fd6facc85ee79b', '68.7.250.65', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0', 1403632949, '')

Filename: libraries/Session.php

Line Number: 328

I went to /var/log/apache2/error.log and here' s what I found:

[Thu Jun 19 03:08:08 2014] [notice] Apache/2.2.22 (Debian) configured -- resumi$
[Thu Jun 19 03:08:08 2014] [notice] caught SIGTERM, shutting down
[Thu Jun 19 03:08:10 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11$
[Thu Jun 19 03:08:14 2014] [notice] Graceful restart requested, doing restart
[Thu Jun 19 03:08:14 2014] [error] (9)Bad file descriptor: apr_socket_accept: ($
[Thu Jun 19 03:08:14 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11$
[Thu Jun 19 03:20:46 2014] [notice] Graceful restart requested, doing restart
[Thu Jun 19 03:20:46 2014] [error] (9)Bad file descriptor: apr_socket_accept: ($
[Thu Jun 19 03:20:46 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11$
[Thu Jun 19 03:20:48 2014] [notice] Graceful restart requested, doing restart
[Thu Jun 19 03:20:48 2014] [error] (9)Bad file descriptor: apr_socket_accept: ($
[Thu Jun 19 03:20:48 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11$
[Thu Jun 19 05:33:18 2014] [notice] caught SIGTERM, shutting down
[Thu Jun 19 05:33:19 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11$
[Thu Jun 19 08:55:06 2014] [notice] caught SIGTERM, shutting down
[Thu Jun 19 08:55:07 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11$
[Thu Jun 19 08:59:57 2014] [error] [client 68.7.250.65] PHP Warning:  Creating $
[Thu Jun 19 08:59:57 2014] [error] [client 68.7.250.65] PHP Notice:  Undefined $
[Thu Jun 19 08:59:57 2014] [error] [client 68.7.250.65] PHP Notice:  Undefined $

What do I need to fix? Any suggestions/recommendations will be greatly appreciated.

Thanks,
Mukhtar.





Mukhtar Mohamud

unread,
Jun 24, 2014, 6:26:22 PM6/24/14
to as...@googlegroups.com
Hi.

Just aa little question! I kept getting error whe I ran the following command with my mysql root password. Other than that,I created a database and updated "/var/lib/astpp/astpp-config.conf" file with the database credentials. I also changed the base url with server ip with the port :8081 number.
mysql -uroot -p<PASSWORD> astpp < /usr/src/ASTPP/sql/astpp-1.7.3-beta.sql
mysql -uroot -p<PASSWORD> astpp < /usr/src/ASTPP/sql/astpp-upgrade-1.7.3.sql
My question is, should run the aobove command with the wqay it's writen, or I have to login mysql root first? I think this is where the problem arises and why I can't connect to the database, because everything elsse seems to be in place. Please advice!!!

Thanks,
Mukhtar Mohamud.


Juned Khan

unread,
Jun 25, 2014, 1:04:12 AM6/25/14
to Lalji Mirza Pa
Mukhtar, above commands should be run as they are written.
you just need to replace the <PASSWORD> with you actual root password.


--
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.

For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Juned Khan

Mukhtar Mohamud

unread,
Jun 25, 2014, 1:05:35 AM6/25/14
to as...@googlegroups.com
Hello friends.

Never mind, I figured why I wasn't able to connect to my database. I didn't run the spl script properly and that's why. Everything seems to be working just fine for now.

Many thanks,
Mukhtar Mohamud.

Mukhtar Mohamud

unread,
Jul 15, 2014, 8:41:27 AM7/15/14
to as...@googlegroups.com
Hi friends,

I was wondering how I can access the customer and reseller login pages. It looks that I have completed the installation and I am ready to start playing with it but there's "get started" guide on what to do after installation. Any suggestions?

Thanks,
Mukhtar MOhamud.

Juned Khan

unread,
Jul 15, 2014, 8:50:46 AM7/15/14
to as...@googlegroups.com
Mukhtar, I think you are looking for What To Do Next page
BTW, you just need to create customer or reseller under main admin
then you can use those credentials to login into their accounts.


--
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.

For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Juned Khan

Mukhtar Mohamud

unread,
Jul 16, 2014, 9:20:52 AM7/16/14
to as...@googlegroups.com
Hello Juned.

Thanks for help. I know ASTPP can be integrated with oScommerce for e-commerce purposes, but I was wondering if that means rates can be shown on front side of oscommerce too? I am planning to use Wordpress site with Woo=commerce plug-in to sell the calling cards online. Please respond.

Thanks,
Mukhtar Mohamud.


Reply all
Reply to author
Forward
0 new messages