Setting Up A New VPS on Vultr With Webmin

This is a collection of notes I’ve found around the web to help me set up subsequent VPS’s on Vultr (or anywhere that I will use Webmin instead of cPanel).

Install the VPS. Update to latest version of software with apt-get update / apt-get upgrade (or yum upgrade if on CentOS)

Set hostname to the fully qualified server name other virtual min will get upset. Update local /etc/hosts to add IP address, or update DNS accordingly

Fetch the Virtualmin install script ( instructions at https://www.virtualmin.com/download.html#gpl ) or the install script itself for Linux and FreeBSD.

Run ‘sh ./install.sh’

Get ConfigServer Firewall and the Webmin module installed. Instructions at http://download.configserver.com/csf/install.txt

Install XCache module if running PHP… apt-get install php5-xcache

Install MPM-ITK Apache2 module and add the following code via Virtualmin -> Servers -> Virtualmin Virtual Servers (GPL) -> Server Templates -> Apache Website

<IfModule mpm_itk_module>
AssignUserId ${USER} ${USER}
</IfModule>
<FilesMatch ".+.ph(p[345]?|t|tml)$">
    SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch ".+.phps$">
    SetHandler application/x-httpd-php-source
    # Deny access to raw php sources by default
    # To re-enable it's recommended to enable access to the files
    # only in specific virtual host or directory
    Order Deny,Allow
    Deny from all
</FilesMatch>
The above will help prevent one website from infecting another if one gets hacked (if all websites run as nobody they’ll all have write access to each other).

Run the W3TC compatibility check and install modules as necessary to best support W3TC for wordpress sites.

Easiest, Cheapest Way To Speed Up Your Mac

4623570_raw.jpgI’ve recently been playing around a LOT with various development tools for HTML5 on my aging MacBook Pro… The thing is 6 years old now which is ancient in computing terms. And it was beginning to show its age so I began searching around for ways to bring it back to it’s former life and speed it up a bit.

In doing so I updated our ReviewMacSoftware site with the information over a couple of articles. The first article about speeding up a mac can be found at http://www.reviewmacsoftware.com/how-to-make-your-mac-run-faster.html – this is the first article I wrote which gained some good comments and some of those comments had some great other tips for getting the speed back into your Mac. I’ve done all of the things I’ve listed on that article, including updating to SSD (BIG difference, but big cost too) as well as checking permissions and so on. Worth a quick read if you want to speed your mac up a bit.

One of the comments was about Detox Your Mac which I’ll be honest I haven’t even tried as yet, but lots of people seem to like it. It’s available as a digital download on ClickBank. Clean My Mac 3 gets some fairly good reviews around the Web too and I like most of what it does if you don’t want to get under the hood of your Mac yourself. A lot of people on the Apple Support forums don’t seem to like it, but they’re experienced Mac System Administrators so I suspect their dislike for it is simply based on the fact that their experience with OSX means they can do better manually.

SDCZ528GB_sandisk_sandisk_cruzer_switch_8gb_usb_flash_drive_blackBut in the end, the biggest speed up for my MacBook was actually to re-install Yosemite from USB, with a complete reformat of the hard drive and just a restoration of my documents from a Time Machine backup. After that the Mac felt like new – it’s quick, runs cooler (and therefore quieter since I have MacFans running which speeds up the fans a bit if it gets warm). The only things that seem to stress it now are web browsers – is there ANY decent web browser available for OSX that doesn’t have memory leaks and eventually bring the system to a crawl? Chrome, Firefox and Safari all suffer the same fate and get the fans spinning and the bottom of the computer cooking my legs….

I know it seems a bit self serving to link to a bunch of articles on a site that I own and run myself, but the readership of this blog is a bit different to the readership over there (indeed, ReviewMacSoftware doesn’t really (at this stage) have any regular readers – everyone just comes from Google for the particular article they need) so I thought I’d highlight some of the articles and hopefully, if you use a Mac too, you can save yourself some upgrade dollars and make your mac run faster by combining all the different advice there into one blog post here.

Good luck, I hope the article was at least semi useful and please feel free to get in touch by leaving a comment below