| Reseller Hosting Questions about your reseller hosting account. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Comfy Contributor
Joined in Dec 2006
Lives in North Carolina, the suck ass state...
152 posts
Gave thanks: 8
Thanked 3 times
|
Having a bit of trouble with WordPress
I just installed Wordpress from cPanel and when I go to delete the posts made with the install I get this error:
An appropriate representation of the requested resource /wp-admin/admin-ajax.php could not be found on this server. What's the problem, shouldn't admin-ajax.php be installed with WordPress or what? Is there a way to disable the ajax from being using so I can delete the posts without having to access the database and delete that way... |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Seasoned Poster
Joined in Dec 2006
Hosted on Pass44
71 posts
Gave thanks: 3
Thanked 2 times
|
I haven't had this problem, but Wordpress support says to add this in your .htaccess
<IfModule mod_security.c> SecFilterInheritance Off </IfModule> |
|
|
|
|
|
#3 (permalink) | |
|
Registered User
Seasoned Poster
Joined in May 2005
87 posts
Gave thanks: 12
Thanked 0 times
|
Quote:
Is this safe? I was reading other places that it is needed. "Just for the record I disagree that mod_sec is useless. It's protected my server countless number of times from attacks. It just depends on the rules that you give it. I gave a way to fix the regex. It's not necessary to remove anything from the code. What they have on there now constitutes a well formed header." from here: http://wordpress.org/support/topic/117993?replies=30 My problem was this - Each time I tried to delete a post or comment I was getting this error message: "You don't have permission to access /wp-admin/admin-ajax.php on this server" I ended up editing the .htaccess file in my wp-admin folder with this: <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> If this is bad - please someone (Kayla?) let me know - I do not want to crash the server. ![]() |
|
|
|
|
|
|
#4 (permalink) |
|
URB4N 5K1LLZ
Super #1
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
|
Hmm, I never had a problem like this with WP before, but have you tried locating the file within your FTP and seeing what the permissions were? Maybe attempting to switch them to 755 and see what happens?
|
|
|
|
|
|
#5 (permalink) | |
|
Registered User
Seasoned Poster
Joined in May 2005
87 posts
Gave thanks: 12
Thanked 0 times
|
Quote:
my admin-ajax.php file has a chmod of 644. I am not receiving the error any longer because I put this into the .htaccess file: <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> I am just wondering if that is safe... |
|
|
|
|
|
|
#6 (permalink) |
|
URB4N 5K1LLZ
Super #1
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
|
Ok, how about taking that code from your .htaccess off and then chmoding the file to 755. If it doesn't work, then put the code back into your .htaccess and keep looking around to see if it is safe or not.
|
|
|
|
|
|
#7 (permalink) | |
|
Registered User
Seasoned Poster
Joined in May 2005
87 posts
Gave thanks: 12
Thanked 0 times
|
Quote:
You don't have permission to access /wp-admin/admin-ajax.php on this server I have been searching, but I really do not even understand what this does: <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> It fixes my problem, but.... |
|
|
|
|
|
|
#8 (permalink) |
|
URB4N 5K1LLZ
Super #1
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
|
I searched around a bit and no one actually said it was a problem to do that, and it was OK to do. So, I see no harm in it...hopefully. =)
|
|
|
|