This topic is locked

Problem with upload

10/6/2006 8:59:22 AM
PHPRunner General questions
B
bluestrikealpha author

I have made a subdirectory under /var/www/html/ "upload/publications"
and in PHPrunner a field for uploading a document. But when i test it by trying to upload a file a get this message:
move_uploaded_file(upload/publications/test.pdf) [function.move-uploaded-file]: failed to open stream: Permission denied
what can i do to solve this?

J
Jane 10/6/2006

Dion,
what version of PHPRunner you use?

B
bluestrikealpha author 10/6/2006

Dion,

what version of PHPRunner you use?


I am using 3.1

J
Jane 10/6/2006

Dion,
please ensure that you use latest PHPRunner 3.1 build.
Also this error occurs when web user doesn't have permissions to the subdirectory with uploading files.

To fix it right click on this folder, select Properties, go to the Security section, add user named EVERYONE (if don't exists) and assign Full Permissions for user EVERYONE.

B
bluestrikealpha author 10/6/2006

Hi Jane,
well, it is a linux (fedora) server and I am using Putty as access (so commandline).

I have used chmod 744 for the upload directory but then I still have to add a user EVERYONE.
but does this work on this type of server?

Admin 10/8/2006

Dion,
for Unix-based servers set 766 mask for your upload directory.

B
bluestrikealpha author 10/9/2006

Dear alexej,
I am still getting this errormessage:
Fouttype 2

Fout beschrijving move_uploaded_file(upload/publications/bleifreiestrkleidung_lfas.pdf) [function.move-uploaded-file]: failed to open stream: Permission denied

URL "my url"/_Publications_add.php?

Fout bestand /var/www/html/_Publications_add.php

Fout regel 117

SQL query insert into `_Publications` (`Keywords`, `Title`, `Author`, `Year of publication`, `Content`) values ('test 766', '766', 'Janssen', '88', 'bleifreiestrkleidung_lfas.pdf')
Where "my url"stands for the actual IP address.
Can you help me there?
Dion

Admin 10/9/2006

Dion,
you can give me an access to your server and I'll help you to get the uploads working.

Send the info to support@xlinesoft.com