PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Cant Delete 2 Plugin folders

s2Member Plugin. A Membership plugin for WordPress®.

Cant Delete 2 Plugin folders

Postby jetheat » December 31st, 2010, 8:47 pm

I have deactivated and deleted S2Member from my plugins folder but there are 2 folders remaining in there each one with a .htaccess file in there.

No matter what I try, I cannot delete the folders or the .htaccess files within them.

I've tried cpanel, FTP clients, CMD prompt, overwriting etc...

I just cant delete these 2 folders.
One folder is s2member-logs and the other is s2member-files

Any ideas?
User avatar
jetheat
Registered User
Registered User
 
Posts: 8
Joined: October 16, 2010

Re: Cant Delete 2 Plugin folders

Postby cdvrooman » January 1st, 2011, 3:59 pm

jetheat,

if you have shell access as root, i.e. SSH using a program like PuTTY, you should be able to do this:

`rm -rf s2member-files s2member-logs`

which translates as: rm (remove) -rf (recursively force [no prompts]) and then the directories you want to delete separated by spaces.

If you don't have shell access, then maybe those 2 directories belong to a different group:user than your account, for example, 'nobody' or 'apache' that the server is running as and PHP used to create them automatically when you installed the s2Member plugin.

Hope that helps.

Sincerely,
Christopher
User avatar
cdvrooman
Registered User
Registered User
 
Posts: 6
Joined: December 21, 2010

Re: Cant Delete 2 Plugin folders

Postby jetheat » January 1st, 2011, 5:28 pm

I tried the putty trick and it stilll cannot remove it.

It said:
rm: cannot remove `s2member-files/.htaccess': Permission denied
rm: cannot remove `s2member-logs/.htaccess': Permission denied

When I look at the info on the files, I see that the owner and the group is set to 99.

Maybe if I change this, it might work. What do I change it to?
User avatar
jetheat
Registered User
Registered User
 
Posts: 8
Joined: October 16, 2010

Re: Cant Delete 2 Plugin folders

Postby cdvrooman » January 1st, 2011, 6:25 pm

jetheat,
Huh. That's strange. So you were logged in as 'root' and you still couldn't delete the directories?

Well, user '99' is the user that the server runs as. It is equivalent to 'nobody' or 'apache' or whatever user the server is configured to run as. I've deleted directories while logged in as 'root', but I've got a VPS. Maybe you're on shared hosting?

You can try this, but if you're actually logged in as root and can't blow away the directories I think you'd have to ask your webhost tech support to do it for you.

Anyway, first you need to know the name of the account that you're logged into. It should be the same as the username you use when you log into cPanel or Plesk or your FTP account. For this example lets say the name of your account is 'jetheat'.

Then, from the plugins directory, try this:

chown -R jetheat:jetheat s2member-files s2member-logs

That should change the ownership of each directory and all its files recursively to the group:user 'jetheat'. Then you could try the other command again 'rm -rf ... '.

When you're logged in via SSH (PuTTY), try this command:

whoami

That will tell you what user you're running as.

Good luck,
Christopher.
User avatar
cdvrooman
Registered User
Registered User
 
Posts: 6
Joined: December 21, 2010

Re: Cant Delete 2 Plugin folders

Postby jetheat » January 1st, 2011, 6:31 pm

I missed the part about logging in as root.

Maybe thats why it didnt work.

Anyway, I got my host to do it.

Thanks,

JH
User avatar
jetheat
Registered User
Registered User
 
Posts: 8
Joined: October 16, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests

cron