Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 03-20-2010, 10:21 PM   #1
HyperActive Warrior
War Room Member
 
Join Date: Oct 2009
Posts: 229
Thanks: 65
Thanked 39 Times in 30 Posts
Default Need help with WP Security Scan plugin - Please

Hello everyone,

Today I added the WP Security Scan plugin to one of my blogs. The following two problems were discovered during the initial scan:

Your table prefix should not be wp_. Click here to change it. and
The file .htaccess does not exist in wp-admin/.

I get the following error message, when I try to change the table prefixes via the plugin:

Your User which is used to access your Wordpress Tables/Database, hasn't enough rights( is missing ALTER-right) to alter your Tablestructure. Please visit the plugin documentation for more information. If you believe you have alter rights, please contact the plugin author for assistance.

I contacted my hosting company (Hostgator) and they said everything seems to be setup correctly. And they said that the problem is most likely the plugin. So with said, I decided to try changing the tables manually by following these steps: Change WordPress database table name prefix | WordPress Developer

When I try to import the localhost.sql I get the following error message:

MySQL said:


#1007 - Can't create database 'username_wrdp1'; database exists

At this point I have no idea how to change the table prefixes. Can someone please help me figure this out?

I also have no idea how to fix this problem:

The file .htaccess does not exist in wp-admin/.

Any help would be greatly appreciated.

Thank you,
Gordon
TheChanger is offline   Reply With Quote
Old 03-20-2010, 10:51 PM   #2
HyperActive Warrior
War Room Member
 
Join Date: May 2006
Location: Raleigh, NC
Posts: 242
Thanks: 17
Thanked 37 Times in 31 Posts
Social Networking View Member's Twitter Profile 
Default Re: Need help with WP Security Scan plugin - Please

On the issue of 'database already exists', the sql file you have probably has a 'create database <foo>' statement in it already - just remove that one line and try again.

Michael Kimsal
http://heywords.com/srv - take our 2 minute survey
mgkimsal is offline   Reply With Quote
Old 03-20-2010, 11:28 PM   #3
HyperActive Warrior
War Room Member
 
Join Date: Oct 2009
Posts: 229
Thanks: 65
Thanked 39 Times in 30 Posts
Default Re: Need help with WP Security Scan plugin - Please

Quote:
Originally Posted by mgkimsal View Post
On the issue of 'database already exists', the sql file you have probably has a 'create database <foo>' statement in it already - just remove that one line and try again.
I was able to import the file after I deleted this line from the .sql file:

CREATE DATABASE `username_wrdp1` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
USE `username_wrdp1`;

Thanks for the help Mgkimsal

Does anyone know how to fix this issue:The file .htaccess does not exist in wp-admin/.

What do I put in the .htaccess file?

Thanks in advance,
Gordon
TheChanger is offline   Reply With Quote
Old 03-21-2010, 12:11 AM   #4
HyperActive Warrior
War Room Member
 
Join Date: Oct 2009
Posts: 229
Thanks: 65
Thanked 39 Times in 30 Posts
Default Re: Need help with WP Security Scan plugin - Please

Quote:
Originally Posted by Gordon Hay View Post
Does anyone know how to fix this issue:The file .htaccess does not exist in wp-admin/.

What do I put in the .htaccess file?

Thanks in advance,
Gordon
I found the answer here: I installed the WP plugin "WP Security Admin Too... - JustAnswer

What permission level should I set for the .htaccess file?

Thanks
TheChanger is offline   Reply With Quote
Old 03-21-2010, 12:37 AM   #5
Active Warrior
War Room Member
 
Alpha981's Avatar
 
Join Date: Sep 2006
Posts: 129
Thanks: 53
Thanked 16 Times in 16 Posts
Social Networking View Member's Twitter Profile 
Default Re: Need help with WP Security Scan plugin - Please

Hello Gordon

I have just checked my .htaccess file and the permissions are set to 644

Hope that helps

Alpha981 is offline   Reply With Quote
Old 03-21-2010, 12:03 PM   #6
HyperActive Warrior
War Room Member
 
Join Date: Oct 2009
Posts: 229
Thanks: 65
Thanked 39 Times in 30 Posts
Default Re: Need help with WP Security Scan plugin - Please

Quote:
Originally Posted by Alpha981 View Post
Hello Gordon

I have just checked my .htaccess file and the permissions are set to 644

Hope that helps
My .htaccess file is currently set to 755. I will change it to 644 asap.

Thank you
TheChanger is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
plugin, scan, security

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:51 AM.