SOLVED Old 1.4 system - asterisk wont start

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
Came into work today and nothing has been done to the box in months - but something happened during the log rotation last night - now when asterisk tries to start I get the following....

Code:
root@pbxcb:~ $ amportal start


PHP Fatal error:  Call to undefined function posix_getpwuid() in /var/lib/asterisk/bin/gen_amp_conf.php on line 3
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in '/etc/asterisk' is set to  but the directory
does not exists. Attempting to create it with: 'mkdir -p '

mkdir: missing operand
Try `mkdir --help' for more information.
**** ERROR: COULD NOT CREATE  ****
Attempt to execute 'mkdir -p ' failed with an exit code of 1
You must create this directory and the try again.
root@pbxcb:~ $

I dont even know where to start looking....

suggestions?

Myk
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
ok, that gets asterisk started, but amportal command still fails...

I think I need to restore a freepbx backup from a couple of days ago - but am not sure

Myk
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Restoring freepbx wont help you.

For some reason you must have recompiled PHP without CLI posix support. Don't ask me how because it's nearly impossible to do so.

I would advise:

yum remove php*

yum install php*
 

jmullinix

Guru
Joined
Oct 21, 2007
Messages
1,263
Reaction score
7
If this is a fairly old hardware, you might want to check your hard drive for errors. If the machine is exposed to the Internet (SSH or Web) it may have been hacked.
 

blanchae

Guru
Joined
Mar 12, 2008
Messages
1,910
Reaction score
9
What does the "df" command show for your hard-drive? Maybe your drive is full?
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
hardware is fine - been checked....

Is old enough that centos 6.2 no longer loads a network driver for it where the previous version did....

so I decided to use the 17571/purple install - everything went fine UNTIL i ran update100 to newer php...

Then I got the above error and the system is toast again, 1/2 the default modules are greyed out, asterisk will not start via amportal program.

Gonna have to wipe it and install again. I am just hoping the freepbx backup from the 16th will restore correctly and get the basic system back....

Myk
 

eCase

New Member
Joined
Jan 26, 2011
Messages
161
Reaction score
0
I have a similar issue. Following your advice, I was able to:
yum remove php*
However, when I tried to yum install php* there was no package to install.
Now I cannot access the freepbx web gui to my piaf server....
Is there another way to install php?
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
download all the correct version rpm's onto the machine and rpm -ivh *.rpm may work

Tom

BTW yum depends of php!
 

eCase

New Member
Joined
Jan 26, 2011
Messages
161
Reaction score
0
Thanks again Tom - which version is correct for piaf 1.7.5.7 freepbx 2.9 asterisk 1.8.7.2 centos 5.7 kernel version 2.6.18-274.18.1.el5 - 32bit?
I've been all over the web tonight and cant find a way to install php. Calls still work, but I can't access the freepbx gui.
I think I may scrub this in the morning and install piaf 20621 from scratch.
 

Members online

No members online now.

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
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.
Top