My cross compiled version of the PHP CGI was not working so well and I didn't manage to fix it.
Fortunately Klaas Biker informed my that Iulian Virtejanu has cross compiled a PHP CGI version that seems to work significantly better.
Here is Iulian's blog entry: PHP and Lighttpd for Android
Iulian gave me the permission to use it in PAW, so I have updated the PHP Plug-in to version 0.3.
There is one known issue:
system(...) does not work.
It is because system('pwd') actually invokes a hardcoded /bin/sh -c 'pwd' - and /bin/sh is not available on Android.
Iulian has submitted a bug report to PHP: https://bugs.php.net/bug.php?id=60081
If you find more bugs, please let me know. I will forward them.
Subscribe to:
Post Comments (Atom)
When you are root, make
ReplyDelete(make / read-write)
mkdir /bin
ln -s /system/xbin/busybox /bin/sh
(make / readonly)
And then you have made /bin/sh as symlink.