I got this demo http://www.coolphptools.com/color_extract#demo working in xampp on Windows. But now I want to use it on apache2 in Ubuntu. I installed apache2 and php 7 and put the files into /var/www/html/
But I think php is not working. It only shows the html part but nothing from the php code... Do I need to install something else?
I also ran
a2enmod proxy_fcgi setenvif
a2enconf php7.0-fpm
service apache2 reload
after installing php 7 but it doesn't work.
I thought it might be a problem with the php, because no php from the demo was working.
But when I add a simple php script to get the current time, that is working fine. So now I am even more confused what is causing this issue... Maybe it is a problem with the code? But why did it work fine on xampp?
I also double checked the answer on this PHP script not executing on Apache server post. And everything seems to be correct