hi to all

1 view
Skip to first unread message

kiran kumar

unread,
Nov 1, 2010, 6:12:40 PM11/1/10
to phpguru
hi i installed php in fedora 13

and the problem is i saved the files in /var/www/html

if i log in as a root i use vi editor and save the files no problem

but i logged in as a normal user using the ge editor but i getting the
error

Could not save the file /var/www/html/rite.php.

You do not have the permissions necessary to save the file. Please
check that you typed the location correctly and try again.

please can u tell the reason

i log in as a root user in terminal editing the vi file and saved a
php file in /var/www/html it does not got any error !

but in normal cgi mode i edited in ge editor i cannot save in /var./
www/html

whats behind the reason ?

dilum

unread,
Nov 2, 2010, 4:30:41 AM11/2/10
to phpguru
Hi

You have given the answer your self! Ut's a permission problem.

/var/www/html is writable by the root but not by other users

I've found it in ubuntu as well

Two options

1: You can change the permission to 777 to allow anyone to open, read
and write - not secure

2: Transfer files as root

Cheers

Lakshan
Reply all
Reply to author
Forward
0 new messages