I've installed lighttpd and php5 on an usb hd: /mnt/usb
I've run php-cgi on the cli:
root@OpenWrt:~# /mnt/usb/usr/bin/php-cgi /mnt/usb/www/test.php
Response:
X-Powered-By: PHP/5.3.1
Content-type: text/html
Bus error
In /var/log/lighttpd/error.log:
(mod_cgi.c.1287) cleaning up CGI: process died with signal 10
When I run:
root@OpenWrt:~# /mnt/usb/usr/bin/php-cgi /mnt/usb/www/phpinfo.php
everything OK (including the [date] section in phpinfo();)
I've set in php.ini:
memory_limit = 32M
date.timezone = "Europe/Brussels"
free gives me:
root@OpenWrt:~# free
total used free shared buffers
Mem: 29484 27032 2452 0 7040
Swap: 152652 12 152640
Total: 182136 27044 155092
and df:
root@OpenWrt:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 1280 1280 0 100% /rom
tmpfs 14744 80 14664 1% /tmp
tmpfs 512 0 512 0% /dev
/dev/mtdblock3 5440 2696 2744 50% /overlay
mini_fo:/overlay 1280 1280 0 100% /
/dev/sda2 42314272 183548 39981348 0% /mnt/usb
Nobody any clue??