Error: Debian Squeeze/Apache2/PHP5 - PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0

You see the following lines in Apache's error log (/var/log/apache2/error.log):

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

 

Solution

Open /etc/php5/apache2/conf.d/ming.ini:

vi /etc/php5/apache2/conf.d/ming.ini

The file looks like this:

# configuration for php MING module
extension=ming.so

Remove the first line so that it looks like this:

extension=ming.so 

Do the same for the file /etc/php5/apache2/conf.d/ps.ini:

vi /etc/php5/apache2/conf.d/ps.ini

The file looks like this:

# configuration for php PS module
extension=ps.so

Remove the first line so that it looks like this:

extension=ps.so

Then restart Apache:

/etc/init.d/apache2 restart

Falko Timme

About Falko Timme

Falko Timme is an experienced Linux administrator and founder of Timme Hosting, a leading nginx business hosting company in Germany. He is one of the most active authors on HowtoForge since 2005 and one of the core developers of ISPConfig since 2000. He has also contributed to the O'Reilly book "Linux System Administration".

Share this page:

Suggested articles

1 Comment(s)

Add comment

Comments

By: Anonymous

Another way: Change # against ;. The official remark character