要关闭 MultiViews 选项,你需要将此行放在你的。htaccess之上:
Options -MultiViews
选项 MultiViews 用于 Apache's content negotiation module 在 mod_rewrite 之前运行 ,并使Apache服务器 MATCH 扩展成为文件的扩展。 所以 /file 可以在URL中,但它将服务 /file.php 。
## How to install mcrypt in php7.2 | |
## | |
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ | |
## | |
# | |
# Check version php and pecl | |
# | |
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php |
# 加载模块: mod_deflate,mod_headers | |
<IfModule deflate_module> | |
SetOutputFilter DEFLATE | |
SetEnvIfNoCase Request_URI \.(?:gif|jpg|png|ico|zip|gz|mp4|flv)$ no-gzip | |
</IfModule> |
To connect to MSSQL using PHP 5.6 we'll need to use PDO's DBLIB (PDO_DBLIB) http://php.net/manual/en/ref.pdo-dblib.php and FreeTDS http://www.freetds.org/
This quick tutorial is using Ubuntu Server 14.04
First, make sure you're up to date on all of your packages.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
I'm using PHP 5.6.9 (https://launchpad.net/~ondrej/+archive/ubuntu/php5-5.6)