Thursday, April 28, 2011

Odd PHP error

On my new VPS server, I am working on getting a lot of things I need installed and configured. Well, one of the tools I need has minimum requirements. I was checking the PHP version information with the following command:

$ php --version

Here is what it spit out at me:

PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP 5.3.2-1ubuntu4.7 with Suhosin-Patch (cli) (built: Jan 12 2011 18:36:08)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

That line in bold is what bothers me. So, I did some quick Googling and voila!!!

It looks like its a simple bug, but even trying to update the php5-mcrypt module was no help as it tells me its at the current version. So, per the bug page, I edited the mcrypt.ini file (as root of course) and changed the '#' to a ';', as was suggested. After doing that, it just worked, and perfectly, without the error.

No comments:

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.