Enable PHP7 apache module - apache 2.4 - Linux Ubuntu 14 Enable PHP7 apache module - apache 2.4 - Linux Ubuntu 14 apache apache

Enable PHP7 apache module - apache 2.4 - Linux Ubuntu 14


Sharing my experience of installing PHP 7.3.3 on Httpd 2.4.33 in Linux environment.

  1. When you run the configure command for installing PHP, ensure that apxs is also included.

--with-apxs2=/path/httpd/bin/apxs

  1. Once you install PHP, you can see that a module libphp7.so is installed in httpd/modules.
  2. In httpd.conf, add an entry LoadModule php7_module modules/libphp7.so
  3. Restart Apache.