login o register
CALL NOW
+39 055 731 1387
Compare 0 Products     empty

APACHE AND PHP

In this section is reported the procedure 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/libphp5.so
        #</IfModule>

        # 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
#</IfDefine>

09 March 2018

Related Products