PHP

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 »

Repairing Drupal site blocks manually in database

The text format of a block was PHP code and it contained PHP code with an error. This broke the website resulting in blank screen web pages, the white screen of death (WSOD). The error was rectified by manually updating the MySQL database. The following steps were taken. From the command line, connect with the …

Repairing Drupal site blocks manually in database Read More »