Bug 500 internal server error with mod_pagespeed

Status
Not open for further replies.
Hi there,

I would strongly recommend disabling mod_pagespeed as it has conflicts with the way vBulletin injects the Yahoo UI JavaScript library. It's not considered supported by our mods.
 
No, this error come with .htaccess rules. are not fixed with disabling mod_pagespeed. its happened with PHP 5.6.18

Error log: [Thu Feb 11 19:26:16.819846 2016] [core:alert] [pid 25967] [client 1.23.154.41:53115] /home/nadda/public_html/.htaccess: </IfModule> without matching <IfModule> section, referer:

If adding .htaccess rules then this error are come:

<IfModule mod_rewrite.c>
RewriteEngine On

# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
RewriteBase /

# If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
Options -MultiViews

RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* – [F,L]

# Retrieve gamedata requests and send to new dbtech locations
RewriteRule ^arcade/gamedata/(.*) dbtech/vbarcade/media/$1 [L]

# Retrieve crossdomain requests and send to new dbtech location
RewriteRule ^crossdomain\.xml dbtech/vbarcade/crossdomain.xml [L]

# Send hardcoded pnf+ipa scores to arcade instead
RewriteCond %{QUERY_STRING} func=storeScore [OR]
RewriteCond %{QUERY_STRING} autocom=arcade [OR]
RewriteCond %{QUERY_STRING} act=Arcade
RewriteRule .* arcade.php [L,QSA]

# Reroute v3arcade liveinstaller
RewriteCond %{QUERY_STRING} do=liveinstall
RewriteCond %{REQUEST_URI} v3arcade_admin\.php

# If you renamed your admincp directory, change it here
RewriteRule .* %{DOCUMENT_ROOT}/admincpforum/arcade_admin.php?%{QUERY_STRING}&do=review&import=browse&system=v3a [L,R=301]

RewriteCond %{REQUEST_URI} !(admincpforum/|dbseocp/|modcpforum/|cron|mobiquo|forumrunner|api\.php|cometchat/|extensions/mobileapp/)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincpforum|dbseocp|modcpforum|clientscript|cpstyles|images|cometchat|extensions|mobileapp)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]
</IfModule>
 
There is no missing IfModule section that I can see, that exact .htaccess configuration works fine for me on my testing environment.
 
Are you using with PHP 5.6.18? with this .htaccess rules then this error are come.

/home/nadda/public_html/.htaccess: </IfModule> without matching <IfModule> section
 
I am running Apache 2.4.18 and PHP 5.6.17 locally, no errors :)

Feel free to remove the IfModule tags and see if that makes a difference.
 
No, same. I have get responses from cPanel.


Hello,

Thank you for your patience. Please understand that our support for rewrite rules are very limited. I checked the /home/nadda/public_html/.htaccess and do not see any of the rules you mentioned. However, there is a file at /home/nadda/public_html/htaccess (no period) that does have the rules. The issue is that the IfModule statement has a closing IfModule, but it comes after all the rewrite rules. It should be like this:

<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>

The /IfModule was after all the rewrite rules, which is causing the error. Removing the /IfModule from the bottom and adding it as shown above removes the error, but now the 500 internal server error is showing because of too many redirects. This usually means that your rewrite rules are redirecting to each other over and over. You'll need to review the rules to determine what is causing the redirects over and over.


--
Best regards,

Seth Daughenbaugh
cPanel, Inc.
Technical Analyst
 
If you have Force Forum Directory Index enabled and you're not using the forum as the index, that would be a possible reason.
 
Site are working with this .htaccess rules:

Code:
<IfModule mod_rewrite.c>
	RewriteEngine On
</IfModule>

	# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
	RewriteBase /

	# If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
	Options -MultiViews

	RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
	RewriteRule .* – [F,L]

	# Retrieve gamedata requests and send to new dbtech locations
	RewriteRule ^arcade/gamedata/(.*) dbtech/vbarcade/media/$1 [L]

	# Retrieve crossdomain requests and send to new dbtech location
	RewriteRule ^crossdomain\.xml dbtech/vbarcade/crossdomain.xml [L]

	# Send hardcoded pnf+ipa scores to arcade instead
	RewriteCond %{QUERY_STRING} func=storeScore [OR]
	RewriteCond %{QUERY_STRING} autocom=arcade [OR]
	RewriteCond %{QUERY_STRING} act=Arcade
	RewriteRule .* arcade.php [L,QSA]

	# Reroute v3arcade liveinstaller
	RewriteCond %{QUERY_STRING} do=liveinstall
	RewriteCond %{REQUEST_URI} v3arcade_admin\.php

	# If you renamed your admincp directory, change it here
	RewriteRule .* %{DOCUMENT_ROOT}/admincpforum/arcade_admin.php?%{QUERY_STRING}&do=review&import=browse&system=v3a [L,R=301]

