Upgrading from Apache 2.2 to 2.4 on Ubuntu, Drupal sites show Internal Server Error 500

As the title says, I've recently upgraded my sites to a newer release of Ubuntu, which includes the transition from Apache 2.2 to 2.4. Most of my sites that don't have highly customized .htaccess files are working, but the sites that I have running Drupal only want to show Internal Server Error. If I disable the .htaccess, the site loads fine, but obviously rewriting the url doesn't work. I'm not sure what's throwing it off, but the problem starts with the very first command of the .htaccess file:

Order allow,deny

I know my way around the command line well enough, but I don't work with linux servers every single day. I could use some help in determining what's throwing this off. I've gone through the steps listed at ~~[https://linode.com/docs/security/upgrading/updating-virtual-host-settings-from-apache-2-2-to-apache-2-4/" target="blank">](https://linode.com/docs/security/upgrad … pache-2-4/">https://linode.com/docs/security/upgrading/updating-virtual-host-settings-from-apache-2-2-to-apache-2-4/](, appending '.conf' to the configuration file and re-enabling the site, and adding Require all granted to the VirtualHost directive. The /var/logs/apache2/error.log really only seems to show a warning about a deprecated PHP function: Deprecated: Directive 'registerlong_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
.

What should I try next?

3 Replies

Updated to add: Actually I looked in the site's specific error log, and I get this message:

http://www.mywebsitename.com

If that helps to narrow down the issue any more closely.

Look for the IfModule directive in your config or .htaccess files. This includes files in /etc/apache2/conf-enabled, /etc/apache2/mods-enabled, and /etc/apache2/sites-enabled.

What version of Apache? PHP? Drupal? Are using using mod_PHP or PHP-FPM?

Based on what you have here so far, Vance's suggestion is a good one.

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