rsync: failed to set times on “xx”: Operation not permitted (1)

I use Rsync alot to make sure directories are all in sync with each other. It’s a great tool for development and distributing files over multiple machines with one command. Because it finds the differences, you don’t have to worry about whether you get the most recent version of a file copied to every machine you want it on. A single command can run an Rsync command to transfer to all the machines from a single source directory. ...

Read More

“The program can’t start because php5ts.dll is missing from your computer” Error

I was trying to execute a PHP file via the command line on a windows machine and got the following error “the program can’t start because php5ts.dll is missing from your computer” Now executing PHP via the command line in Windows is different enough from Linux, I didn’t know what it needed. In Linux I would have install php-cli which should have come with all the dependancies. In Windows however, I fixed the issue by...

Read More

srst failed errno 16

I booted up an Ubuntu machine and got this “srst failed errno 16″ error today.  There was no raided harddrive, so I thought I was doomed.  The machine was very quiet, checkdisk never finished, and I was starting to worry I’d never get my data back. It did allow me to go into recovery mode when booting Ubuntu, so I knew my data was at least obtainable.  I still couldn’t boot normally though, so something had to be done....

Read More

PHP Fatal error: Unsupported operand types

PHP is a very flexible language, but sometimes you’re not passing it what you expect. If you’re trying to do arithmetic, PHP will handle and convert pretty much anything except an array. So chances are if you get the “Fatal error: Unsupported operand types in” error, then you’re not adding two variables that you think you are. To troubleshoot simply do a var_dump(); before the operation that it is erroring out at...

Read More

Shorewall default configuration file not found

If you’re looking for the default configuration files for Shorewall and get the error below because you’re following a tutorial, then the answer is simple. cp: cannot stat `/usr/share/doc/shorewall-common/default-config/XXXXXXXXXX’: No such file or directory In version 3.X the path is /usr/share/doc/shorewall/default-config/ In version 4.X the path is /usr/share/doc/shorewall-common/default-config/

Read More