Tag: extension

php-fpm can not use html as php

I have a site, which use nginx as web server and php-fpm as php interpreter. Most of the files use html extension name. My nginx conf file has following section. But, when I enter the url such as https://example.com/sample.html, whose content is php script. It did not work. The solution is to change the config

Install dbase extension on php7, Ubuntu 16.04

I followed the instruction mostly based on mote0230 github. Please be noticed that updating (and probably inserting) with arrays that contain named indexes, is not working. For my project, it is OK. I just need to read the data from dbf files. dbase-pecl-php7 # PHP 7 sudo add-apt-repository ppa:ondrej/php sudo apt-get install php7.0-fpm php7.0-curl php7.0-mysql