• Resolved UgoDimma

    (@lovecoinz)


    Hey guys

    I enabled ssl whole site on my live site, which is okay, because I have ssl certificate on my site.
    Now I downloaded my site to local machine for maintenance, and my local machine does not support ssl for the virtualhost I created. Now, I cannot access my site, both the front end and the back end because it all directed to https.
    I searched my wp-config.php for any instances of the ssl, but none is found. I then added the following code

    define('FORCE_SSL_LOGIN', false);
    define('FORCE_SSL_ADMIN', false);

    But it did not solve the issue. I deleted my .htaccess, yet no result.

    Please, how do I disable ssl when I do not have access to the entire site?

    https://wordpress.org/plugins/better-wp-security/

Viewing 6 replies - 1 through 6 (of 6 total)
  • @Agbams.

    You will probably need to log into your database using phpMyAdmin.

    You may need to change https:// to http:// in the option_value column of the wp_options table for option_name values siteurl and home.

    If these are already set to http:// or correcting them to http:// does not help try and rename the better-wp-security folder.

    Try all of the above at your own risk.

    dwinden

    Thread Starter UgoDimma

    (@lovecoinz)

    Hey dwinden

    I followed your suggestion, but regret to tell that it does not work.
    Taking a look at my database wp_optios, my site and home url is http://. Going to my wp-config.php, there is no instance of SSL, which made me wonder, why am having ssl enabled site. This is applicable to the production site to. So I want to know if there is another place this plugin enters such information.
    Deactivating the plugin on my development site does not as well solve the issue.

    To be sure that it is this plugin that enforces ssl, I went to the production site, and turn ssl off both for the whole site and the admin, then access my site without ssl, through http://, and all went fine without ssl, which mean, ssl is enforced by this plugin.

    What else should I do to disale ssl on the developmet site whe

    @Agbams

    Ok, the only thing I can think of is manually disabling the iTSec plugin SSL settings in the database.
    So on you local machine env log into your database using phpMyAdmin and execute the following command:

    select * from wp_options where option_name = ‘itsec_ssl’;

    Change the serialized option_value value displayed:

    a:2:{s:8:”frontend”;i:1;s:5:”admin”;b:1;}

    or

    a:2:{s:8:”frontend”;i:2;s:5:”admin”;b:1;}

    to:

    a:2:{s:8:”frontend”;i:0;s:5:”admin”;b:0;}

    That should do the trick.

    dwinden

    Thread Starter UgoDimma

    (@lovecoinz)

    Hey dwinden

    Thanks for your immense help. Am glad to tell you that it worked. But with little change.
    The value was not found on wp_option, but on wp_sitemeta.

    After going through your procedure, I could not find the option_name “itsec_ssl”, so I have to run a search on the whole database and behold, It is found on wp_sitemeta. After the change, I can now access the site on localhost without ssl interference.

    @Agbams

    Ah, glad to hear the issue is resolved.

    Next time do mention you are using MultiSite in the topic 😉

    The wp_sitemeta table is the wp_options table equivalent for Network plugins in MultiSite. And the iTSec plugin runs as a network plugin in MultiSite.

    dwinden

    Thread Starter UgoDimma

    (@lovecoinz)

    NOTED

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to disable ssl when there is no login access’ is closed to new replies.