Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
The cat came back
What do do when Apache owns your files?
Avatar
jedson #1
Member since Jul 2006 · 19 posts · Location: Virginia
Group memberships: Members
Show profile · Link to this post
Subject: The cat came back
In trying to upgrade a dokuwiki based web site I kept running into permissions problems that I couldn't understand. Among other things, it seemed like I couldn't use ftp to move key files around etc. So I decided to simply delete the program and start over, thinking maybe I could see the point at which the problem emerged. Then I found out I couldn't even delete the program. It was like the cat that kept coming back whatever you did to it. Finally I tracked the problem down to three folders in the cache – which were named 3, 5 and b.  Permissions for all three were drwxr-xr-x, but the rub was that the owner was listed as httpd. Checking around showed me that this meant Apache owed them. And only Apache had write privileges. So that seemed to be the problem. As an amateur at all this technical stuff I felt pretty good about this sleuthing around, but still do not know how to get rid of the remnants of these first tries or prevent similar problems when I try to do the upgrade process again.
 
jedson

PS I may be gone a couple of days so if you post and I don't respond right off, don't think you are being ignored.
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3528 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I just wrote a little script which will help you to regain control: http://wiki.splitbrain.org/wiki:fixperms.php
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
jedson #3
Member since Jul 2006 · 19 posts · Location: Virginia
Group memberships: Members
Show profile · Link to this post
Subject: Still coming back
I must be doing something wrong. I made a file containing the script, and inserted it in the directory with my ftp program. When I tried to open it through the browser I got a message that said “Parse error: Unexpected T_STRING [file address and name] on line 14.”  I also tried to run it the host file system using sh and got the message “Cannot open ?php: No such file or directory.”   

PS If you just wrote this script, then this must be something a number of people run into.

jedson
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-26, 15:38:08 (UTC +01:00)