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

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Thu, 2011-08-11 15:48. :: Errors

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


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Wed, 2012-12-12 10:40.
Another way: Change # against ;. The official remark character