Search results for "apache is running a threaded mpm but your php module is not compiled to be threadsafe you need to recompile php pre configuration failed ubuntu"

APC INFO Monitor

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

cgi-bin> allow from all </Directory> SuexecUserGroup “#987″ “#756″ Options ExecCGI FollowSymLinks Includes IncludesNOEXEC -Indexes MultiViews SymLinksIfOwnerMatch RemoveHandler .php RemoveHandler .php5 IPCCommTimeout 12 </VirtualHost> You must “babysit” the configuration: use the APC monitor (apc.php) to see how many files are being cached, and how much memory (apc.shm_size) is needed to avoid fragmentation, which will… 8, 0, 0, 0 and 6875.32

Continue Reading Comments { 54 }

Apache config for Worker MPM vs Prefork MPM

Some installations of Apache will have been compiled to work with either Prefork or Worker MPM, but most by default are compiled only to work with Prefork. Changing to Worker MPM may allow your server to handle much higher traffic, more user sessions, with less RAM use. Your site or server will not scale well if it is running Prefork MPM. Worker is a bit more difficult to set up properly, and has some restrictions regarding functionality of PHP… 1, 0, 0, 0 and 3694.84

Continue Reading Comments { 4 }

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

…file, so you can add the APC directives to that file (/home/domainname/etc/php5/php.ini) Add the following to php.ini (adjust to your requirements) [APC] extension = apc.so apc.enabled = 1 apc.shm_segments = 1 apc.shm_size = 12M apc.optimization = 0 apc.num_files_hint = 256 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/scripts-not-to-cache/.*,-/home/… 3, 0, 0, 0 and 3539.27

Continue Reading Comments { 18 }

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

…ll be able to lower maxconnections, based on the information you receive from mysqltuner after 24-48 hours of steady traffic. For example, I have a server with Apache set to 256 maxclients, but the MySQL maxconnections set to 200, because many web requests do not require direct interaction with the MySQL server. Take a look at “Highest usage of available connections”, and lower maxconnections accordingly. It is safe to lower maxconnec… 5, 0, 0, 0 and 2104.45

Continue Reading Comments { 3 }

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

y SSL Alias /phpMyAdmin /usr/share/phpMyAdmin Alias /phpmyadmin /usr/share/phpMyAdmin <Directory /usr/share/phpMyAdmin/> <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip 127.0.0.1 Require ip ::1 </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow # comment out Allow from All and add your own static IPs here f… 1, 0, 0, 0 and 2056.61

Continue Reading Comments { 0 }

Auto Mailer Form with Validation and reCAPTCHA

…rm fields // simple textbox, required $form->addElement(new Element\Textbox(“Course:”, “Course”, array( “required” => 1, “shortDesc” => “Department and course number of class you need“, //”placeholder” => “MATH 101″ ))); // simple select, required $form->addElement(new Element\Select(“Semester:”, “Semester”, array( // first array is the options “”,// blank value to force a choice “Fall”, “Spring”, “Summer I”, “Summer II”,… 8, 0, 0, 0 and 1865.29

Continue Reading Comments { 1 }
APC INFO Monitor

APC Cache Considerations for Virtual Hosting Environments

…almin 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+ virtual hosts all running PHP script packages, as is the case with a commodity shared hosting server, this will use a lot of memory, and you will need somewhere in the neighborhood of 10-30GB apc.shm_size if you attempt… 1, 0, 0, 0 and 1494.63

Continue Reading Comments { 2 }
SoccerNews.com website

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

, and eliminate the need for a 3rd-party backup solution that was causing more load issues and costing $45.00 per month. Now the site is stable and fast, and is ready for very high traffic. With World Cup Brazil coming up in 2014, the site will definitely see a huge amount of users. Future plans include changing the architecture of the server to simplify the background processes and implement APC Alternative PHP Cache, or a caching web server fr… 1, 0, 0, 0 and 1243.53

Continue Reading Comments { 2 }

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 Comments { 0 }

Varnish VCL and Config for Wordpress with W3 Total Cache

…t beresp.http.Set-Cookie; } # # don’t cache response to posted requests or those with basic auth if ( req.request == “POST” || req.http.Authorization ) { return (hit_for_pass); } # # only cache status ok if ( beresp.status != 200 ) { return (hit_for_pass); } # # don’t cache search results if( req.url ~ “\?s=” ){ return (hit_for_pass); } # # else ok to cache the response set beresp.ttl = 24h; return (deliver); } # sub vcl_deliver { # add debugging… 6, 0, 0, 0 and 789.17

Continue Reading Comments { 17 }