I want to set up a web server on Petalinux, currently, Petalinux has apache on its menu, and it works fine, but I want to add PHP to Petalinux as well. for this purpose I added CONFIG_php statement to user-rootfsconfig file in '/project-spec/meta-user/conf' path.
After I ran Petalinux-config -c rootfs
and check 'PHP' in user packages, and then I built the project.
I saw Petalinux build process downloaded and compiled PHP( from logs it prints in terminal) but when I copied rootfs on SD-Card and boot the Linux, PHP doesn't exist.
How could I add PHP to Petalinux properly?
NOTE : I use petalinux 2021 and there is PHP recipe in '/components/yocto/layers/meta-openembedded/meta-oe/recipes-devtools' path.