Arduino YUN with PHP and MySQL - error

Hello friends, I have a problem when trying to connect from my Arduino YUN through a PHP file to my MySQL database located on a Godaddy hosting.

The issue is that once uploaded files. Php to MicroSD card located in the Arduino YUN, when connecting from my browser, it takes a few minutes and then throws me http error 502 "Bad Gateway".

Do not know why this happens, I have looked everywhere and I modified the php.ini file many times to access.

The opkg that I have on the Arduino YUN are:

  • php5
  • php5-mod-mysql
  • php5-mod-mysqli
  • php5-mod-pdo
  • php5-mod-pdo-mysq
  • php5-mod-sockets

The php.ini code is this:
http://cnf.cl/php.txt

If anyone is to been the same or if I'm making a mistake please help c:

camilo-nunez:
trying to connect from my Arduino YUN through a PHP file to my MySQL database located on a Godaddy hosting.

once uploaded files. Php to MicroSD card located in the Arduino YUN, when connecting from my browser, it takes a few minutes and then throws me http error 502 "Bad Gateway".

Can you explain this a bit more clearly? At the moment I can't follow where the PHP webapp(s) is/are or how your browser comes into this.

Hello, what happens is that, in my Arduino YUN install the add php5 to connect from a web file to my MySQL database hosted on another server, then configure the server uHTTPd to use the php.

Then download and install the "opkg install php5-mod-mysql" and "install opkg-mysqli php5-mod", the set as this tutorial says that LAMP doc:howto:lamp [Old OpenWrt Wiki] is on page OpenWRT. Once you ready, got the files. Php to Arduino MicroSD card, to be all set, configuration.php file entry that is where all the data in order to connect to the MySQL database. And this is where the problem arises, then wait one minute, the search throws me the error 502 and that I can not connect with my bases.

For now that is the problem which I have with my connection from my Arduino to my MySQL database through php5