Results 1 to 7 of 7

How to disable vbseo without access to admin panel

This is a discussion on How to disable vbseo without access to admin panel within the General Discussion forums, part of the vBSEO SEO Plugin category; Sometimes I have trouble with a buggy plug in and need to disable them all via /include/config.php. But puting in ...

  1. #1
    Junior Member voter's Avatar
    Real Name
    Voter
    Join Date
    Apr 2008
    Location
    Armenia
    Posts
    27
    Liked
    0 times

    How to disable vbseo without access to admin panel

    Sometimes I have trouble with a buggy plug in and need to disable them all via /include/config.php.

    But puting in config.php "define('DISABLE_HOOKS', true);" seems still not full disabling vbseo as a plugin. Access to login.php was leading nowhere.
    I put in .htacess

    RewriteCond %{REQUEST_URI} !(cpadmin/|cpmod/|cron|redir\.php|login\.php) then I was able to login to admin panel with disabled plugins.

    Is there any way to disable vbseo, when access to admin panel is not possible? Could one put something in config_vbseo.php?

    Or could be that disabling plugin via config.php not works, when one uses xChache for Datastore?

  2. #2
    Senior Member
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    3 times
    Blog Entries
    1
    Yes you can disable vBSEO from config_vbseo.php
    open config_vbseo.php and find :
    PHP Code:
    define('VBSEO_ENABLED',                  1); 
    Replace 1 to 0 and then reupload the file

  3. #3
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    You may also need to temporarily rename .htaccess to htacces.txt via ftp.

  4. #4
    Junior Member voter's Avatar
    Real Name
    Voter
    Join Date
    Apr 2008
    Location
    Armenia
    Posts
    27
    Liked
    0 times
    Quote Originally Posted by Brian Cummiskey View Post
    You may also need to temporarily rename .htaccess to htacces.txt via ftp.
    Renaming .htaccess brings to Fatal error about that XCache not installed, with report that class_datastore.php needs it.

  5. #5
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    xcache data/directive pointers are not stored in htaccess. renaning the file should have no effect on xCache at all. Did you alter your htaccess some way to include this?

  6. #6
    Junior Member voter's Avatar
    Real Name
    Voter
    Join Date
    Apr 2008
    Location
    Armenia
    Posts
    27
    Liked
    0 times
    No xcache is not extra included in .htacess as much I know
    Here is what is included in my .htaccess
    # Use PHP5CGI as default
    AddHandler fcgid-script .php
    #
    # Apache/PHP/Drupal settings:
    #
    # Override PHP settings. More exist in sites/default/settings.php, but
    # the following cannot be changed at runtime.

    # File modified on Thu Dec 28 11:32:05 2006 by server
    # For security reasons, mod_php is not used on this server. Use a php.ini file for php directives
    # php_flag magic_quotes_gpc off
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>

    AddHandler audio/mpeg .mp3

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.viparmenia\.com$
    RewriteRule (.*)$ http://viparmenia.com/$1 [L,R=301]
    #Redirect 301 /vb/attachment.php?attachmentid=2002 http://viparmenia.com/vb/images/bann...viparmenia.jpg
    #RewriteRule ^(vb/attachment\.php\?attachmentid=2002&id=(\d+)) vb/images/banner/bannervipaemenia.jpg [L,R=301]
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vb/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    But what I figure out
    The error comes, when I am renaming .htaccess in main folder where vbCMPS is mainly working.
    My forum is in subfolder vb and there I have another .htaccess
    # Use PHP5CGI as default
    AddHandler fcgid-script .php
    #
    # Apache/PHP/Drupal settings:
    #
    # Override PHP settings. More exist in sites/default/settings.php, but
    # the following cannot be changed at runtime.

    # File modified on Thu Dec 28 11:32:05 2006 by server
    # For security reasons, mod_php is not used on this server. Use a php.ini file for php directives
    # php_flag magic_quotes_gpc off
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>

    AddHandler audio/mpeg .mp3

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.viparmenia\.com$
    RewriteRule (.*)$ http://viparmenia.com/$1 [L,R=301]
    #Redirect 301 /vb/attachment.php?attachmentid=2002 http://viparmenia.com/vb/images/bann...viparmenia.jpg
    #RewriteRule ^(vb/attachment\.php\?attachmentid=2002&id=(\d+)) vb/images/banner/bannervipaemenia.jpg [L,R=301]
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vb/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    viparme1@viparmenia.com [~/www]# cd vb
    viparme1@viparmenia.com [~/www/vb]# cd .htaccess
    -bash: cd: .htaccess: Not a directory
    viparme1@viparmenia.com [~/www/vb]# more .htaccess
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On

    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /

    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{REQUEST_URI} !(cpadmin/|cpmod/|cron|redir\.php)
    #|login\.php)
    RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(cpadmin|cpmod|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]


    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    Renaming the .htaccess - last one in folder where vbulletin is, is ok.

  7. #7
    Senior Member
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    3 times
    Blog Entries
    1
    You didn't need to rename your main folder htaccess you need to rename htaccess in your forum dir only and since it working when you rename your forum htaccess and didn't get any problem so your forum is fine and that's what Brian mean

Similar Threads

  1. vbseo admin panel şifremi unuttum
    By Autoclub in forum Türkçe
    Replies: 5
    Last Post: 03-24-2010, 07:09 AM
  2. Link Back to the vBSEO Admin Control Panel?
    By forumdrop in forum Troubleshooting
    Replies: 1
    Last Post: 10-30-2007, 02:21 PM
  3. vbSEO Admin Panel and Links Problems
    By TheHeartSmasher in forum Troubleshooting
    Replies: 3
    Last Post: 08-21-2007, 04:23 PM
  4. vBSEO 3.0.0 - Admin Control Panel Password Help
    By midascode in forum General Discussion
    Replies: 2
    Last Post: 06-28-2007, 03:06 AM
  5. Unable to access admin control panel
    By MentaL in forum Troubleshooting
    Replies: 7
    Last Post: 10-30-2005, 02:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •