Forum Replies Created

Viewing 15 replies - 31 through 45 (of 53 total)
  • Forum: Plugins
    In reply to: Using SuPHP on a VPS

    If you have your own VPS and can compile apache the way you want (Easy Apache), we have found: PHP 5 Handler-dso, with Apache-Mod Ruid2 is by far the best way to go.
    All the security and convenience of suEXEC, with the blistering speed of W3 Total Cache & APC.
    Our VPS host is http://www.crucial.com.au/
    Reasonable prices for xen VPS, rock solid support & uptime with this company.
    We run an ecommerce WP site with up to 40 different plugins and lots of products, yet our Yslow score is 89, Page Speed: 96 (home page).
    http://www.lusanbidets.com.au

    Thread Starter lesb55

    (@lesb55)

    Oops! spoke a bit soon.

    If I have my wp-config set: define(‘FORCE_SSL_LOGIN’, true);
    then this option simply shows as greyed out and checked in WordPress HTTPS – this is correct.

    But if I have: define(‘FORCE_SSL_LOGIN’, false); (or this field totally removed) in my wp-config;
    Then if in WordPress HTTPS I check the box: “Force SSL Login – Always use HTTPS when logging in”, this box does not stay checked when I refresh my browser.

    A minor glitch – to be sure.

    Thread Starter lesb55

    (@lesb55)

    Naa Mike,
    You got me wrong –
    That last was simply another hypothetical question someone is sure to ask:

    But then: “how do I know my login details are sent encrypted when I check: Always use HTTPS when logging in?”
    Or: “I can’t see any padlock symbol when I login”.

    This is dicussed at some length here:
    http://www.thatsgeeky.com/2012/01/wordpress-ssl-login-page-without-ssl-admin/

    For my 2 cents worth: I couldn’t be bothered with this – your latest dev. version is good enough!

    Thread Starter lesb55

    (@lesb55)

    Yep,
    Works perfectly – this ones a thumbs-up from me!

    Now, if I set my wp-config file as:
    define(‘FORCE_SSL_LOGIN’, true);
    this shows as greyed out and checked in WordPress HTTPS.

    However; if I have: define(‘FORCE_SSL_ADMIN’, false); in wp-config, this is not recognized (and will be over-ruled by) whatever you set here in WordPress HTTPS.

    Purists may disagree; but this is completely acceptable by me!

    But for sure someone is going to ask: “what should I use – SSL Login or SSL Admin?”
    Answer: http://codex.wordpress.org/Administration_Over_SSL

    Which Should I Use?
    FORCE_SSL_LOGIN is for when you want to secure logins so that passwords are not sent in the clear, but you still want to allow non-SSL admin sessions (since SSL can be slow).
    FORCE_SSL_ADMIN is for when you want to secure logins and the admin area so that both passwords and cookies are never sent in the clear. This is the most secure option.

    But then: “how do I know my login details are sent encrypted when I check: Always use HTTPS when logging in?”
    Or: “I can’t see any padlock symbol when I login”.

    I have to admit: it would be cool if the plugin could show the padlock symbol where you login, but then took you to the http page in admin.

    Past me bothering about, but perhaps for a future release?
    http://www.thatsgeeky.com/2012/01/wordpress-ssl-login-page-without-ssl-admin/

    Thread Starter lesb55

    (@lesb55)

    Thanks Mike,

    looking forward to the next version release!

    Thread Starter lesb55

    (@lesb55)

    You are right.
    If my wp-config.php is set:

    /** Force Admin login to SSL. */
    define(‘FORCE_SSL_LOGIN’, true);
    define(‘FORCE_SSL_ADMIN’, true);

    then the ‘Force SSL Administration’ checkbox is greyed out, (and the error appears).
    With v2.0.4, this used to be checked & greyed out, but the error message did not appear.

    Delete these lines from wp-config, the error message doesn’t show, and WordPress HTTPS can then be used to force both login & admin over SSL.

    But I like to have:
    /** Force Admin login to SSL. */
    define(‘FORCE_SSL_LOGIN’, true);
    define(‘FORCE_SSL_ADMIN’, false);

    This is because SSL is slower, and there are too many unsecured elements on my admin page (the plugin ‘Wordfence’ also locks me out because of too many 404s).
    But I do prefer my login details being sent encrypted (in Opera; you sometimes see the padlock symbol just momentarily – as you login).

    As a feature request; perhaps you could add another checkbox: ‘Force SSL Log In only’

    People like me could then choose either: ‘Force SSL Log In only’ or ‘Force SSL Administration’ (without having to fiddle with their wp-config file)

    Is this feasible?

    Thread Starter lesb55

    (@lesb55)

    Yippee!
    It works!
    Code geeks like you get my greatest respect.

    Couple minor things you probably already know about:

    “SSL Admin – FORCE_SSL_ADMIN and FORCE_SSL_LOGIN can not be set to true in your wp-config.php.”
    This warning now appears every time you save the settings, whether ‘Force SSL Administration’ is checked or not.

    Some of the css in admin need to be fixed so explanations are moved further away from the checkboxes.

    Thread Starter lesb55

    (@lesb55)

    Id really appreciate that Mike,
    sending access details to your email address now.

    Just to be sure, I totally re-copied my live website to my test account (including the database). Same deal; plugin update activates OK on my test website, but not my live site. These two accounts in WHM are identical – except for my live site having a dedicated ip.

    Given time I can usually figure out most problems myself, but this one has me stumped!

    Thread Starter lesb55

    (@lesb55)

    Nope, not the theme – tried with Twenty-Ten – same.
    Smells like something amiss in the database, what do you think?

    Thread Starter lesb55

    (@lesb55)

    Thanks for your time Mike, I have donated to this plugin in appreciation of your work.

    I do already have a duplicate test website set up on this same server.
    WordPress HTTPS 3.1.2 activates no problem on this test site (with all the same plugins active).
    I don’t of course have an SSL certificate set up for this site, so redirects to SSL don’t work here.

    Tried activating WordPress HTTPS 3.1.2 on my live site with all other plugins deactivated – same error.

    The error is obviously being caused by some difference in server configuration between these two websites. The ONLY difference I can see is that my live site uses a dedicated IP, whereas my test site uses the shared server IP.

    Thread Starter lesb55

    (@lesb55)

    Yep, correct code is all in there.

    Why the heck is activation of this update stalling at line 49, but V2.0.4 works without a hitch on my server?
    Using WP 3.4.1

    Once again:

    Fatal error: Class ‘WordPressHTTPS’ not found in /home/lusan/public_html/wp-content/plugins/wordpress-https/wordpress-https.php on line 49

    Line48:if ( function_exists(‘get_bloginfo’) && ! defined(‘WP_UNINSTALL_PLUGIN’) ) {
    Line49: $wordpress_https = new WordPressHTTPS;

    Tried installing manually, and then activating – same deal.

    Thread Starter lesb55

    (@lesb55)

    Thanks for your suggestions Mike,
    Setting permissions to world writable (777) for all files and folders of the plugin, including my wp-config, just returns the same error on activation.

    Looking at the error log in cpanel; every time I installed and tried to activate latest version, this error got recorded (twice):

    PHP Fatal error: Class ‘WordPressHTTPS’ not found in /home/—–/public_html/wp-content/plugins/wordpress-https/wordpress-https.php on line 49, referer: https://www.lusanbidets.com.au/wp-admin/plugins.php?error=true&plugin=wordpress-https%2Fwordpress-https.php&_error_nonce=d1380ee602

    The ‘nonce=d1380ee602’ gets changed to a different number each time.

    Thread Starter lesb55

    (@lesb55)

    Running PHP Version 5.3.13, MySQL Version 5.1.63
    Standard LAMP (Centos) but on an Xen VPS server.

    Recently had trouble with latest update of another plugin:
    GWA Autoresponder Pro – activating latest version5 gobbles all the memory.
    The plugin developer still hasn’t sorted that one.

    I have a near identical test website set up on this same server, and activating latest WP-https plugin on this site is no problem (but of course this website doesn’t have an SSL certificate installed).

    Thread Starter lesb55

    (@lesb55)

    Thanks for your response Mike.

    Completely uninstalled 2.0.4 (including all wordpress-https options in database).
    Installed 3.1.2 and same deal – trying to activate gave:

    Fatal error: Class ‘WordPressHTTPS’ not found in /home/—–/public_html/wp-content/plugins/wordpress-https/wordpress-https.php on line 49

    Tried deleting this line, then activating and got:

    Fatal error: Call to a member function setSlug() on a non-object in /home/—–/public_html/wp-content/plugins/wordpress-https/wordpress-https.php on line 49

    My wp-config has:
    /** Force Admin login to SSL. */
    define(‘FORCE_SSL_LOGIN’, true);
    define(‘FORCE_SSL_ADMIN’, true);
    Tried setting these to false – same.

    Everything works perfectly with version 2.0.4

    Thanks Jan,

    Yep you’re right – I have been hacked.
    This time an PHP/krptik.AB trojan got injected into my wp-content/w3tc/min/index.php file.

    Nod32 wouldn’t even let me open the file (via FTP) to remove the offending code.

    This is only being injected into the wtc/min/index.php file – if I switch minify on.

    Scanned my website with http://sucuri.net as recommended by Willie Jackson, Senior Marketer and Engineer W3 EDGE (thanks Willie) but my site comes up clean. I have also checked all the directories on my server for any suspicious code – and nothing I can see.

    This only happened after I upgraded both WordPress, and a fair few other plugins I use including w3Total Cache.

    This means: the code that allows some *#^+ asshole to do this, has obviously been put into one of these upgraded plugins – or my database.

    I run an identical test website on the same VPS server, that has not been affected with the same upgrade. That makes me suspect the database.
    I vote for a ‘mandatory death sentence’ for all hackers!

Viewing 15 replies - 31 through 45 (of 53 total)