Official Installation Instructions – And what to do about errors
-
Recently the www.ads-software.com plugin directory was redesigned and the installation instructions are no longer visible on the plugin page. So I’ve pasted the installation instructions below (they’re also in the readme.txt file).
Requirements:
- PHP 5.1+ (tested with PHP 5.2-7.0)
- MySQL using PHP mysqli extension (read on for details)
- WordPress 3.9+
If you are strictly assigning MySQL privileges, note that the plugin adds two column indexes, so your database account must be assigned the ALTER and CREATE privileges (if you don’t know what this means, don’t worry, you probably already have this).
- Download, unzip and upload into your plugins directory. (Or, install through the plugins menu in WordPress, just like any other plugin.)
- Go to the Plugins configuration screen in WordPress and activate. Look for the settings link to go to the User Spam Remover settings page (User Spam Remover also gets added to the left menu under “Users”).
Note: if you see mysqli errors at the top of the activation or settings page, you need to tell WordPress use use the
mysqli
extension instead of the oldermysql
one. Add this line to yourwp-config.php
(insert it next to all the other DB settings, near the top):define('WP_USE_EXT_MYSQL', FALSE);
- On the settings page, you’ll need to click the “Enable” checkbox to turn the plugin on. Scroll down and change any options you like. Click “Save Changes.”
One note on logging: By default, all logging is enabled (good!), but the log directory is set to the
log
subdirectory of the plugin. While this is OK, it means your log files will be viewable over the web, so I recommend you change this directory to someplace else (i.e., if the root of your site is/www/mysite/html
, do something like/www/mysite/log
). Be sure to usechmod
or your FTP program to make this directory webserver-writable (don’t worry, User Spam Remover will warn you if it’s not). - Once you’re done, that’s it! Feel free to use the blue “Remove spam/unused accounts now” button to test it out. User Spam Remover will run once a day automatically from now on.
#1 FAQ
What is all this mysqli vs. mysql stuff? Why are you making my life so hard?Answer: Just put
define('WP_USE_EXT_MYSQL', FALSE);
in your wp-config.php and this problem will go away forever!Long answer: The
mysqli
API is the new way PHP connects to MySQL, it is safe and has been around for about 15 years (since PHP 5.0 was released).The old
mysql
API was officially deprecated by PHP when they released version 5.6 and it was removed entirely from PHP in version 7.0. So you will have to stop using it at some point whether you want to or not!For the last couple of years, with this plugin I decided to support only
mysqli
because it is safe, it permits database transactions with rollback and can ensure the integrity of your data, whilemysql
is old and bad and I haven’t even used it in 10+ years, except for compatibility with WordPress.Chances are that you already have
mysqli
installed, the problem is that WordPress needs you to put that line into your wp-config.php or it will try to “detect” which API to use, and it does not do this in a particularly smart way.Of course I could make the plugin modify your wp-config.php automatically but that is something I don’t want to do, I don’t think any plugin should be changing your system configuration.
The #1 goal of this plugin is to not harm your data, break your site, or do other bad things, that is why I am going for safety over ease of use.
- The topic ‘Official Installation Instructions – And what to do about errors’ is closed to new replies.