Monday, August 29, 2011

scp and wget missing on RHEL6 minimal install

So, to get around, you can install them from DVD or, mount your DVD as a yum repo, and then install the following packages:

wget
openssh-clients

Friday, August 12, 2011

How to convert dos format text files to unix format

I needed this for some scripts I discovered they're DOS format and bash couldn't understand them. So, it's simple, and you have multiple choices:


tr -d '\r' < input.file > output.file


sed 's/$'"/`echo \\\r`/" input.file > output.file

Monday, August 1, 2011

apache not processing only

This is solely PHP based, and I found this in default php.ini on RHEL6.1


short_open_tag = Off


Turn it on to allow only ..