Contact Menu

Search results for "chmod files only"


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

…w 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, […]

Continue Reading 9
APC INFO Monitor

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

…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 cause the 500 errors. If fragmentation rises quickly to 100%, memory usage is full, and cache full count rises above 0, you will almost […]

Continue Reading 54

Automated WordPress Installation Via Custom Virtualmin Script Installer

…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) # Returns a list […]

Continue Reading 47

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

…dpress, so you will need to omit or change /wordpress if WP is installed in a different directory. location ^~ /files/ { rewrite /files/(.+) /wordpress/wp-includes/ms-files.php?file=$1 last; } location @wordpress { fastcgi_pass localhost:9000; fastcgi_param SCRIPT_FILENAME $document_root/index.php; include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_NAME /index.php; } location ~ \.php$ { try_files $uri @wordpress; fastcgi_index index.php; fas… 5, 0, 0, 0 […]

Continue Reading 18

Recursive chmod Tricks

Recursively chmod only directories find . -type d -exec chmod 755 {} \; Similarly, recursively set the execute bit on every directory chmod -R a+X * The +X flag sets the execute bit on directories only Recursively chmod only files find . -type f -exec chmod 644 {} \; Recursively chmod only PHP files (with extension .php) find . -type f -name ‘*.php’ -exec chmod 644 {} \;… 2, 0, 2, 0 and 223.7

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

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

…epel-release is already loaded. Edit /etc/yum.repos.d/epel.repo to enabled=1 Edit /etc/yum.repos.d/epel.repo to only include necessary software packages: includepkgs=phpMyAdmin php-php-gettext I have 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 s… […]

Continue Reading 0

Varnish VCL and Config for WordPress with W3 Total Cache

…ish 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 […]

Continue Reading 23

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