Solved pkg upgrade => cacti/apache24 then segmentation fault (11)

ProServ

Active Member

Reaction score: 2
Messages: 113

Hi, this morning decided to roll the dice and run pkg upgrade because of old packages. After the pkg upgrade completed, could not connect to our cacti server. Deinstalled php71 and its extensions, installed php56 + -extensions. Chose the php extensions to match the Makefile in /usr/ports/net-mgmt/cacti

Normally we access cacti with a redirect to https. When trying, could not reach page.

The log is showing:
[Thu Oct 04 11:37:58.743522 2018] [core:notice] [pid 87551] AH00052: child pid 87572 exit signal Segmentation fault (11)

At a loss here as to why its seg faulting.
Anyone have any ideas?
Thanks.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,672
Messages: 30,581

Make sure you have the correct mod_php* installed. I've noticed when switching PHP versions that this module isn't automatically changed and needs to be done by hand.
 
OP
OP
P

ProServ

Active Member

Reaction score: 2
Messages: 113

Hi SirDice, had mod_php71 installed. Deinstalling and will install mod_php56 and try.
Thanks.
 
OP
OP
P

ProServ

Active Member

Reaction score: 2
Messages: 113

Hi SirDice, mod_php56 was already installed. However, deinstalled and ran a make install for it and then restarted apache24 and can now access cacti.

Thank you for your help SirDice!
 
OP
OP
P

ProServ

Active Member

Reaction score: 2
Messages: 113

One more thing SirDice,
I am assuming when cacti was upgrade with pkg upgrade, it installed php71 but not mod_php71. So here is the question. If php56* and mod_php56 is deinstalled, and then install php71 and extensions and then mod_php71 and finally deinstall/reinstall cacti, you think it will work?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,672
Messages: 30,581

It should, yes. The default PHP version recently changed, which is probably why it tried to switch the first time. But thanks to FLAVORs you should be able to switch back and forth between 5.6 and 7.1. With the notable exception of the mod_php* package, that requires a bit of manual intervention.
 
OP
OP
P

ProServ

Active Member

Reaction score: 2
Messages: 113

Thanks for getting back to me SirDice. Will deinstall php56-\*, mod_php56 and cacti. Then will install php71, mod_php71 and cacti and will see if it works. Hopefully it does.
 
OP
OP
P

ProServ

Active Member

Reaction score: 2
Messages: 113

Hi SirDice, yes you were 100% dead on. cacti with php71 is working just fine. Thank you very much!
 
Top