Top Menu

Search results for "apc causes centos to swap memory"

APC INFO Monitor

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

APC INFO Monitor My Virtualmin CentOS 5.6 Virtual Private Server runs several virtual domains with PHP under FCGId using APC for opcode caching: Joomla, PHPbb, WordPress, etc . APC is somewhat challenging to configure properly with fcgid-enabled virtual domains, but it is 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 w… 15, 0, 1, 0 and 6823.53

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… 6, 0, 0, 0 and 2944.75

Continue Reading 18

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

…with max_connections set slightly higher than Apache’s maxclients. If you are running database caching via APC, you may lower max_connections, because APC will serve the busiest queries directly from cache. Take Time to Get a Realistic Assessment of MySQL Performance If you have a PHP opcode and database caching strategy (such as APC) implemented on your web server and for your PHP script packages, you will be able to lower maxconnections,… 16, 0, 1, 0 and 1893.99

Continue Reading 7
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 shared hosting environment with APC cache, because it does allow to set php.ini and fcgiwrapper for every individual virtual h… 2, 0, 0, 0 and 921.05

Continue Reading 2

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

…efficient. I’m a huge fan of CSF, having used it with cPanel, Webmin and Virtualmin for many years. Moving to Amazon Web Services presented a challenge, however. I’ve yet to figure out how to use CSF on AWS, so I’ve backtracked to my old standby, Fail2Ban. “Out of the box,” Fail2Ban for CentOS & other RedHat downstream distros only provides protection against SASL login failures. But with a little work and resear… 5, 1, 0, 0 and 363.23

Continue Reading 0

Apache config for Worker MPM vs Prefork MPM

…n /etc/sysconfig/httpd restart apache do some performance testing and raise your worker server and thread limits to sane levels in httpd.conf If you need to recompile Apache and PHP, then you should do more research. Recompiling is not a trivial process. I found that my server had much better memory usage under Worker MPM, however: some scripts (squirrelmail, phpmyadmin) do not work on a per-domain basis and must be run direct to the actual se… 1, 0, 1, 0 and 233.51

Continue Reading 4

Varnish VCL and Config for WordPress with W3 Total Cache

…figuration is for Varnish on a separate server, but should also work on a single server with appropriate changes to the port and backend IP settings. Varnish Config (/etc/sysconfig/varnish) # Configuration file for varnish # # /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this # shell script fragment. # # # Maximum number of open files (for ulimit -n) NFILES=131072 # # Locked shared memory (for ulimit -l) # Default log size… 1, 0, 0, 0 and 220.53

Continue Reading 23
SoccerNews.com website

Apache and MySql Performance Tuning for High Traffic WordPress Website on Cpanel

…referrals provide the revenue stream. SoccerNews.com website I was contacted by the publisher after responding to a plea for assistance in a WordPress.org support forum. Though the site was running on a dedicated server with 8GB RAM, it was crashing frequently under load. The developer tried implementing APC Alternative PHP Cache and W3 Total Cache, but these measures turned out to be incompatible with some of the custom PHP code and the softwa… 0, 0, 1, 0 and 220.53

Continue Reading 2

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

…the rpmforge.repo. Search no longer works, nor does pagination, etc. Plus, it’s out of date and vulnerable to an XSS exploit. I have solved this by changing to the EPEL repo, which maintains the latest version of phpMyAdmin. This post will teach you how to install phpMyAdmin on CentOS, Amazon Linux, or Redhat. Configuration instructions are provided for Apache and NginX web servers. For this to work properly and safely, you should be runnin… 1, 1, 1, 0 and 194.59

Continue Reading 0

Web Hosting

Decades of experience hosting websites, from small local sites with only a few html pages, to high-traffic sites with thousands of users and pages.  Website hosting, evolved 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 […]

Continue Reading