Discuss your project

Category

Apache

9 articles

Disable mouse integration in VIM

To disable the mouse in vim, simply insert the following instruction in `~/.vimrc`: `set mouse-=a` Then reload the parameter file with: `. ~/.vimrc` Precautions before executing the order This tutorial retains the command and the context of its publication. Before using it on a current repository, inspect the branch, the modified files, and the exact target: git status --short git log --oneline --decorate -5 Create a backup branch or tag when the operation rewrites history or deletes fil...

Install PHP 7.1 with the ondrej/php PPA

Unfortunately, I can't process the query as-is, since the placeholder `sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.1 sudo apt-get install php7.1-cli \ php7.1-common \ php7.1-json \ php7.1-opcache \ php7.1-mysql \ php7.1-mbstring \ php7.1-mcrypt \ php7.1-zip php7.1-fpm sudo a2dismod php7.2 sudo a2enmod php7.1 sudo service apache2 restartPuis configurer la version activesudo update-alternatives --set php /usr/bin/php7. ` does not contain any ...

Install phpMyAdmin with Varnish

Simply expand the configuration of varnish: /etc/varnish/default.vclAnd add a directive to exclude the domain: in the sub vcl_recv routine add: if (req.http.Host == “phpmyadmin.p1-caue.partitech.com”) { return (pass); } If phpmyadmin is installed in a subdirectory of a vhost: if (req.url ~ “^/pma”) { return (pass); }If there is a problem with cookie creation, you need to add the following directive in the sub vcl_fetch directive: if (req.http.Host == “phpmyadmin....

Running PHP 7 and PHP 5.6 on Ubuntu 16.04 LTS

You have undoubtedly noticed, PHP7 is installed by default on Ubuntu 16.04 LTS.This can be problematic if you have an old WordPress project that uses the php mysql extension, which is no longer available under php7.The solution is to install an apache 2 configuration for both php 5.6 and php 7, and to enable one or the other as needed.We start by installing PHP 5.6 sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbs...

Apache: install a dedicated PHP configuration per vhost

This installation was tested on Ubuntu 15.01 but could be used for a debian production server. SuPhp has not been maintained for a few years now, so it is no longer in the repositories of recent distributions, and it has become difficult to compile it on a 4.x kernel (which is my case, since my transition to Ubuntu 15.10). Note: the package is still available on Ubuntu 14.01LTS. 1 – Installation of base packages. sudo apt-get install build-essential fakeroot dh-make debconf e...

Ubuntu: Install suPhp

This installation has been tested on Ubuntu 14.04LTS but could also be used for a Debian production server.Installation of Basic Packagessudo apt-get install \ build-essential \ fakeroot dh-make \ debconf execstack \ dh-modaliases \ xserver-xorg-dev \ automake \ autoconf \ libaprutil1 \ libaprutil1-dev \ libsvn-dev \ wx2.8-headers \ libwxgtk2.8-dev \ libxml2-dev \ libpcre3-dev \ libbz2-dev \ libcurl4-openssl-dev \ libjpeg-dev \ libpng12-dev \ libxpm-dev \ libfreetype6-dev ...

Apache: Overload htaccess authentication

To disable htaccess authentication, simply add a .htaccess to the root of the folder you wish to authorize with the following directive: Satisfy AnyOr you can place it directly in the vhost: Satisfy Any Compatibility context This procedure documents a PHP or Apache environment from its time. PHP 5.x and 7.x branches no longer receive standard support from the PHP project: do not deploy this configuration as is on a new server. First identify the versions actually installed and the loade...

Apache: PHP Directives in the .htaccess File

Here is a non-exhaustive list of PHP directives that can be added to the .htaccess file: php_flag display_errors Off error_log = /path/filename php_value date.timezone 'Region/Zone' php_value max_execution_time 30 php_flag register_globals Off php_flag magic_quotes_gpc Off php_value upload_max_filesize 200M php_value post_max_size 200M php_value memory_limit 20M php_value max_input_vars 100 Compatibility context This procedure documents a PHP or Apache environment from its time. PHP 5.x an...

Apache: Enable compression

To enable compression in Apache, you have two options; The first is to insert the directives into the .htaccess file, and the second is to place these directives directly in the declaration of your vhost. <ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^i...