{"id":112,"date":"2017-10-11T05:55:00","date_gmt":"2017-10-11T05:55:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/bugzilla-internal-server-error-500"},"modified":"2017-10-11T09:41:25","modified_gmt":"2017-10-11T09:41:25","slug":"bugzilla-internal-server-error","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/bugzilla\/bugzilla-internal-server-error","title":{"rendered":"Bugzilla htaccess ExpiresActive not allowed here, Internal Server Error 500"},"content":{"rendered":"<p>After Upgrading Bugzilla, Apache server says htaccess ExpiresActive not allowed here<\/p>\n<h3><span style=\"text-decoration: underline;\"><b> Internal Server Error 500<\/b><\/span><\/h3>\n<p>After Upgrading the Bugzilla form 3.xx to 4.xx, following error occurred while browsing.<\/p>\n<p><u><b>Error Message:<\/b><\/u><br \/>\n<span style=\"color: #808080;\">Internal Server Error<\/span><\/p>\n<p><span style=\"color: #808080;\">The server encountered an internal error or misconfiguration and was unable to complete your request.<\/span><\/p>\n<p><span style=\"color: #808080;\">Please contact the server administrator, webmaster@datapatterns.co.in and inform them of the time the error occurred, and anything you might have done that may have caused the error.<\/span><\/p>\n<p><span style=\"color: #808080;\">More information about this error may be available in the server error log.<\/span><\/p>\n<p>Apahce Httpd\u00a0 error log shows the following error<\/p>\n<p>#tail -f\u00a0 \/var\/log\/httpd\/error_log<\/p>\n<div style=\"background-color: #cccccc;\"><b>\/usr\/share\/bugzilla\/.htaccess: ExpiresActive not allowed here<\/b><\/div>\n<p>Then I checked the Bugzilla setup for errors.<br \/>\nGo to Bugzilla installation directory<br \/>\n<strong>#cd \/usr\/share\/bugzilla<\/strong><br \/>\n<strong> .\/checksetup.pl<\/strong><br \/>\nNo error found.<\/p>\n<h3><u><b>Solution:<\/b><\/u><\/h3>\n<p>Modify the htaccess file as shown below.<br \/>\n(Hide other parameters)<br \/>\n<strong>#vim \/usr\/share\/bugzilla\/.htaccess<\/strong><\/p>\n<pre style=\"background-color: #eeeeee;\"><b>&lt;FilesMatch ^(.*.pm|.*.pl|.*localconfig.*)$&gt;<\/b>\r\n <b>\u00a0 deny from all<\/b>\r\n <b>&lt;\/FilesMatch&gt;<\/b><\/pre>\n<p>If bugzilla web service is configured in httpd.conf you can remove the .htaccess file<br \/>\n<strong>#cd \/usr\/share\/bugzilla<\/strong><br \/>\n<strong> #mv .htaccess .htaccess.bk<\/strong><br \/>\nreboot the Apache server<br \/>\n<b>#service httpd restart<\/b><\/p>\n<p>Now the error message is gone.<\/p>\n<h3><b><u>Apache Config File Example for Bugzilla: <\/u><\/b><\/h3>\n<pre style=\"background-color: #cccccc;\"><b>&lt;VirtualHost serverip:*&gt;<\/b>\r\n<b>DocumentRoot \/usr\/share\/bugzilla<\/b>\r\n<b>ServerName bugzilla.domain.com<\/b>\r\n<b>RewriteEngine on<\/b>\r\n<b>RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)<\/b>\r\n<b>RewriteRule .* - [F]<\/b>\r\n<b>IndexOptions SuppressColumnSorting SuppressDescription SuppressHTMLPreamble SuppressLastModified SuppressSize SuppressIcon SuppressRules<\/b>\r\n<b>Options +ExecCGI<\/b>\r\n<b>&lt;Directory \"\/usr\/share\/bugzilla\"&gt;<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 AddHandler cgi-script .cgi<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Options -Indexes +ExecCGI<\/b>\r\n<b>DirectoryIndex index.cgi<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 AllowOverride Limit<\/b>\r\n\r\n<b>&lt;\/Directory&gt;<\/b>\r\n<b>&lt;FilesMatch ^(.*.pm|.*.pl|.*localconfig.*)$&gt;<\/b>\r\n <b>\u00a0 deny from all<\/b>\r\n <b>&lt;\/FilesMatch&gt; <\/b>\r\n<b>&lt;\/VirtualHost&gt;<\/b><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After Upgrading Bugzilla, Apache server says htaccess ExpiresActive not allowed here Internal Server Error 500 After Upgrading the Bugzilla form 3.xx to 4.xx, following error occurred while browsing. Error Message:&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/bugzilla\/bugzilla-internal-server-error\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102,131],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/112"}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":4,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":702,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/112\/revisions\/702"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}