Top 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

…quite helpful to optimize system resources and prevent traffic surges on one site from affecting overall server performance. Joomla and PHPbb have code that is pre-optimized with hooks for APC, but WordPress requires a plugin called W3 Total Cache. First Things First Please read my posts about APC on commodity virtual hosting servers and Apache and MySQL performance tuning before you begin. If you are running your virtual servers under FCGId, th… 1, 0, 0, 0 and 13207.23

Continue Reading 53

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

Virtualmin now includes support for Nginx web server. I deploy many WordPress sites with W3 Total Cache and APC Alternative PHP Cache, so I was very interested to see how Nginx performance compares to Apache for WordPress, and whether APC and W3TC would play nice with Nginx. I prefer to install WordPress in public_html/wordpress for ease of development, compatibility with other scripts, etc. Accordingly, the suggested configuration is for WordPr… 5, 0, 0, 0 and 5485.67

Continue Reading 18
APC INFO Monitor

APC Cache Considerations for Virtual Hosting Environments

…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 shared hosting environment with APC cache, because it does allow to set php.ini and fcgiwrapper for every individual virtual host, and so to set an individual configuration for APC per virtual server. However with 200+ v… 2, 0, 1, 0 and 2170.87

Continue Reading 4

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

Web hosting has changed dramatically in the last few years. The majority of accounts are now running PHP scripts and MySQL, whereas in the past most accounts were only serving static HTML files. This presents challenges in security as well as performance tuning. It is impossible to predict whether a certain configuration will work properly for a given server, unless the hardware, software, accounts, network and traffic are identical to a previou… 1, 0, 0, 0 and 753.95

Continue Reading 7

Varnish VCL and Config for WordPress with W3 Total Cache

…a Varnish front-end for Apache, to be used with WordPress sites. I described the architecture in Load Balancing Virtualmin WordPress Hosting Server with Varnish on AWS. I now have a configuration that seems to work for all WordPress features, including logged-out commenting. This configuration also works well with W3 Total Cache. This configuration is for Varnish on a separate server, but should also work on a single server with appropriate chan… 4, 0, 0, 0 and 532.97

Continue Reading 23

Automated WordPress Installation Via Custom Virtualmin Script Installer

…sc “Custom WordPress” replace ALL instances of script_wordpress with script_custompress (id to match filename) link to your zip: ‘url’ => “file://localhost/path/to/copy-of-latest.zip” (~line 150 after # script_wordpress_files) this must be retrievable via wget from YOUR SERVER (test this via terminal command) changevirtualmin’ => 0 to NOT use virtualmin scripts repo! (~line 152) Your custom file should now look like this… 4, 0, 0, 0 and 467.97

Continue Reading 39

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

…n a traditional network operations center. Learn some RegEx Learning a bit about RegEx will benefit the admin in virtually every programming endeavor: PHP, Perl, C, SQL etc. all make use of RegEx to match strings of text. Matching a variable string of text in a log file, for example, allows Fail2Ban to act upon that string, sending an email, looking up a hostname, and/or invoking a firewall rule to block traffic from the offending origin for a de… 2, 0, 0, 0 and 467.97

Continue Reading 1

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

…ovided for Apache and NginX web servers. For this to work properly and safely, you should be running SSL on your host. Otherwise, change the ForceSSL line in the config file provided below… Install phpMyAdmin from EPEL repository Uninstall current PMA: yum erase phpMyAdmin Set up EPEL repo: Find the latest epel-release at http://download.fedoraproject.org/pub/epel/6/x86_64/ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel… 4, 0, 0, 0 and 467.97

Continue Reading 0

Remote publishing to WordPress from Facebook via RSS

…minal window with the ping command. Otherwise, Facebook.com will resolve to the IP address and language for your host server. This causes synchronization issues and may cause a sync timeout which can block your pages from loading. FeedWordPress Syndication OK, now you have a valid feed. Add it to FeedWordPress. The settings you may wish to change: Posts & Links > Permalinks point to: The local copy on this website Relative URIs: leave rel… 2, 0, 0, 0 and 311.98

Continue Reading 6

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):

Apache nohome regex (error_log):

[…]

Continue Reading 0