Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Phalcon 3 on php 7 ubuntu 16.04 apache error

Hi,

I am trying to install phalcon 3 on ubuntu 16.04. I follow the installation guide here https://phalconphp.com/en/download But after I add the extension on php.ini and restart the apache. I got an error.

[email protected]:~$ sudo service apache2 restart Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. [email protected]:~$ systemctl status apache2.service ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: failed (Result: exit-code) since Sun 2016-08-07 12:59:10 PHT; 14s ago Docs: man:systemd-sysv-generator(8) Process: 4841 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 4865 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 07 12:58:50 sarinah-desktop systemd[1]: Starting LSB: Apache2 web server... Aug 07 12:58:50 sarinah-desktop apache2[4865]: * Starting Apache httpd web server apache2 Aug 07 12:58:50 sarinah-desktop apache2[4865]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, Aug 07 12:59:10 sarinah-desktop apache2[4865]: * Aug 07 12:59:10 sarinah-desktop apache2[4865]: * The apache2 instance did not start within 20 seconds. Please read the log files to di Aug 07 12:59:10 sarinah-desktop systemd[1]: apache2.service: Control process exited, code=exited status=1 Aug 07 12:59:10 sarinah-desktop systemd[1]: Failed to start LSB: Apache2 web server. Aug 07 12:59:10 sarinah-desktop systemd[1]: apache2.service: Unit entered failed state. Aug 07 12:59:10 sarinah-desktop systemd[1]: apache2.service: Failed with result 'exit-code'.

Can anyone help me? thanks



2.3k
Accepted
answer
edited Aug '16

I got fixed this issue. thanks to the good people on slacks. Here's what I do.

I comment the extension=phalcon.so on /etc/php/7.0/apache2/php.ini and create an symlink of /etc/php/7.0/mods-available/phalcon.ini and named it 50-phalcon.ini on these directories /etc/php/7.0/apache/conf.d and /etc/php/7.0/cli/conf.d

thats all. i hope this helps too