LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2011, 03:48 AM   #1
renjuchingath
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Rep: Reputation: Disabled
error while uploading a php file to linux server


I got an error while uploading a file named "xxxxxxxx.php"to linux server

Error in detail
---------------------------
Upload of file 'xxxxxxxx.php' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
---------------------------
Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 9
any help to resolve this issue will be appreciated

Last edited by renjuchingath; 06-14-2011 at 05:38 AM.
 
Old 06-14-2011, 11:04 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,960

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by renjuchingath View Post
I got an error while uploading a file named "xxxxxxxx.php"to linux server

Error in detail
---------------------------
Upload of file 'xxxxxxxx.php' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
---------------------------
Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 9
any help to resolve this issue will be appreciated
Maybe if you provided some actual details, someone could help you. You say "uploading"...HOW are you uploading the file? Web page? FTP? SCP? SFTP? Custom-script? To what KIND of Linux server (version/distro)? Has this EVER worked for you? Where do you see this error?

And did you read the message? The file got uploaded, but the permissions/timestamp settings are wrong. Have you checked it? Tried to set it manually? Did you try to do as it suggested, and turn on the "ignore permission errors" option, as it says?
 
Old 06-17-2011, 09:54 AM   #3
renjuchingath
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
reply to TBOne

I tried to upload files from a windows machine using WINSCP client to linux machine.
server os is centos 5.5
role: webserver
I got this error from client machine(windows)
datas get uploaded if we skip error somewhat

Last edited by renjuchingath; 06-17-2011 at 10:01 AM.
 
Old 06-17-2011, 10:10 AM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Obviously you have problems with permissions on server, whereas you might not have the permissions to change files in that directory.
Have you tried maybe login with some other user, maybe changing the settings in WinSCP (change file date/time on upload/download - disable) ?
 
1 members found this post helpful.
Old 06-17-2011, 10:50 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,960

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by renjuchingath View Post
I tried to upload files from a windows machine using WINSCP client to linux machine.
server os is centos 5.5
role: webserver
I got this error from client machine(windows)
datas get uploaded if we skip error somewhat
Ok, so you're using WinSCP...are you USING SCP to transfer, or SFTP/FTP? Which transport? And again, have you checked the permissions on the directory where you're trying to put the file? Have you tried uploading the file to the users home directory, then copying it to it's final destination via a terminal session?
 
1 members found this post helpful.
Old 06-21-2011, 06:11 AM   #6
renjuchingath
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by TB0ne View Post
Ok, so you're using WinSCP...are you USING SCP to transfer, or SFTP/FTP? Which transport? And again, have you checked the permissions on the directory where you're trying to put the file? Have you tried uploading the file to the users home directory, then copying it to it's final destination via a terminal session?


thanks TBOne/lithos
AS you said, there was problem with permission to the present directory.now problem has been solved.thank you once again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions for file uploading script in php emab Programming 7 08-31-2008 07:53 AM
uploading file with POST from PHP issue lukebeales Programming 2 04-23-2008 09:54 PM
PHP and File Uploading Tomasfuego Linux - Software 6 08-12-2004 10:20 AM
Error uploading file with PHP jacksmash Programming 8 11-22-2003 12:11 PM
uploading php on free server?? farhan Linux - General 1 04-24-2003 05:45 AM


All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration