This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is the list of apache modules which we were able to disable safely. This list is published just to give you idea, so be careful and consider your specific needs before disabling these. | |
Here is the list | |
proxy | |
proxy_ajp | |
proxy_balancer | |
proxy_connect | |
proxy_ftp | |
proxy_http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadModule expires_module modules/mod_expires.so | |
LoadModule deflate_module modules/mod_deflate.so | |
LoadModule mime_module modules/mod_mime.so | |
LoadModule dir_module modules/mod_dir.so | |
LoadModule rewrite_module modules/mod_rewrite.so | |
LoadModule authz_host_module modules/mod_authz_host.so | |
LoadModule authz_user_module modules/mod_authz_user.so | |
mod_expires – generates content expiration and cache control headers | |
mod_deflate - compresses content before it is delivered to the client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Set up multiple authorized keys | |
authorized_key: | |
user: deploy | |
state: present | |
key: '{{ item }}' | |
with_file: | |
- public_keys/doe-jane | |
- public_keys/doe-john | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Recursive file convertion windows-1251 --> utf-8 | |
# Place this file in the root of your site, add execute permission and run | |
# Converts *.php, *.html, *.css, *.js files. | |
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command | |
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | | |
while read file | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install dependencies | |
# older ubuntus | |
#apt-get install build-essential libsqlite3-dev ruby1.9.1-dev | |
# xenial | |
apt install build-essential libsqlite3-dev ruby-dev | |
# Install the gem | |
# gem install mime-types -v 2.6.2 (gem install mime-types --version "< 3" gem install --conservative mailcatcher) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install percona MySQL server from Ansible Galaxy | |
- src: Xobb.percona | |
# Install PHP for RedHat/CentOS/Debian/Ubuntu from Ansible Galaxy | |
- src: geerlingguy.php | |
# Install PHP XDebug for Linux from Ansible Galaxy | |
- src: geerlingguy.php-xdebug | |
# Install Nginx for Linux/UNIX from Ansible Galaxy | |
- src: geerlingguy.nginx | |
# Install Memcached for Linux from Ansible Galaxy | |
- src: geerlingguy.memcached |
NewerOlder