code

How to execute PHP code in HTML under nginx server

1.0 Error PHP code was not getting executed in the index.html file when the concerned website was opened in a browser. nginx server was being used to serve the web pages. 2.0 Solution 2.1 Install php7.0-fpm $ sudo apt-get install php7.0-fpm 2.2 nginx configuration Add the following lines to the nginx configuration file, /etc/nginx.conf. location …

How to execute PHP code in HTML under nginx server Read More »