Search code examples
yoctophp-5.6bitbake

How to bring php5 in yocto image?


In my yocto development kit I included meta-openembedded/meta-oe in conf/bblayer.conf for meta-raspberrypi but I can't able to see php5 at the final image in /etc/php.I tried giving bitbake php and also included IMAGE_INSTALL_append = " php" nothing works.Can anyone please help me to include it in final image.


Solution

  • Bydefault Poky-sumo branch gives php7.2 and if you want php5 use
    PREFERED_PROVIDER_VERSION_php ="5.6.35"

    Below are the packages provided by php recipe

    PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-phar ${MODPHP_PACKAGE} ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}   
    

    you can all all required above packages like below example.

    IMAGE_INSTALL_append = " php-cli php-cgi php-pear"