OpenWrt Forum Archive

Topic: how can install PHP?

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

i installed lightpd and cgi.

so i was made html environment.

html function are very limited so i'd like to use PHP and want to make php env.

https://forum.openwrt.org/viewtopic.php?id=10330

i refer to this page. but can grep any php5 or php5-cgi

how can i install PHP5 and make php environment.

plz let me know your know how or references

thank you for your attention.

(Last edited by yu0907 on 19 Sep 2014, 14:13)

opkg update
opkg install php5 php5-cgi
opkg install php5-mod-session php5-mod-xml php5-mod-openssl zoneinfo-core zoneinfo-europe

Select zoneinfo according to your location.

thank you for your concern.

i did many times typing this command,
#opkg update
#opkg install php..

but can't install php5, or php related files.
i was look around opkg download webpage, http://downloads.openwrt.org/snapshots/ … /packages/

no where php .ipk file.

did you had downloaded recently?

thank you, @tmo26.

i read about 'oldpackge' at link you given.

but i don't know how to use GIT hub and what sould i do in openWRT. (root@Openwrt:~#)

what is this command?
./scripts/feeds update packages
./scripts/feeds install -a -p packages

i little bit understand .

refer to this page

===================================================
https://www.mail-archive.com/openwrt-ti … 02557.html
svn co svn://svn.openwrt.org/openwrt/trunk
unset SED
cd trunk
cp feeds.conf.default feeds.conf
echo "src-git oldpackages http://git.openwrt.org/packages.git"; >>
feeds.conf
./scripts/feeds update -a
./scripts/feeds install -a
make package/symlinks
make menuconfig
make

=====================================================
For that copy feeds.conf.default to feeds.conf, open it with an editor and remove the # in front of "src-git oldpackages ...".
Then do: "./scripts/feeds update oldpackages  && ./scripts/feeds install -a -p oldpackages"
and they will reappear in make menuconfig.
=======================================================================
and this txt.



but i can't found php.* in make menuconfig
wherer is php file..
check three times menuconfig but can't found php..

do i have to just typing command "MAKE"?

i finally find answer myself.

here is summary below.
you can find packages you want
# opkg list_installed
=================================

# apt-get install subversion

* never execute as root.
* it may  takes hours. execute 'make' if you have sufficient time. 
*'echo' is a command that insert line on "___", repository in feeds.conf


$ svn co svn://svn.openwrt.org/openwrt/trunk

$ cd trunk
$ cp feeds.conf.default feeds.conf
$ vi feeds.conf
  ----For that copy feeds.conf.default to feeds.conf, open it with an editor and remove the # in front of "src-git oldpackages ...".

$ ./scripts/feeds update -a
$ ./scripts/feeds install -a
$ menu config
  ------------check you want packages and setting
$ make


$ cd ~/trunk/bin/ar71xx
$ scp  <file name> <ip>:/<dir>

root@Openwrt:/# sysupgrage -v <dir> ~.bin

==================================

(Last edited by yu0907 on 24 Sep 2014, 03:26)

The discussion might have continued from here.