Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

#Edit MySQL config:

sudo rvim /etc/mysql/my.cnf

80% RAM to innodb_buffer_pool_size ->

#XMLRPC issues Search for XMLRPC POST logs

grep xmlrpc.php /var/log/apache2/access.log
  • /var/www/html/.htaccess Add this line to deny access to xmlrpc.php
<Files "xmlrpc.php">
Order Deny,Allow
Deny from all

#GET memory usage

#PHP memory limit

#SET PHP memory limit Wordpress


sudo rvim /etc/php5/apache2/php.ini
memory_limit = 128M 
memory_limit = -1 (unlimited)

Dokku WP config optimization

Deny xmlrpc.php via Nginx

Either in nginx.conf.sigil (dokku level) or nginx.conf (app level), add a location block

  location ~* xmlrpc.php {
    return  403;

Change PHP memory_limit

UNSOLVED, SO question @ Run heroku-php-nginx with the -i option

# in Procfile
web: vendor/bin/heroku-php-nginx -C nginx.conf -i php_custom.ini
# in php_custom.ini

Increade database memory

Unsolved, question for MariaDB plugin dev @

Useful MySQL docs


Add PHP newrelic

Unsolved, question for dokku devs @

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment