icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Reseller Hosting » Having a bit of trouble with WordPress

Reseller Hosting Questions about your reseller hosting account.

Reply
 
LinkBack Thread Tools Search this Thread
Old September 23rd, 2007, 11:43 PM   #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...
Otaku is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 24th, 2007, 12:47 AM   #2 (permalink)
Registered User
Seasoned Poster
 
lovetrick's Avatar
 
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>
__________________
angel-descent.com sara.ph
lovetrick is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4th, 2008, 11:55 AM   #3 (permalink)
Registered User
Seasoned Poster
 
Joined in May 2005
87 posts
Gave thanks: 12
Thanked 0 times
Quote:
Originally Posted by lovetrick View Post
I haven't had this problem, but Wordpress support says to add this in your .htaccess

<IfModule mod_security.c>
SecFilterInheritance Off
</IfModule>


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.
__________________
Pass 32
Animals in Crisis - hosted on pass32

Server status:
madhippo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4th, 2008, 12:24 PM   #4 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
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?
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4th, 2008, 12:29 PM   #5 (permalink)
Registered User
Seasoned Poster
 
Joined in May 2005
87 posts
Gave thanks: 12
Thanked 0 times
Quote:
Originally Posted by Roxy View Post
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?
thanks for replying.


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...
__________________
Pass 32
Animals in Crisis - hosted on pass32

Server status:
madhippo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4th, 2008, 12:33 PM   #6 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
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.
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4th, 2008, 12:48 PM   #7 (permalink)
Registered User
Seasoned Poster
 
Joined in May 2005
87 posts
Gave thanks: 12
Thanked 0 times
Quote:
Originally Posted by Roxy View Post
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.
Taking out the code from my .htaccess file and changing the chmod to 755 resulted in the problem I was having before. I got the error message of:

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....
__________________
Pass 32
Animals in Crisis - hosted on pass32

Server status:
madhippo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4th, 2008, 1:16 PM   #8 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
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. =)
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4th, 2008, 3:03 PM   #9 (permalink)
Registered User
Seasoned Poster
 
Joined in May 2005
87 posts
Gave thanks: 12
Thanked 0 times
thanks Roxy - I appreciate it
__________________
Pass 32
Animals in Crisis - hosted on pass32

Server status:
madhippo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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