there is no php support out of the box however it can be added I believe to cherokee web server.
This app note is pretty old and is based older version of DEL, but the idea is still the same:
In Addition we added the PDF as a single file to the FTP server:
the latter is not the “complete app note”.
I’ve tried to build and run php-sqlite example and it works fine. I tested it with DEL 5.8 and ccwimx51 module. Highlighted are significant changes I had to make to the procedure to build successfully most recent version of php.
tar xvfz php-5.4.0.tar.gz
for ARM9/11 based targets:
For CorexA8 based targets (imx51 and imx53)
CC=arm-linux-gcc ./configure --host=x86 --target=arm-linux --prefix=/usr --without-iconv --disable-xml --without-pear --disable-libxml --disable-dom --disable-simplexml --disable-xmlreader --disable-xmlwriter --without-pdo-sqlite --disable-phar
make HOSTCC=gcc CXX=arm-linux-c++ CC=arm-linux-gcc
I simplify further instructions and do not modify existing project permantly – I am just dumping installation in to existing prebuilt rootfs
make INSTALL_ROOT=/exports/nfsroot-ccwmx51js install
looks like we have to copy php-cgi manually:
cp ./src/php-5.4.0/sapi/cgi/php-cgi /exports/nfsroot-ccwmx51js/usr/bin/
next update /exports/nfsroot-ccwmx51js/etc/cherokee/cherokee.conf as described in the document (my file attached).
Copy sample php file int web server’s root:
cp ./src/php-5.4.0/ext/exif/test.php /exports/nfsroot-ccwmx51js/usr/share/www/
cp ./src/php-5.4.0/ext/exif/test.txt /exports/nfsroot-ccwmx51js/usr/share/www/
I also added the one in the appnote as test1.php:
leonidm@ubuntu:~/src$ cat /exports/nfsroot-ccwmx51js/usr/share/www/test1.php
<p>Date: <?php print(Date("r")); ?>
<p>Server Info: <?php phpinfo(); ?>
I then boot my target with “dboot linux tftp” and test the webserver and it seems to work just fine