This morning I got up early cause , as usual , I get interested into an article , and this time it was this one:
This i think will solve some’ issues (which I'll talk about later in the blog). As I read the article I decided to launch a routine update on my laptop, which is running Ubuntu 14.04 LTS.
And then, as I'm done reading , I move onto the web application I'm developing and… it works no more… I notice that apache is down …
After a good half an hour of panic, that at 6 A.M. on a sunday isn't ideal, I discover that the update tried to install php7, which apache didn't like and so segfaulted 🙁
I decide to follow an advice i found on the internet and so this is what I've done:
sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0 sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart sudo update-alternatives --set php /usr/bin/php5.6[/code]
but it still wasn't working !!!
I panic, although not too much, I start looking into logs and than
suma-ThinkPad-X201 kernel: [10414.788930] apache2: segfault at 7fb14c6f41b0 ip 00007fb14af46d96 sp 00007ffcde001ed0 error 6 in libphp7.1.so[7fb14acf4000+399000]
I understand that there's something wrong in the modules…. now, these kind of commands such as a2dismod etc. I never liked them, they do things that were once done manually, but I used them anyway, so that my colleagues wouldn't tell me I'm old :-D, anyway, a quick manual look into the modules loaded by Apache and I found out that I had three versions of php installed and that I was trying to load two at a time.… but then my family woke up, so bye bye work .. argh