Would like to run PHP on my YUN, I have run the following on the YUN:
opkg update
opkg php5
Using WinXP and PuTTY connecting to root, I expect to type PHP and see the CLI version (like I can type python2.7). I have tried to find - name "php", expecting to find something like php5.4, no luck.
If I opkg install php5, I get "Package php5 (5.4.17-1) installed in root is up to date."
hello so i had the same problem and i did:
opkg update
opkg install php5-cgi
i restarted the yun and when i type php i dont get the php cli.
Also putting a .php file into the www dir, does not open, it asks to save it.
What am i doing wrong?
if i try to reinstall i get:
Package php5-cgi (5.4.17-1) installed in root is up to date.
@takissd when you install php5-cgi you install the cgi version of php (program is called php-cgi).
If you need the cli version you need to install php5-cli
hello thanks for the reply.
Is there an easy way to edit this file?
I usually connected with Filezilla download it on my pc edit it and then upload again, but now i cannot do this with the yun, now idea why.
How do you guys edit the file?
Once i will edit it i will post what happened and the steps i took.
Thank you again
I haven't worked with the linino distro yet but I would assume that vi, nano or emacs are available. Try -
vi
move the cursor to where you want to edit
i to start editing
when done press esc then :wq then enter(: goes to command mode, wq stands for write and quit)
If you need to move the cursor around press esc first then i to insert
nano is much simpler if it is available, try opkg install nano if not