FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Could not save the file /var/www/html/rite.php.
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Could not save the file /var/www/html/rite.php. [message #170455] Mon, 01 November 2010 22:19 Go to next message
kiran kumar is currently offline  kiran kumar
Messages: 2
Registered: November 2010
Karma: 0
Junior Member
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 ?
Re: Could not save the file /var/www/html/rite.php. [message #170459 is a reply to message #170455] Tue, 02 November 2010 00:24 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/1/2010 6:19 PM, 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 ?

Like the message says, you don't have permissions to store the file
where you want to.

But this isn't a PHP problem - try a Linux newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Could not save the file /var/www/html/rite.php. [message #170460 is a reply to message #170455] Tue, 02 November 2010 01:16 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
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 *
Re: Could not save the file /var/www/html/rite.php. [message #170461 is a reply to message #170460] Tue, 02 November 2010 01:55 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
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 *

And nothing will be readable by the web server.

A typical TNP response.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
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 Go to previous messageGo to next message
Magno is currently offline  Magno
Messages: 49
Registered: October 2010
Karma: 0
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.
Re: Could not save the file /var/www/html/rite.php. [message #170466 is a reply to message #170464] Tue, 02 November 2010 03:14 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/1/2010 11:00 PM, Magno wrote:
> 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.

I have a contribution - much better than your garbage.

Yours MAY work - or it might completely screw up his system - just as
TNP's can.

If you have no valid contribution, stfu.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Could not save the file /var/www/html/rite.php. [message #170468 is a reply to message #170466] Tue, 02 November 2010 03:28 Go to previous messageGo to next message
Magno is currently offline  Magno
Messages: 49
Registered: October 2010
Karma: 0
Member
On 11/02/2010 12:14 AM, Jerry Stuckle wrote:
> On 11/1/2010 11:00 PM, Magno wrote:
>> 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.
>
> I have a contribution - much better than your garbage.

Yes, we all just saw it.

> Yours MAY work - or it might completely screw up his system - just as
> TNP's can.

Sure, it will just kill and destroy the system to have set the
permissions to full control to the owner and only read/execution to group.

> <retarded ending snipped>
Re: Could not save the file /var/www/html/rite.php. [message #170469 is a reply to message #170468] Tue, 02 November 2010 03:51 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/1/2010 11:28 PM, Magno wrote:
> On 11/02/2010 12:14 AM, Jerry Stuckle wrote:
>> On 11/1/2010 11:00 PM, Magno wrote:
>>> 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.
>>
>> I have a contribution - much better than your garbage.
>
> Yes, we all just saw it.
>
>> Yours MAY work - or it might completely screw up his system - just as
>> TNP's can.
>
> Sure, it will just kill and destroy the system to have set the
> permissions to full control to the owner and only read/execution to group.
>
>> <retarded ending snipped>

And will not solve his problem. But you're too stoopid to understand
that - yet you insist on flaunting your stoopidity.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Could not save the file /var/www/html/rite.php. [message #170470 is a reply to message #170468] Tue, 02 November 2010 03:54 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/1/2010 11:28 PM, Magno wrote:
> On 11/02/2010 12:14 AM, Jerry Stuckle wrote:
>> On 11/1/2010 11:00 PM, Magno wrote:
>>> 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.
>>
>> I have a contribution - much better than your garbage.
>
> Yes, we all just saw it.
>
>> Yours MAY work - or it might completely screw up his system - just as
>> TNP's can.
>
> Sure, it will just kill and destroy the system to have set the
> permissions to full control to the owner and only read/execution to group.
>
>> <retarded ending snipped>

To add - this is exactly why I recommended he go to a Linux admin group
- so he can get *good answers* - not *crap answers* like yours and
TNP's, which will just waste his time and cause him more problems.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Could not save the file /var/www/html/rite.php. [message #170471 is a reply to message #170455] Tue, 02 November 2010 04:55 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On 01/11/10 22:19, 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 ?

Linux file permissions.

To create a new file in the directories, you need the correct
permissions on the directory files.

To edit an existing data file, you need the correct permissions on the
directory and the existing data file.

To read a file from the directories, the web server needs the correct
permissions on the directory files and the data files.

You can change file and directory owners with chown, and you can change
file and directory permissions with chmod. However, determining the most
appropriate settings and use of these commands for your specific
instance that will allow you to edit the files and allow the webserver
to function is outside the scope of a php group.

Note that if you want your php scripts to write other files using fopen
/ fwrite / fclose etc, that will also be affected by the permissions and
ownerships of the files and directories involved.

Rgds

Denis McMahon
Re: Could not save the file /var/www/html/rite.php. [message #170476 is a reply to message #170468] Tue, 02 November 2010 11:28 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Magno wrote:
> On 11/02/2010 12:14 AM, Jerry Stuckle wrote:
>> On 11/1/2010 11:00 PM, Magno wrote:
>>> 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.
>>
>> I have a contribution - much better than your garbage.
>
> Yes, we all just saw it.
>
>> Yours MAY work - or it might completely screw up his system - just as
>> TNP's can.
>
> Sure, it will just kill and destroy the system to have set the
> permissions to full control to the owner and only read/execution to group.
>
>> <retarded ending snipped>
indeed.

However that at least might get the OP onto discovering where
permissions apply, what they mean and the tools to fix them.
ownership and umask of the actual directory, and the group file what I
said wiould at least allow him to edit the web site as qa user.

He never said he wanted the pages to display ;-)

Nice to know Stuckle is still unemployed with time to waste.

Still smarting after being shown up as wrong over the MySQL file caching
issue eh Jerry? There there.
Re: Could not save the file /var/www/html/rite.php. [message #170492 is a reply to message #170476] Tue, 02 November 2010 19:24 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/2/2010 7:28 AM, The Natural Philosopher wrote:
> Magno wrote:
>> On 11/02/2010 12:14 AM, Jerry Stuckle wrote:
>>> On 11/1/2010 11:00 PM, Magno wrote:
>>>> 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.
>>>
>>> I have a contribution - much better than your garbage.
>>
>> Yes, we all just saw it.
>>
>>> Yours MAY work - or it might completely screw up his system - just as
>>> TNP's can.
>>
>> Sure, it will just kill and destroy the system to have set the
>> permissions to full control to the owner and only read/execution to
>> group.
>>
>>> <retarded ending snipped>
> indeed.
>
> However that at least might get the OP onto discovering where
> permissions apply, what they mean and the tools to fix them.
> ownership and umask of the actual directory, and the group file what I
> said wiould at least allow him to edit the web site as qa user.
>
> He never said he wanted the pages to display ;-)
>
> Nice to know Stuckle is still unemployed with time to waste.
>
> Still smarting after being shown up as wrong over the MySQL file caching
> issue eh Jerry? There there.
>
>
>

Oh, you mean the one where not even MySQL agrees with you on copying the
files? And where you show you don't even know the difference between a
cache and a buffer? Everyone saw you make a fool of yourself - there
was nothing more to add.

But then we know you remain anonymous because you want people to think
you're a programmer or electrical engineer, which we know are both
false. All you are is a ditch digger who got fired because you didn't
know which end of the shovel to use.

As for work - you could only wish you had as much work as I do, or got
paid 1/5th of what I do.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Spam
Next Topic: Record pagination with count of total rows
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 06:04:40 GMT 2024

Total time taken to generate the page: 0.02162 seconds