Page 1 of 1
Cant Delete 2 Plugin folders
Posted:
December 31st, 2010, 8:47 pm
by jetheat
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?
Re: Cant Delete 2 Plugin folders
Posted:
January 1st, 2011, 3:59 pm
by cdvrooman
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
Re: Cant Delete 2 Plugin folders
Posted:
January 1st, 2011, 5:28 pm
by jetheat
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?
Re: Cant Delete 2 Plugin folders
Posted:
January 1st, 2011, 6:25 pm
by cdvrooman
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.
Re: Cant Delete 2 Plugin folders
Posted:
January 1st, 2011, 6:31 pm
by jetheat
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