OpenWrt Forum Archive

Topic: compile PHP-CLI

The content of this topic has been archived on 17 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi there,

I would like to compile PHP-CLI with some options.

In linux i would normally do :

$ tar -xvzf php-5.1.2.tar.gz
$ cd php-5.1.2/
$ ./configure --disable-libxml --disable-dom --disable-simplexml --disable-xml --disable-xmlreader
$ make
$ make install

What about OpenWRT ? i have tried to use ./configure but it didn't work.

Any ideas please ?

For a start using the build-system to build OpenWrt and packages from source look here: http://forum.openwrt.org/viewtopic.php?id=15201

To symlink the PHP5 package to be listed in menuconfig do: ./scripts/feeds install php5

Then you can select php5-cli in menuconfig > Languages > PHP > PHP5 > php5-cli

(Last edited by forum2008 on 12 Apr 2008, 12:53)

i still don't see how will i do all the --disable options ...

sorry but your link is confusing for me ...

The discussion might have continued from here.