Apache won't start with a PHP Deprecated error

Linode Staff

Apache is failing to restart when I run:

sudo /etc/init.d/apache2 restart

And in my error logs I see the following message:

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

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/apc.so' - /usr/lib/php5/20090626+lfs/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0

1 Reply

These errors mean that the current PHP installation has deprecated code and missing libraries.

You might wish to take a look at this blog post, which walks through the steps needed to troubleshoot this.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct