Well, I found the problem,
When editing..
vi /etc/config/uhttpd
Use these lines
list interpreter ".php=/usr/bin/php-cgi"
option index_page 'index.php'
Now it's working
Well, I found the problem,
When editing..
vi /etc/config/uhttpd
Use these lines
list interpreter ".php=/usr/bin/php-cgi"
option index_page 'index.php'
Now it's working
Hi Joris,
Try this:
vi /etc/php.ini
Find the line
doc_root = "/www"
Change it with your new path
doc_root = "/www/vaipalmeiras"
Save, exit and run to restart uhttpd
/etc/init.d/uhttpd restart
Updating...
This board worked (Omega is on for more than 1 hour and no problem), but using the both source together :S (There are two regulators)
Maybe I'm going to say , but take a look at https://lede-project.org/packages/pkgdata/mysql-server
Omega firmware is LEDE, right?
If yes, "MAYBE" you can add this package and try to install , but I think Mysql is a little heavy
Are you thinking to use a database with php?
Hi Joris,
Try this:
vi /etc/php.ini
Find the line
doc_root = "/www"
Change it with your new path
doc_root = "/www/vaipalmeiras"
Save, exit and run to restart uhttpd
/etc/init.d/uhttpd restart
I don't think so Luciano because php interpret the code with file extension ".php", but you can use html code in php pages.
Using your code is a good ideia when you want to uhttpd search for one of these files automatic, when you don't tell the specific file you want, like http://localhost/php/
If you would like to try, for example, save this text in index.php
<html>
<head>
<title>This is Hello World using HTML codes inside a php page</title>
<script>
alert("Hello World in JS");
</script>
</head>
<body>
<?php echo "<h1>Hello World</h1>" ?>
<table style="border: 1px solid">
<tr>
<td><?php echo "Hello World in a table" ?></td>
</tr>
</table>
</body>
</html>
So, you can use HTML, CSS and JS in a PHP page.
Well, I found the problem,
When editing..
vi /etc/config/uhttpd
Use these lines
list interpreter ".php=/usr/bin/php-cgi"
option index_page 'index.php'
Now it's working
Exploring /etc/opkg/distfeeds.conf i found php7 package only, so i tried
opkg install php7 php7-cgi
And done
Then i followed this topic https://community.onion.io/topic/669/php-functions to install php, but looks like omega 2 isn't interpreting php (when i access the url on omega, browser download the file index.php)
Onioneers,
I'm trying to install php on my omega 2+.
First I ran opkg update and got
Downloading http://downloads.lede-project.org/snapshots/targets/ramips/mt7688/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_core.
Downloading http://downloads.lede-project.org/snapshots/targets/ramips/mt7688/packages/Packages.sig.
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_base.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/Packages.sig.
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_onion.
Downloading http://repo.onion.io/omega2/packages/Packages.sig.
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_packages.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.sig.
Signature check passed.
Then I ran opkg install php5 php5-cgi and got
Unknown package 'php5'.
Unknown package 'php5-cgi'.
Collected errors:
What am i doing wrong?
After some tries I could turn it on using a celular battery (1500mah).
The problem isn't about search in Google, i know how to turn on without a dock.
The stange thing is an atx-pc source power, with 1,5A (measured in multimeter) doesn't work well.
Next week i will try this on, i hope its work
Well,
I received my omega 2+ and tried to turn it on.
I'm using an atx-pc to get 3,3V.
The led turns on, then after 20seconds it turns off, and I waited minutes and none SSID appeared.
Does anyone have any idea about this problem?