Re: Could not save the file /var/www/html/rite.php. [message #170464 is a reply to message #170461] |
Tue, 02 November 2010 03:00 |
Magno
Messages: 49 Registered: October 2010
Karma:
|
Member |
|
|
On 11/01/2010 10:55 PM, Jerry Stuckle wrote:
> On 11/1/2010 9:16 PM, The Natural Philosopher wrote:
>> kiran kumar wrote:
>>> 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 ?
>>
>> # cd /var/www/html
>> # ls -l
>> # chown -r kiran *
chown is for uid and gid.
Try chmod 750 /var/html -Rf
Assuming you have uid set as your user and gid as apache.
Anyway it should work in most cases.
> And nothing will be readable by the web server.
>
> A typical TNP response.
If you have no contribution, please shut up.
|
|
|