Saturday, August 02, 2008

Find and remove

Was needing to find all the .jpg files in my music folder and remove them - good old terminal...:
find -name "*.jpg" -exec rm {} \;

Friday, August 01, 2008

Hiding apache and PHP version numbers

Finally figured out how to hide the fact that apache and PHP weren't the latest version. Needed to do this becuase of PCI checking on the server which doesn't taken into account that the non-latest versions of the software have backported security.


edit /etc/apache2/apache.conf and set:
ServerSignature Off
ServerTokens Prod

edit php.ini and set:
expose_php = Off
For plesk, the php.ini file is in /usr/local/psa/admin/conf on a Debian related system. The httpd.conf file is in this directory too.