You are not logged in.

#1 2004-09-24 08:09:34

Daij-Djan
Member
Registered: 2004-09-24
Posts: 1

Give PHP writeaccess

I am running OSX 10.3.5 on a G4 PB.
I installed php5 and activated the in-built apache web server.

I activated personal websharing and put my site in my homedir:
~/Sites

Now, I have a script (residing in ./dominik/guestbook/ which needs to be able to WRITE in that directory. (It needs to be able to create new files!)

How do I do that?
I tried 'chmod -R 777 dominik/' to no success and 'chown -R www dominik/' which didn't change anything and just spit out an error. (No permission)

Any idea anybody?
Thanks,
Dominik

Offline

 

#2 2004-09-26 15:50:07

theg4cubepro
Member
From: Ohio
Registered: 2003-06-16
Posts: 16
Website

Re: Give PHP writeaccess

You probably need to run chown again but put 'sudo ' in front of it.  This makes it execute at a higher privilege level. That will successfully change the owner to the web server.  If you still have errors (mod777 shoulda worked) write back...


Jeremy Lavergne
"I'm in for computer engineering."

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson