PHP Warning: Cannot load module 'phalcon' because required module 'psr' is not loaded

Hello ,

Need you help in installation of phalcon, I install phalcon using these steps https://phalconphp.com/en/download/linux

after successfull installation. when Im checking that phalcon is successfully install and loaded then I'm getting this error.

I'm Usin PHP 7.0 , ubuntu

PHP Warning: Cannot load module 'phalcon' because required module 'psr' is not loaded in Unknown on line 0

Need Help guys

edited Feb '19

You are using v4.0.x release which is alpha release and which requires PSR module.

https://docs.phalconphp.com/4.0/en/upgrade#psr

Use 3.4.x release as it is LTS.

Thanks for the quick response. I'm trying git checkout v3.1.1

it install phalcon completly but after installation I'm not able to start apache2.

I'm getting these errors.

[email protected]:~/cphalcon/build$ 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 Thu 2019-02-07 11:48:11 IST; 2min 20s ago Docs: man:systemd-sysv-generator(8) Process: 2662 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 2770 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Feb 07 11:47:50 KELLGGNLPTP0336 systemd[1]: Starting LSB: Apache2 web server... Feb 07 11:47:51 KELLGGNLPTP0336 apache2[2770]: Starting Apache httpd web server apache2 Feb 07 11:47:51 KELLGGNLPTP0336 apache2[2770]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerN Feb 07 11:48:11 KELLGGNLPTP0336 apache2[2770]: Feb 07 11:48:11 KELLGGNLPTP0336 apache2[2770]: * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems Feb 07 11:48:11 KELLGGNLPTP0336 systemd[1]: apache2.service: Control process exited, code=exited status=1 Feb 07 11:48:11 KELLGGNLPTP0336 systemd[1]: Failed to start LSB: Apache2 web server. Feb 07 11:48:11 KELLGGNLPTP0336 systemd[1]: apache2.service: Unit entered failed state. Feb 07 11:48:11 KELLGGNLPTP0336 systemd[1]: apache2.service: Failed with result 'exit-code'.

Kindly help. Thanks in advance.

edited Feb '19
  1. use packagecloud repository
  2. apt-cache search phalcon and make sure you match your PHP version
  3. apt install php7.0-phalcon -> example with PHP 7.0
  4. php --ri phalcon -> check does it load properly, also restart web server and see phpinfo()

You must make sure that in your php configuration the module is loaded as well. However, if you don't need it, I guess you can also deactivate ph_sqlite to solve the issue. pay for essay