Contact Menu

Search results for "change apc mmap_file_mask per virtual host"

APC INFO Monitor

How to Configure APC Cache on Virtual Servers with PHP running under FCGId

…shm_segments = 1 apc.shm_size = 12M apc.optimization = 0 apc.num_files_hint = 512 apc.user_entries_hint = 1024 apc.ttl = 0 apc.user_ttl = 0 apc.gc_ttl = 600 apc.cache_by_default = 0 apc.filters = “-/home/username/public_html/apc/apc\.php$” apc.slam_defense = 0 apc.use_request_time = 1 apc.mmap_file_mask = /tmp/apc-accountname.XXXXXX ;OR apc.mmap_file_mask = /dev/zero apc.file_update_protection = 2 apc.enable_cli = 0 apc.max_file_size = 2M… 117, 2, 8, […]

Continue Reading 54

WordPress with W3 Total Cache on Nginx with APC (Virtualmin)

…1024 apc.ttl = 0 apc.user_ttl = 0 apc.gc_ttl = 600 apc.cache_by_default = 0 apc.filters = “-/home/username/public_html/scripts-not-to-cache/.*,-/home/username/public_html/apc/.*” apc.slam_defense = 0 apc.use_request_time = 1 apc.mmap_file_mask = /tmp/apc.XXXXXX apc.file_update_protection = 2 apc.enable_cli = 0 apc.max_file_size = 2M apc.stat = 1 apc.write_lock = 1 apc.report_autofilter = 0 apc.include_once_override = 0 apc.rfc1867 = 0… 51, 1, 1, 0 and 3593.14

Continue Reading 18
APC INFO Monitor

APC Cache Considerations for Virtual Hosting Environments

APC cache does not work well in a virtual hosting environment unless PHP is running as FCGID, and every individual virtual host has a unique PHP.ini and a unique fcgiwrapper. This is not the case with many virtual hosting environments because the memory and CPU requirements are too great. I suggest using Virtualmin for a […]

Continue Reading 4

Tuning Apache and MySQL for Best Performance in a Shared Virtual Hosting Environment

…inspection (SPI) firewall & login failure daemon (LFD) for your server: ConfigServer Firewall is an excellent free firewall & LFD. This will help prevent brute force probes, port flooding, DDOS, etc. If you have 600 virtual hosts running on a server, it is very likely that the server is experiencing constant malicious exploits, especially if […]

Continue Reading 9

Varnish VCL and Config for WordPress with W3 Total Cache

…sh unset resp.http.Via; unset resp.http.X-Varnish; } # sub vcl_hash { hash_data( req.url ); # altering hash so subdomains are ignored. # don’t do this if you actually run different sites on different subdomains if ( ) { hash_data( regsub(, “^([^\.]+\.)+([a-z]+)$”, “\1\2” ) ); } else { hash_data( server.ip ); } # ensure separate […]

Continue Reading 23

Automated WordPress Installation Via Custom Virtualmin Script Installer

…id to match filename) link to your zip: ‘url’ => “file://localhost/path/to/” (~line 150 after # script_wordpress_files) this must be retrievable via wget from YOUR SERVER (test this via terminal command) change ‘virtualmin’ => 0 to NOT use virtualmin scripts repo! (~line 152) Your custom file should now look like this: # script_custompress_files(&domain, version, &opts, &upgrade-info) […]

Continue Reading 48
Screen Shot 2013-04-19 at 6.32.51 PM

Fail2Ban Regex for RedHat, Fedora, CentOS and Amazon Linux 2013

…in \(tried to use disabled|Disconnected \(auth failed).*rip=(?P\S*),.* …and here’s a substitute, created via experimentation with RegExr: failregex = .*auth.*pam.*dovecot.*(?:authentication failure).*rhost=.* How to create a valid RegEx to match the failures to ban? For that, one must monitor log files. In the case of Dovecot on Amazon Linux 2013, that would be /var/log/secure — same as […]

Continue Reading 1
Screen Shot 2012-09-07 at 11.09.50 AM

Install phpMyAdmin with SSL on CentOS, Amazon Linux, RedHat (Apache or NginX)

…removed RPMforge repo due to some recent problems, but if you still need rpm forge repo: exclude=phpMyAdmin php-php-gettext Install PMA: yum install phpMyAdmin Apache Edit /etc/httpd/conf.d/phpMyAdmin.conf Allow all incoming hosts for a web hosting server, or only allow hosts you require: localhost, your local workstation, etc.) For a hosting server with open access, you should […]

Continue Reading 0

WordPress Fail2Ban RegEx for RedHat, CentOS, Amazon Linux

VacantServer WordPress sites are getting hammered with bad logins and probes. We’ve implemented a plugin to log failed login attempts to syslog, and a Fail2Ban filter for the same. If you run these on RedHat, you’ll need some additional configuration info… here it is: WordPress login failure regex (error_log): ^%(__prefix_line)sAuthentication failure for .* from <HOST>$ […]

Continue Reading 0