Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration

So I had an old script that created the .htaccess file for a folder that I wanted to force all files to download instead of rendering, or processing however they normally would. The script for that file can be done in any language, but the .htaccess contents are as follows ForceType application/octet-stream Header set Content-Disposition attachment It’s pretty self explanatory. Notice the Files *.* part. That means any file. You can...

Read More

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