Skip to content

Explanation for php-modphp #71

@leisipeisi

Description

@leisipeisi

Hi everyone,

I just struggled some time to get a yocto build using apache, mysql and php working. Since the explanation in the readme of the webserver package indeed lead me on the right path but misses some relevant information to solve the problem quickly, I wanted to share my path with others. Maybe you could include it somehow in the readme.

Create a new .bbappend file which includes the follwing:

DEPENDS= "apache2 uclibc"
RDEPENDS_${PN} = "apache2 uclibc"
PACKAGECONFIG_append += " mysql apache2 ${@bb.utils.contains('DISTRO_FEATURES', 'pam, 'pam', '', d)}"
 
IMAGE_INSTALL_append += " phpmyadmin"
IMAGE_INSTALL_append += " proftpd"
IMAGE_INSTALL_append += " apache2"
IMAGE_INSTALL_append += " mysql5"	
IMAGE_INSTALL_append += " php"
IMAGE_INSTALL_append += " php-cli"
IMAGE_INSTALL_append += " php-modphp"

Add the following lines to your layer.conf file:

PACKAGECONFIG_append_pn-php= " apache2"
PACKAGECONFIG_append_pn-php = " uclib"	

Make sure to not forget the space between " and the beginning of the package.

Best regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions