I am trying to include apach, mariadb and php for Apalis i.MX6 BSP. Following items are added to local.conf
IMAGE_INSTALL_append = "apache2 mariadb php php-cli"
But libphp5.so, php.ini and other php files can’t been found in compiled image. What configuration do I miss ?
I modify layers/meta-openembedded/meta-oe/recipes-devtools/php/php.inc adding ‘apache2’ to DEPENDS and PACKAGECONFIG.
DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native lemon-native \
openssl libmcrypt apache2"
PACKAGECONFIG ??= "apache2 mysql sqlite3 imap \
${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
Now PHP is available. But /etc/apache2/modules.d/70_mod_php5.conf doesn’t load php module as ‘PHP5’ seems not be defined. Currently I just add these configuration from 70_mod_php5.conf to httpd.conf.