apache2 - Php not working? - Ask Ubuntu


i got demo http://www.coolphptools.com/color_extract#demo working in xampp on windows. want use on apache2 in ubuntu. installed apache2 , php 7 , put files /var/www/html/ think php not working. shows html part nothing php code... need install else?

i ran

a2enmod proxy_fcgi setenvif a2enconf php7.0-fpm service apache2 reload 

after installing php 7 doesn't work.

i thought might problem php, because no php demo working.
when add simple php script current time, working fine. more confused causing issue... maybe problem code? why did work fine on xampp?

i double checked answer on php script not executing on apache server post. , seems correct

type

sudo apt-get install apache2 php5 libapache2-mod-php5 

will install need , start apache server support php.

to verify php module loaded, type:

a2query -m php5 

if not enabled, load with:

sudo a2enmod php5 

and restart apache:

sudo service apache2 restart 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User