i have installed a lamp server(apache2,php,mysql) on my raspi
i created a mysql database: test
i would like to execute a php script ( testconnect.php see below ) from outside my local network
i have no problems to execute it on local network
(in the browser:
http://raspi_ip/php/testconnect.php)
So i create a dyndsn on NOIP.com
and in my browser i introduce http://NOIPhostname/php/testconnect.php
i get no answer..
maybe some parameters in php.ini or mysql/my.cnf ???
i must take open port: 60000 for my Internet Service Provider
i don't know how ...
thanks for your support
and sorry for my poor english
PS:
i succeeded to connect to ssh server (after changing iptables and port 60000 in sshd_config) by the command:
ssh NOIPhostname -p 60000 -l pi
-------------------------------------------------------------
in folder /var/www/php:
testconnected.php:
<?php
//Try connection
$db=mysqli_connect('localhost', 'pi', 'raspberry', 'test') or die ("Failed to connect: " . mysqli_error());
echo "Connected OK.";
// Clean up
mysqli_close($db);
?>
------------------------------------------------