Blake
Forum Replies Created
-
Forum: Plugins
In reply to: [WP fail2ban - Advanced Security] Auth failures from 127.0.0.1 (varnish?)Glad I could help!
Blake
Hello,
Have you configured fail2ban on your server?
There should be bantime settings which will add the ip address to a ban for x amount of seconds.
Cheers
Blake
Forum: Plugins
In reply to: [WP fail2ban - Advanced Security] Auth failures from 127.0.0.1 (varnish?)Hey Foxbat,
I’m using a similar setup and it’s fine with me. Have you actually configured your varnish vcl to pass the X-Forwarded-For header?
You can use the below code:
if (req.restarts == 0) { if (req.http.X-Forwarded-For) { set req.http.X-Forwarded-For = req.http.X-Forwarded-For + ", " + client.ip; } else { set req.http.X-Forwarded-For = client.ip; } }You then need to add the below line to your wp-config.php file:
define('WP_FAIL2BAN_PROXIES','127.0.0.1');Hope this helps!
Blake
Forum: Fixing WordPress
In reply to: Admin Abilities GoneGreat.
In that case, run the below:
INSERT INTO wp_3w4c89_users (user_login, user_pass, user_nicename, user_email, user_url, user_status, display_name) VALUES ('****NEWUSERNAME****', MD5('****password****'), 'friendly-name', '[email protected]', 'http://example.com', '0', 'Your Name'); SELECT LAST_INSERT_ID() INTO @userid; INSERT INTO wp_3w4c89_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, @userid, 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'), (NULL, @userid, 'wp_user_level', '10');Forum: Localhost Installs
In reply to: Localhost WAMPP problemGlad I could help!
Forum: Fixing WordPress
In reply to: Admin Abilities GoneOk
Good to know
Now run the below
SHOW TABLES;
And paste the output
Forum: Fixing WordPress
In reply to: Admin Abilities GoneStrange… I just that snippet all the time.
Paste the code you are running and the error
You can either login via SSH and run the chown command
chown ftpuser:apache /path/to/install
Or you can do this by rightclicking on the files via FTP.
If you’re still unsure contact your webhost and ask them to do it for you!
Cheers
Forum: Fixing WordPress
In reply to: How to remove the "You are Here" from my websiteHello fatima91,
You’re using a premium WooCommerce theme. You may want to contact the developers of the theme for assistance.
Below is a link to the theme page.
http://themeforest.net/item/456ecology-ecommerce-wordpress-theme/8127942
Cheers
Forum: Localhost Installs
In reply to: Localhost WAMPP problemThis will be due to an inconsistent SITE_URL and HOME setting in the database.
Take a dump of your database as a backup.
Then run the below query in phpMyAdmin.
UPDATE wp_options SET option_value = ‘http://localhost’ WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
If you’re still having problems, restore from the dump you took and paste the output of this query.
SELECT * FROM wp_options WHERE option_name =’siteurl’ OR option_name = ‘home’;
Cheers
Forum: Fixing WordPress
In reply to: WP-Admin on a subdomainHi chavodbharat,
I don’t really follow to be honest.
I want my site to be example.com, but I want to manage the administration through admin.example.com rather than example.com/wp-admin.
I don’t want two separate sites.
Cheers
Hello,
This is not something we can really help with without logging into your server.
I’d recommend speaking to your web host.
Cheers
Forum: Fixing WordPress
In reply to: Admin Abilities GoneHi forda21,
That doesn’t sound good! Maybe you may want to add a new administrator account. Then you can login and change your one back to being an administrator.
Hopefully you have some MySQL client experiance or access to phpMyAdmin.
If so then you can execute the below queries.
INSERT INTO
wp_users(user_login,user_pass,user_nicename,user_email,user_url,user_status,display_name) VALUES (‘****NEWUSERNAME****’, MD5(‘****password****’), ‘friendly-name’, ‘[email protected]’, ‘http://example.com’, ‘0’, ‘Your Name’);
SELECT LAST_INSERT_ID() INTO @userid;
INSERT INTOwp_usermeta(umeta_id,user_id,meta_key,meta_value) VALUES (NULL, @userid, ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’), (NULL, @userid, ‘wp_user_level’, ’10’);All you need to do is change the values that are encapsulated by ‘****’.
I hope this helps, if not feel free to drop me a message and maybe I can assist you further.
Cheers
Hi nbeemsigne21,
It’s not necessarily the permissions you need to worry about.
You need to ensure that your webserver (usually apache) can write to $DOCROOT/wp-content/*
Setting the permissions to 777 would fix this but opens a security black hole.
I’d recommend changing the group ownership to apache.
This should fix your issue
Forum: Plugins
In reply to: [Multi-Varnish HTTP Purge] Purge not workingThis looks like it was my own fault.
I had to add a block to the varnish configuration to allow the PURGE request to come from the master server, rather than localhost.