Compare 0 Products     empty


In this section is reported the procedure of how to include APACHE server and PHP on the Engicam Yocto image.

Added this packages in your recipes

apache2 \
php \
php-cli \
php-modphp \

Added this features in your file local.conf

PACKAGECONFIG_append_pn-php = " apache2"
PACKAGECONFIG_remove_pn-php = " mysql"

Edit file /etc/apache2/modules.d/70_mod_php5.conf

# vim: ft=apache sw=4 ts=4
#<IfDefine PHP5>
        # Load the module first
        #<IfModule !sapi_apache2.c>
                LoadModule php5_module    /usr/lib/apache2/modules/

        # Set it to handle the files
        AddHandler php5-script .php .phtml .php3 .php4 .php5
        AddType application/x-httpd-php-source .phps
        DirectoryIndex index.html index.html.var index.php index.phtml