Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP doesn't have write access on my openbsd server.

Status
Not open for further replies.

MikoLone

Technical User
Jul 27, 2004
5
I am playing with php abd I want to write an xml file to the server but it says that I can't do it because php doesn't have writing privledges. How do I give writing privledges to php on OpenBSD? What would be the most secure way?

Thanks!
 
Go to the dir you want to give write access and change it with :
#chmod 777 /var/
I never found out how to do it secure but do some reading searching for chmod and chown chroot etc.

777 stands for
first 7 owner
second 7 group
third 7 everyone

read write and execute
7 is binair 111 (rwx)
6 is binair 110 (rw-)
5 is binair 101 (r-x)

find out who owns the process running on your box probably
the apache runner he the one trying to write the file then
#chmod 755 /var/
is already a bit more secure
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top