# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions
This file contains 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/sh | |
# | |
# Generates magento modman file | |
# | |
# INSTALLATION: | |
# Save this file to /opt/deploy/tools/modman-generator.sh | |
# ln -s /opt/deploy/tools/modman-generator.sh /usr/local/bin/mg | |
# chmod a+x /usr/local/bin/mg | |
# | |
# USAGE: |
This file contains 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
for i in `find . -type f | grep -v \.git | grep -v "^.$" | grep -v "modman" | sed 's/\.\///'`; do echo ${i} ${i}; done > modman |
Magento’s checkout throughput can increase to at least 8 times its current capacity and up to 26 times more in ideal conditions.
- The current checkouts per hour limit for large, real-world Magento stores is 4,500
- This limit cannot effectively be increased with more and/or better hardware
- The improper type handling in Magento’s SQL code is the cause of the current limit
- If one SQL query is fixed, large Magento stores can scale to a new, real-world limit of 120,000 checkouts per hour
- For commodity hardware, this new limit might be 36,000 checkouts per hour
This file contains 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 | |
git clone https://github.com/letsencrypt/letsencrypt | |
cd letsencrypt/ | |
mkdir -p /var/lib/letsencrypt/global-webroot | |
echo "Alias /.well-known/acme-challenge /var/lib/letsencrypt/global-webroot/.well-known/acme-challenge" >> /etc/httpd/conf/httpd.conf | |
cat > /etc/cron.monthly/renew-letsencrypt.sh <<End-of-message | |
DOMAINS=example.com,www.example.com,foo.example.com,example.org.example.net,www.example.org,www.example.net |
This file contains 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
# /etc/cron.d/ssl | |
5 00 */14 * * /opt/letsencrypt_yolo.sh 2>&1 | mail -s "reloading certificates" [email protected] |
This file contains 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 | |
echo "Running as user $USER" | |
DIR=/home/letsencrypt/letsencrypt | |
DOMAIN=mydomain.com | |
$DIR/letsencrypt-auto -a webroot --webroot-path /home/letsencrypt/webroot/ \ | |
--config-dir /home/letsencrypt/etc \ | |
--logs-dir /home/letsencrypt/log \ |
NOTE: You can check, if your config here:
http://www.sslshopper.com/ssl-checker.html
Decrypt the private key using the password you entered when you created your key:
openssl rsa -in ssl.key -out /etc/nginx/conf/ssl.key
Protect your key from prying eyes:
chmod 600 /etc/nginx/conf/ssl.key