But Site not working if add adding DBSEO .htaccess rules:

Code:
<IfModule mod_rewrite.c>
	RewriteEngine On
</IfModule>

	# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
	RewriteBase /

	# If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
	Options -MultiViews

	RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
	RewriteRule .* – [F,L]

	# Retrieve gamedata requests and send to new dbtech locations
	RewriteRule ^arcade/gamedata/(.*) dbtech/vbarcade/media/$1 [L]

	# Retrieve crossdomain requests and send to new dbtech location
	RewriteRule ^crossdomain\.xml dbtech/vbarcade/crossdomain.xml [L]

	# Send hardcoded pnf+ipa scores to arcade instead
	RewriteCond %{QUERY_STRING} func=storeScore [OR]
	RewriteCond %{QUERY_STRING} autocom=arcade [OR]
	RewriteCond %{QUERY_STRING} act=Arcade
	RewriteRule .* arcade.php [L,QSA]

	# Reroute v3arcade liveinstaller
	RewriteCond %{QUERY_STRING} do=liveinstall
	RewriteCond %{REQUEST_URI} v3arcade_admin\.php

	# If you renamed your admincp directory, change it here
	RewriteRule .* %{DOCUMENT_ROOT}/admincpforum/arcade_admin.php?%{QUERY_STRING}&do=review&import=browse&system=v3a [L,R=301]

	RewriteCond %{REQUEST_URI} !(admincpforum/|dbseocp/|modcpforum/|cron|mobiquo|forumrunner|api\.php|cometchat/|extensions/mobileapp/)
	RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !/(admincpforum|dbseocp|modcpforum|clientscript|cpstyles|images|cometchat|extensions|mobileapp)/
	RewriteRule ^(.+)$ dbseo.php [L,QSA]
	
        # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
        # RewriteBase /

        # If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
        # Options -MultiViews

        RewriteCond %{REQUEST_URI} !(admincpforum/|dbseocp/|modcpforum/|cron|mobiquo|forumrunner|api\.php|cometchat/|extensions/mobileapp/)
        RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !/(admincpforum|dbseocp|modcpforum|clientscript|cpstyles|images|cometchat|extensions|mobileapp)/
        RewriteRule ^(.+)$ dbseo.php [L,QSA]
 
No, not working only adding this .htaccess rules.

Code:
<IfModule mod_rewrite.c>
	RewriteEngine On
</IfModule>


	RewriteCond %{REQUEST_URI} !(admincpforum/|dbseocp/|modcpforum/|cron|mobiquo|forumrunner|api\.php|cometchat/|extensions/mobileapp/)
	RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !/(admincpforum|dbseocp|modcpforum|clientscript|cpstyles|images|cometchat|extensions|mobileapp)/
	RewriteRule ^(.+)$ dbseo.php [L,QSA]
	
        # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
        # RewriteBase /

        # If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
        # Options -MultiViews

        RewriteCond %{REQUEST_URI} !(admincpforum/|dbseocp/|modcpforum/|cron|mobiquo|forumrunner|api\.php|cometchat/|extensions/mobileapp/)
        RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !/(admincpforum|dbseocp|modcpforum|clientscript|cpstyles|images|cometchat|extensions|mobileapp)/
        RewriteRule ^(.+)$ dbseo.php [L,QSA]
 
Do you have any custom rewrite rules or custom redirect rules? If so, could you please try removing them and seeing if that works?

If that also does not work, you may have a conflict in your URL formats. Are any URL formats using a "Custom" rule format? If so, could you please try reverting them to one of the built-in options and seeing if that works?
 
No, I am not using any custom rewrite rules or custom redirect .

No, I am not using any URL formats using a "Custom" rule format.

Only error with this rules:


RewriteCond %{REQUEST_URI} !(admincpforum/|dbseocp/|modcpforum/|cron|mobiquo|forumrunner|api\.php|cometchat/|extensions/mobileapp/)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincpforum|dbseocp|modcpforum|clientscript|cpstyles|images|cometchat|extensions|mobileapp)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]

# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /

# If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
# Options -MultiViews

RewriteCond %{REQUEST_URI} !(admincpforum/|dbseocp/|modcpforum/|cron|mobiquo|forumrunner|api\.php|cometchat/|extensions/mobileapp/)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincpforum|dbseocp|modcpforum|clientscript|cpstyles|images|cometchat|extensions|mobileapp)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]
 
Do you have the option to downgrade to 5.6.17? From what I can tell, this issue only started arising with that version, leading me to believe there's a critical flaw in that version of PHP.
 
Status
Not open for further replies.

Similar threads

Legacy DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
7,192
Customer rating
5.00 star(s) 1 ratings
Back
Top