Apache works but php does not work

1

Apache was installed on a centos 7 and the service is active and php has also been installed, but every time I play on nagevador, php does not run, it just shows the php code.

Checking the version with the command php -v shows me

PHP 7.2.7 (cli) (built: Jun 20 2018 08:21:26) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

And the http server is active.

I'm using Centos 7

    
asked by anonymous 06.07.2018 / 20:05

1 answer

-1

You just install the Apache PHP module. Run this command on the terminal. sudo apt-get install libapache2-mod-php7

    
06.07.2018 / 21:20