Top Menu

Search results for "chmod files by type"

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 {} \;… 3, 0, 0, 0 and 493.97

Continue Reading 4

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

…217;s directory (see below). # phpMyAdmin – Web based MySQL browser written in php # # Allows only localhost by default # # But allowing phpMyAdmin to anyone other than localhost should be considered # dangerous unless properly secured by SSL Alias /phpMyAdmin /usr/share/phpMyAdmin Alias /phpmyadmin /usr/share/phpMyAdmin <Directory /usr/share/phpMyAdmin/> <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny>… 4, 0, 0, 0 and 467.98

Continue Reading 0

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

…ee “MEMORY USAGE” section to make sure you are not over-allocating INNODB STATUS Current InnoDB index space = 0 bytes Current InnoDB data space = 0 bytes Current InnoDB buffer pool free = 96 % Current innodb_buffer_pool_size = 8 M Depending on how much space your innodb indexes take up it may be safe to increase this value to up to 2 / 3 of total system memory MEMORY USAGE Max Memory Ever Allocated : 345 M Configured Max Per-thread Buffers : 96… 7, 0, 1, 0 and 402.97

Continue Reading 7
APC INFO Monitor

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

…change every time a cached script or object is called. So, with polling turned off, your settings/configuration files will remain cached, and this will cause you a lot of frustration. W3 Total Cache in particular is difficult to get configured properly with apc.stat=0 because the config settings and files are dependent upon database and php, which will be cached as files or opcode. After you have sorted out your opcode settings, you may switch a… 7, 0, 0, 0 and 363.98

Continue Reading 53

Automated WordPress Installation Via Custom Virtualmin Script Installer

…ok like this: # script_custompress_files(&domain, version, &opts, &upgrade-info) # Returns a list of files needed by WordPress, each of which is a hash ref # containing a name, filename and URL — set virtualmin to 0 to use the url sub script_custompress_files { local ($d, $ver, $opts, $upgrade) = @_; local @files = ( { ‘name’ => “source”, ‘file’ => “custompress-$ver.zip”, ‘url’ => “https://s3.amazonaws…. 6, 0, 0, 0 and 311.98

Continue Reading 39

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

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

…irtualmin. You must include the location {…} directives in the nginx.conf created in your public_html root by W3TC, and add them after the location {…} directives described above. You can do this either by copying the directives and pasting into /etc/nginx/nginx.conf, or (better) by using an include statement: [...] location ^~ /blogs.dir/ { internal; root /home/username/public_html/wordpress/wp-content; } include /home/username/publi… 5, 0, 0, 0 and 259.98

Continue Reading 18

University Website and Blog Redesign

…otstrap components, but now Jasny’s Bootstrap 3.0 fork (jasny.github.io/bootstrap) has a similar extension. LESS Files: along with the entire development site (was easier to zip this way). Download & unzip, it will run as a local site if you like… Start with kickstrap.less, see what it includes — mostly the standard Bootstrap LESS files. Next look at theme.less, which jumps to Kickstrap/themes/utcms/theme.less, which has all of the custom stu… 4, 0, 0, 0 and 207.99

Continue Reading 0

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

…).*rhost=<HOST>.* How to create a valid RegEx to match the failures to ban? For that, one must monitor log files. In the case of Dovecot on Amazon Linux 2013, that would be /var/log/secure — same as it has ever been with RedHat downstreams. However, the logging is different than it may have been in CentOS 5.8. Have a look at the log files: use grep to filter the secure log on “authentication failure” tail -f -n 20000 /var/… 4, 0, 0, 0 and 207.99

Continue Reading 1
APC INFO Monitor

APC Cache Considerations for Virtual Hosting Environments

…umber of personal clients, so I adjust the APC settings for each individual account, depending on the number and type of PHP script packages running on the account. These accounts are all administered by myself, not by the clients. I do not think APC is the correct cache for most shared web hosting servers, given the number of virtual hosts. You will probably have better results if you remove APC and concentrate on Apache performance tuning and M… 1, 0, 0, 0 and 52

Continue Reading 4