How to fix: PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
Apr.25, 2011 in
Php, System Administration
I setup an Ubuntu system with nginx and php, but i noticed a strange error.
Every time i run something php related in the console i get this strange error:
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0 |
I googled for some minutes and found why is that happening and how to fix it. The solution is open the file:
vi /etc/php5/cli/conf.d/ming.ini |
and replace the “#” in the first line with “;” and that will fix the “warning”.

May 8th, 2012 at 11:01 pm
May the Gods/Flying Monsters bless you.
I have struggled for two days to get some version of > /dev/null 2>&1 working. Why oh why didn’t it just occur to me to fix the damn problem?!?!?!????
Thank you.
July 11th, 2012 at 9:42 pm
The real question is how do you edit a ini file that tosses this error that you have no access to? I am using GoDaddy for hosting and getting this error on my website and cant access the ini file to fix it.
December 27th, 2012 at 5:54 am
[...] How to fix: PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0 – r00t.gr [...]
December 31st, 2012 at 6:57 pm
[...] How to fix: PHP Deprecated errors [...]
January 3rd, 2013 at 7:31 am
found error “Comments starting with ‘#’ are deprecated in /etc/php5/apache2/php.ini on line 1048 in Unknown on line 0 but i found nothing on that line no # and no ; plz tell me
January 16th, 2013 at 11:04 pm
After doing a few things to my WordPress site I have also been getting similar Cron job error messages with the primary problem being that I can no longer use Cincopa on my site.
Here are just the first few errors I get out of a much longer list:
PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/ming.ini
on line 1 in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20090626/imap.so’
- /usr/lib/php5/20090626/imap.so: cannot open shared object file: No such file or
directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20090626/intl.so’
- /usr/lib/php5/20090626/intl.so: cannot open shared object file: No such file or
directory in Unknown on line 0
Will replacing the “#” in the first line with “;” using vi /etc/php5/cli/conf.d/ming.ini fix the problem or just stop the “warning” message? Sorry if this sounds like an intensely stupid question but after “fixing my site when it wasn’t broken” I am now more skittish than ever to mess with using root and do not want to assume anything.
BTW, is this a bug in Ubuntu 12.04 or due to people accidentally resetting “factory settings”?
January 16th, 2013 at 11:28 pm
Thanks, Administration, for the suggestion. I got up the courage to try it and changed the # to ; but it still did nothing to help with the problem I am having with Cincopa pictures not appearing or functioning properly.
March 29th, 2013 at 12:02 pm
Installed a clean Ubuntu 12.04 LAMP on Amazon EC – and was hammered every 30 minutes with this error in my mailbox – the suggested solution worked strait away!
THANK YOU!
/ Dennis