Top Menu

Search results for "php script timeout vhost"

APC INFO Monitor

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

…uch as admin pages and logged-in site pages) turn off apc.include_once_override (use carefully; only useful with PHP scripts that do not have cache hooks, such as Joomla 1.0, phpBB2, etc.) turn off apc.slam_defense (may cause objects to be replaced with PHP warnings which are displayed to the user, especially on Joomla 1.5) set apc.user_ttl = 0 (allows your php scripts to set appropriate timeouts for queries and objects) set apc.mmap_file_mask =… 1, 0, 0, 0 and 3243.11

Continue Reading 53

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

…fc1867_freq = 0 apc.localcache = 1 apc.localcache.size = 256 apc.coredump_unmap = 0 apc.stat_ctime = 0 Reloading PHP-fastcgi processes after changes to php.ini You will need to reload the php-fastcgi processes if you change php.ini. Luckily, Virtualmin creates service scripts for each virtual domain, which you can use to reload PHP. The service scripts are located in /etc/rc.d/init.d. php-fcgi-domain1-com php-fcgi-domain2-com Script allows stop,… 6, 0, 0, 0 and 1971.81

Continue Reading 18

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

Varnish VCL and Config for WordPress with W3 Total Cache

…iguration 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 is 82MB + header MEMLOCK=82000 # # Maximum size of corefile (for ulimit -c). Default in Fedora is 0 # DAEMON_COREFILE_LIMIT=”unlimited” # # Set this to 1 to make init script reload try to switch… 6, 0, 0, 0 and 972.95

Continue Reading 23
APC INFO Monitor

APC Cache Considerations for Virtual Hosting Environments

…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+ 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-30G… 2, 0, 2, 0 and 869.15

Continue Reading 2

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

…assword you added to the config file, with no default permissions, on localhost Give pma user all permissions on phpmyadmin database, on localhost Now you have a secure PMA which will work for all mysql users on your host. Version 3.5+ now has Status Monitoring and Advisor. Used in conjunction with a performance tuning script like MySQL Tuning Primer, it will help you fine-tune your MySQL server to your requirements and your environment. phpMyA… 3, 0, 0, 0 and 830.23

Continue Reading 0

Auto Mailer Form with Validation and reCAPTCHA

I was recently searching for a form template that uses Twitter’s Bootstrap framework. PFBC, the PHP Form Builder Class, was recently refactored with Bootstrap, and it also supports validation and reCAPTCHA. PFBC does not include a form handler, but it does take the difficult and redundant work out of creating self-validating forms. Adding an auto-mailer to PFBC is very simple, however. You just need a simple PHP if/else and all is well. If… 2, 0, 0, 0 and 778.34

Continue Reading 2

Automated WordPress Installation Via Custom Virtualmin Script Installer

Updated: please read instructions again and find link to new example file. WordPress (or any other script) can automatically install during Virtualmin > Create Virtual Server. Virtualmin automatically creates users, MySQL database, and installs WordPress in the public_html root, then gives a link to the WordPress Installer. You can even create a custom installer with a set of plugins and themes. To create a custom script installer with plugin… 12, 1, 1, 0 and 765.38

Continue Reading 35

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

…Apache-for-Low-Memory-Usage.html (the formula works well as a basic guide… but does not take into account PHP memory requirements… see Ovidiu’s comment below). MySQL Tuning Is More Difficult: Trial and Error To test your MySQL server performance, you may try: mysqltuner: https://github.com/rackerhacker/MySQLTuner-perl (or http://mysqltuner.pl for the script only) MySQL Tuning Primer: https://launchpad.net/mysql-tuning-primer p… 2, 0, 0, 0 and 661.6

Continue Reading 7

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