[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.html

    After I add the list interpreter ".php=/usr/bin/php-cgi" and option 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 response

    Tried to check if firmware is up too:
    `root@Omega-99EF:/etc/opkg# oupgrade

    Device 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?


  • administrators

    @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 -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 -l

    Thanks, 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 :)


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.