Category Archives: Uncategorized
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
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
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
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
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 easiest way to do this is to run the following command in your framework directory: chmod … Continue reading
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
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
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
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