Change NGINX port – Plesk 12 / CentOS 6.6

We started experimenting with Varnish in a bid to tackle load instead of adding full blown replicated web server nodes. Once we were done with testing we ran into trouble implementing the set up on Plesk. There isn’t a whole lot of documentation on this matter so we ended up banging…

Read More

Install Memcached and Memcached for PHP – CentOS 6.6

Make sure you have the epel repo installed on your system #This is for CentOS 64-bit wget wget rpm -Uvh epel-release-6-8.noarch.rpm Install Memcached yum install memcached With installation done, we’ll need configure Memcached now # Running on Port 11211 PORT=”11211″ # Start as memcached daemon USER=”memcached” # Set max simultaneous…

Read More

Remove drweb from Plesk

Drweb can get really annoying because of it’s resource usage even on a brand new Plesk server. Run the following to remove drweb from your system: rpm -qa | grep drweb | xargs rpm -e credit: Update your mail server config /usr/local/psa/admin/sbin/mchk –without-spam Remove the cron entries rm -rf…

Read More

Plesk 12 / NGINX – Setting Expires

Setting up expires on Plesk is a little bit tricky, if you’re like us, under the Nginx settings in domains you’ll have Serve static files directly by nginx enabled, at the same time the extensions included will have the extensions you want to set expires for. What happens is, if you’re setting…

Read More

Exclude selective folders with identical names in Rsync run/var/www/html/wordpress/wp-admin/uploads – (exclude) /var/www/html/wordpress/wp-content/uploads – (sync)

We recently had to run rsync excluding some identically named folders. To explain: /var/www/html/cms/admin/uploads – (exclude) /var/www/html/cms/content/uploads – (sync) Here is how we got around to getting this done rsync -av –exclude=/admin/uploads/ /var/www/html/cms/ /var/www/html/syncfolder/ –progress Flags: -a: Archive mode -v: increase verbosity –exclude: exclude files matching PATTERN  

Read More

Update Ioncube loader files

We recently came across a server which had an outdated ioncube load running, follow below to update to the latest version. Search for the location of ioncube loader files on your server, run the following command: find / -name ioncube_loader_lin_5.3.so Note: You may need to change the version of php appended…

Read More

Force comments in commits – Subversion (SVN)

You need to set this up on the server which hosts the SVN repository. Enter the repository and you should see a folder labelled hooks, create a new file labelled pre-commit without any extension and paste the following code inside   #!/bin/sh REPOS=”$1″ TXN=”$2″ SVNLOOK=/usr/bin/svnlook $SVNLOOK log -t “$TXN” “$REPOS” | \ grep “[a-zA-Z0-9]”…

Read More