Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

theshell

theshell

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…

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…

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…

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″…

Install subversion 1.8.10 on CentOS 6.5 – Plesk 12

Install the wandisco repo to get the latest version of subversion for CentOS [WandiscoSVN] name=Wandisco SVN Repo baseurl= enabled=1 gpgcheck=0 Issue the following at shell yum install subversion mod_dav_svn Restart httpd, it’ll do it itself while installing but go ahead…

Add a user to Mysql via shell – CentOS 6.5

Start off by adding a new user to Mysql CREATE USER ‘test123’@’localhost’ IDENTIFIED BY ‘testpassword123’; You should see a Query OK message from Mysql signalling that it run without error. Now grant privileges to that user on a database GRANT ALL…