Author Archives: admin

Pear with IIS

Installing PEAR with IIS easier than it seems when things dont at first work http://code.rawlinson.us/2012/02/install-php-pear-on-windows-7.html

Posted in Uncategorized | Tagged , , | Leave a comment

Making an integer null

Although you often see an error message when trying to return null for an integer, it is possible to return a null value if you declare the integer specifically int? value = new int?(); if(value == null) { // something … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Clock syncing to wrong time in networked server

Trying to fix my Windows 2012 server which is on a networked cloud, from reverting back to local network time even though i have set it the server to be on a timezone. I had the same problem with Server … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Main disk space offenders on linux

Use the command du -h –max-depth 1 from SSH at the folder depth level you want to check

Posted in Uncategorized | Leave a comment

Executabale files on linux

When using cron with Yii an error along the lines of “bash: ./yiic: Permission denied” will appear unless you first make yiic executable. The eas­i­est way to do this is to run the fol­low­ing com­mand in your frame­work directory: chmod … Continue reading

Posted in Uncategorized | Leave a comment

linux server connect to windows mssql

Had difficulty getting ports setup up and testing whether drivers worked Used freetds to act as driver with dblib tested by using tsql -S [hostname] -U [username] -P [password] where hostname was declared in /usr/local/etc/freetds.conf [myserver1] host = domain.name port … Continue reading

Posted in Uncategorized | Leave a comment

ipTables, APF, ConfigServer Firewall (linux)

A confusing day trying to get outgoing ports open so i can connect to a windows SQL server Eventually found ConfigServer Firewall which has some nice WHM features for setting ipTables. Tried ipTables through ssh as well. limited success as … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

linux symlinks

An easy way first to delete a symlink you don’t wont is unlink _______ (inserting the link here). To make a new link you can use ln -s _____1______ ______2_______ (where 2 is the new folder to make, and 1 … Continue reading

Posted in Uncategorized | Leave a comment

Apache server time

Although I had the correct zone info for my server set as Japan in the /etc/localtime folder, the time was still incorrect. I had to use the command date -s “8 MAR 2011 02:09:00” to get it set correctly. I … Continue reading

Posted in Uncategorized | Leave a comment

Social Media icons

Nice set of social media icons here

Posted in Uncategorized | Leave a comment