Linux Tutorial | Matt Cooper - Open Source Support
Linux Tutorial | Matt Cooper - Open Source Support
Wordpress Troubleshooting

WordPress – disable RSS feed

If like me you have issues with a blog duplicating/stealing your blog posts and the following to your WordPress theme’s functions.php (Appearance > Editor):

remove_action('do_feed_rdf', 'do_feed_rdf', 10, 1);
remove_action('do_feed_rss', 'do_feed_rss', 10, 1);
remove_action('do_feed_rss2', 'do_feed_rss2', 10, 1);
remove_action('do_feed_atom', 'do_feed_atom', 10, 1);

This disables the /feed form your website and hopefully stops content being duplicated by other ‘bloggers’ through a plugin.

You can also ask Google to remove the URLs from searches if a copyright infringement here:

http://www.google.com/webmasters/tools/dmca-notice?rd=1

August 17, 2015by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Wordpress Troubleshooting

WordPress redirects to install.php after migration

After shifting a live website to a development site to work on I was getting redirected to domain.com/wp-admin/install.php.

The issue arise if you have changed the default database prefix.

To fix simply open your wp-config.php file and update the following line to your table prefix:

$table_prefix  = 'wp_';
July 2, 2015by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Wordpress Troubleshooting

Delete all comments from WordPress Database


DELETE FROM wp_comments WHERE comment_approved = 0;

May 20, 2015by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
MySQL Tutorial, Wordpress Troubleshooting

Add Admin User to WordPress MySQL

Simple commands to insert a new Admin user into your WordPress database:

INSERT INTO `databasename`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('3', 'username', MD5('password'), 'Nice Name', 'test@yourdomain.com', 'http://www.test.com/', '2011-06-07 00:00:00', '', '0', 'Your Name');

INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '3', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');

INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '3', 'wp_user_level', '10');

Notes:

3 – next free user id in wp_users table
username – username logging in with
password – password logging in with
Nice Name – name
test@yourdomain.com – email address
http://www.test.com/ – URL
2011-06-07 00:00:00 – sign-up date
Your name – display name

Last 2 INSERT commands give the user admin privileges. Remember to update ‘3’ to the user id you set in the first INSERT command.

May 13, 2015by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Wordpress Troubleshooting

WordPress Admin Blank Screen – Unable to access

When accessing /wp-admin a blank screen appears. The fix that worked for me was the following:

1. Backup current web files and database

2. Download a copy of WordPress from wordpress.com

3. Upload and overwrite website files with blank copy downloaded above

wordpres-ftp

*NOTE – this will not overwrite your theme and settings

4. Refresh site and update database if required (prompted on screen)

5. Done!

I believe this issue was caused by an auto update of WordPress although not confirmed.

Credit goes to – http://kb.oboxthemes.com/articles/unable-to-access-admin-or-blank-white-page-after-install-or-update/

January 15, 2015by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Page 1 of 212»

About me

Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk

Recent Comments

  • Andrew on Export list of Amazon EC2 Instances to CSV
  • Matt Cooper on Proxmox – add a second hard drive to node for Backups
  • karis on Proxmox – add a second hard drive to node for Backups
  • Matt Cooper on Remote MySQL Database – Slow Connection
  • Matt Cooper on Bash script to send public IP address to Email

Categories

  • AdvancedTomato
  • Amazon AWS
  • Amazon Linux
  • Amazon S3
  • Apache
  • Apache Kafka
  • Backup Tutorial
  • Bash Scripting
  • Centos Tutorial
  • CloudFlare
  • Command line Tutorial
  • CPanel Troubleshooting
  • CPanel Tutorial
  • Debian Troubleshooting
  • Debian Tutorial
  • DKIM
  • Docker
  • EC2
  • ESXi
  • Faildows
  • Google Adwords
  • Google Analytics
  • Google Chromebook
  • Google Mail
  • graylog
  • IAM
  • imapsync
  • iRedmail Tutorial
  • ISPConfig3 Tutorial
  • Java
  • ldap
  • letsencrypt
  • MyDNS
  • MySQL Troubleshooting
  • MySQL Tutorial
  • Nest Install
  • Netbeans
  • Nginx
  • Nginx Troubleshooting
  • openssl
  • PCI Compliance
  • Percona
  • PHP
  • Plex Media Server Tutorial
  • Postfix
  • Proxmox Tutorial
  • Pure FTPd
  • Resourcespace Tutorial
  • Route 53
  • Rsync Tutorial
  • Security
  • Smoothwall Troubleshooting
  • Smoothwall Tutorial
  • SSH
  • tcpdump
  • Thunderbird
  • Tomcat Troubleshooting
  • Ubuntu Tutorial
  • Uncategorized
  • Unison
  • vmware
  • vzdump
  • WHM
  • Wireshark
  • Wordpress Troubleshooting
  • WordPress Tutorial

“See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too." Linus Torvalds

© 2017 copyright www.linuxtutorial.co.uk // All rights reserved