Display a html or php page
-
Thank you very much at all! I follow the instruction in:
https://wiki.onion.io/Tutorials/PHP-GPIO-Examplebut when I try to display my file in the browser it download it and no display! Why?
-
what is the URL of your file?
what are the first lines of your file?
-
@Frederic-Baumann http://192.168.3.1/php/index.php
and this is the file:
<?php
echo "hello world, I'm PHP running on my Onion Omega!";
-
I try with:
https://wiki.onion.io/Tutorials/PHP-PushBullet-Exampleand same problem... the php file download and no display in the browser
-
Looks fine.
Imho, their should be an issue in your /etc/config/uhttpd file.
Did you double-check the line : list interpreter ".php=/usr/bin/php-cgi"
?
-
And of course did you restart uhttpd?
-
ok resolved thank you very much!
-
I am facing the same issue.
followed the steps as suggested, but still the index.php is getting downloaded...
check uhttpd config and restarted the uhttpd.
please help
-
facing the same problem as well
is there any fix?
-
Actually. I would more recommend using lighttpd than Apache or uhttpd. I don't know why but I feel that lighttpd is more faster, stable and uses less resources that anything.