Onur Özgür ÖZKAN

Php, Ruby, Kebab, Git Geek

PHP Deprecated: Comments Starting With # Are Deprecated in /etc/php5/cli/conf.d/imagick.ini on Line 1 in Unknown on Line 0

After i install nginx on ubuntu, i get this error message when using php-cli.

1
PHP Deprecated:  Comments starting with '#' are deprecated in   /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0

I research this bug on internet. Then i understand this bug isn’t over PHP. It is over PHP Stack on ubuntu. They fixed the bug in Maverick. You can see the detail on http://launchpadlibrarian.net/48021734/mcrypt_ini_comments.debdiff link.

If you wanna solve the manually, you should edit the mcrypt.ini file located at /etc/php5/cli/conf.d/mcrypt.ini. It contained

1
2
# configuration for php MCrypt module
extension=mcrypt.so

You replace the comment initializer “#” with “;” as in

1
2
; configuration for php MCrypt module
extension=mcrypt.so

Thats all.