LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error while uploading a php file to linux server (https://www.linuxquestions.org/questions/linux-newbie-8/error-while-uploading-a-php-file-to-linux-server-886197/)

renjuchingath 06-14-2011 02:48 AM

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

TB0ne 06-14-2011 10:04 AM

Quote:

Originally Posted by renjuchingath (Post 4384914)
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?

renjuchingath 06-17-2011 08:54 AM

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

lithos 06-17-2011 09:10 AM

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) ?

TB0ne 06-17-2011 09:50 AM

Quote:

Originally Posted by renjuchingath (Post 4388582)
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?

renjuchingath 06-21-2011 05:11 AM

Quote:

Originally Posted by TB0ne (Post 4388649)
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


All times are GMT -5. The time now is 05:45 PM.