Tag Info

Hot answers tagged

2

The most bang for your buck, and really only option guaranteed to improve performance at all is to ditch the shared hosting. Get a dedicated server, or at the very least, a VPS (virtual private server), so you have dedicated resources. Your site does not sound very resource intensive, and it's not hyperbole in the least to say that it could be run on a ...


2

Your need is exactly opposite of this stackoverflow post. So in short, you can choose to: Set umask appropriately (presumably to 002, according to your post) before running git Add a git hook script to change file permission after cloning. The first choice is generally easier to do.


1

I am confused as to why you use server_name _. This used to be used for the designate a default sever but then you set server_name www.mydomain.com stanza as the default (listen 80 default_server). I would rewrite your configuration this way: server { listen 80; listen [::]:80; server_name www.mydomain.com; root ...


1

I'm using Tungsten Replicator with 3 MySQL servers across the world (all masters configuration). This configuration is working for me. MySQL.Cluster resolves to virtual IP of "main" node in corosync cluster - it's better to write to only one master :) $wpdb->add_database(array( 'host' => 'MySQL.Cluster', // If port is other than 3306, ...


1

You want your Apache to not even redirect that junk in the first place. RewriteEngine on RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/wp-login.php - [R=401] Deny all with 401, assuming /wp-login.php is the URI in question.


1

I finally figured this out. The problem was a conflict between two plugins installed on the site (and specifically in the way the two plugins were configured.) The iThemes Security plugin (http://ithemes.com/security) is configured to make site backups periodically. The code to make the DB backup does a dump of every table in the database, and it assumes ...



Only top voted, non community-wiki answers of a minimum length are eligible