[resolved] omega2 uhttpd php7-cgi Bad gateway
-
Greetings folks,
been trying for 2 hours to setup php on omega2, I followed this tutorial:
https://docs.onion.io/omega2-docs/installing-and-using-php.htmlAfter I add the
list interpreter ".php=/usr/bin/php-cgi"
andoption index_page 'index.php'
and restaring the uhttpd/etc/init.d/uhttpd restart
I get the Bad Gateway error, and nothing else. Tried a few times, factory reset the omega but the results were same. Then lately I tried the upgrade onion-os, and when I navigate to Code Editor on http://192.168.3.1/OnionOS/ I get the same error as below.Bad Gateway
The process did not produce any responseTried to check if firmware is up too:
`root@Omega-99EF:/etc/opkg# oupgradeDevice Firmware Version: 0.1.10 b160
Checking latest version online...
Repo Firmware Version: 0.1.10 b160
Comparing version numbers
Device firmware is up to date!`Anyone having this error recently? How would I get php working?
-
@Mentor-Gashi try a factory restore
firstboot
and a clean install ofonion-os
andoos-app-editor
it should configure php for you automaticallymake sure you are at the latest firmware build
oupgrade -l
-
@Zheng-Han said in omega2 uhttpd php7-cgi Bad gateway:
@Mentor-Gashi try a factory restore firstboot and a clean install of onion-os and oos-app-editor it should configure php for you automatically
make sure you are at the latest firmware build oupgrade -lThanks, the -l flag did indeed upgrade the firmware despite the regular check was claiming the firmware was up to date.
Going to give it a try if I can get a use of it