How To Repair Cannot Delete Apache Owner Files Tutorial

Home > Cannot Delete > Cannot Delete Apache Owner Files

Cannot Delete Apache Owner Files

On Linux-based servers, these files and folders belongs to "apache" user, and not to you. Regards, Brian Brown, Ph.D. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed If we did not have a package with SSH (*gasp!!!*) then I assume using an FTP client to manually adjust the perms of files to 0777 would be equally successful. Source

On Linux sometimes lsattr will tell you that a bit has been set to make a file undeleteable, and then chattr can fix it. Then I rethought about it and when for another one (actually one recommended in stackoverflow). Again, the root user is necessary. I did not chown / chgrp. http://www.webxpert.ro/andrei/2006/01/27/how-to-delete-apache-owned-files-and-folders-from-your-website/

Did you try using the single "fixmod.php" file containing the following? The opinions expressed here represent my own and not those of my employer. So the script won't work and you have to find another way to do the same thing. For the timing being I took the easy way out and changed user and group of the Apache service in /etc/apache2/apache2.conf and /etc/apache2/envvars respectively (see documentation).

  1. EDIT: I just tried the script and apparently it worked.
  2. You can't say unlink("file*"); for example.
  3. ronaldallan.mojica Hello everyone lately i receive this free host from frihost and i want to install typo3 on my folder but the problem is that directadmin has no fantastico that's why

Log in or register to post comments Comment #32 earnie CreditAttribution: earnie commented February 19, 2008 at 1:30pm ximo: Sounds like the correct way to go. Perhaps he's getting hacked because he's not upgrading his installation with the latest security patches? Also, did you CHMOD your public_html directory to 777 before you started? Thank you~. sudo chown -hR root:admin dir_to_delete Explanation: sudo: make sure you have the proper rights chown: Linux command to change owner of a file -hR: change owner of directory and all subdirectories.

After use, immediately remove this .php file! Posted September 13, 2008 in How to Lazyweb, here's a quick question for you. Thanks for this script n0xvb. Via SFTP (Secure FTP) You can also connect to the server via SFTP to modify the ownership/permissions of your data.

djclue917 n0obie4life wrote: Sure, abuse it and we'll have your IP banned. So we could really execute shell scripts using PHP. theem Thanks man !!! I'm not an FBSD user, so hopefully this isn't just some nonsense you already know but that doesn't act the same on BSD, but I don't see how it could be

Sorry. Best Yogurt in Silicon Valley? → Follow me -Twitter -Google+ Categories 30 days (40) Android (7) Books/Magazines (29) Chrome (25) Food (6) Fun (47) Gadgets/Hack (96) Games (5) Glossary/Definitions (2) Google/SEO Can anyone tell me what I did wrong or other method? I just don't get what you meant by getting my IP banned.

Log in or register to post comments Comment #36 ximo CreditAttribution: ximo commented March 3, 2008 at 3:09pm @ jonfhancock #33: You're right - there are modules that require you to http://inviewsoftware.com/cannot-delete/cannot-delete-some-files-xp.html I would appreciate your comments, I have tried writing a short php script but have not been able to inspect the outcome (except that it did not change the permissions on User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. One example from not too long ago would be the v7n blogs disappearing from the Google index, but there are many more out there which don't make it into the "SEO

Log in or register to post comments Comment #22 cburschka CreditAttribution: cburschka commented February 11, 2008 at 4:35pm But the behavior described by mdlueck is expected assuming that his server is Matt Cutts September 14, 2008 at 7:57 pm Harith, I think WordPress is so popular that it's inevitable that WP is a pretty big target for hackers. I used unlink/rmdir instead of system, but that's about the size of it. http://inviewsoftware.com/cannot-delete/cannot-delete-files-on-mac-in-use.html It then does the same thing for all files, again recursively through all the directories it has access to.

From ‘man chmod(2)': If mode ISTXT (the `sticky bit') is set on a directory, an unprivileged user may not delete or rename files of other users in that directory. I ended up making a removenobody.php script that removed the files in question. Even when we unpack the Drupal tar file, the server sets our ID as the owner of the files.

Mine was cause because my other server does not have the option to upload and unpack a zip file.

because i had to do it in every single file... Would it be a good idea to run Apache under my normal user account instead of www-data? Why did the best potions master have greasy hair? The second file must be set 777 so that it is executable, the public_html directory must be set to 777 so that the apache user has access to make any changes.

Not the answer you're looking for? This problem (uid and gid apache instead of your own) is most of the time caused by a 'badly-written' script. You can connect to your server via SSH as the root user to change the ownership of any file. Check This Out i changed all permissions and it still says permission denied when i try to delete the files.