[SOLVED] error while uploading a php file to linux server
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 04:38 AM.
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?
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 09:01 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) ?
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.