Welcome to Geeklog Friday, May 20 2022 @ 11:58 pm EDT

Geeklog Forums

File Upload Error


Status: offline

ola_one

Forum User
Full Member
Registered: 28/06/03
Posts: 186
freakingout
Hello all,

I have File management Plugin installed on my site. The system said installation was successful. I never got to try uploading any file while I was at home in the USA when the the plugin was installed. Now I am trying to upload a file from Africa to the Server located in the USA using the upload function in User Functions, and the error that keeps coming back is:

Warning: move_uploaded_file(C:/Program Files/Apache/apache2/fermaweb/public_html/filemgmt_data/files/tmp/8MHy2u2YR5.doc): failed to open stream: No such file or directory in CRazzrogram FilesApache GroupApache2femarpublic_htmlfilemgmtsubmit.php on line 118

Warning: move_uploaded_file(): Unable to move 'CRazzHPuploadtempphp1D3.tmp' to 'C:/Program Files/Apache/apache2/fermaweb/public_html/filemgmt_data/files/tmp/8MHy2u2YR5.doc' in CRazzrogram FilesApache GroupApache2femarpublic_htmlfilemgmtsubmit.php on line 118

I believe that I created all the folders according to the plugin directory. Is there something I missed? Or is upload only possible locally? Please note that I have not uploaded locally either.

Thanks in advance.

ola_one
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 16/07/02
Posts: 1232
Location:Canada
Looks like permissions. The folders you created need to be writeable by the webserver process - maybe 775 or 777.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

ola_one

Forum User
Full Member
Registered: 28/06/03
Posts: 186
Thanks Blaine, I am a Windows User so I will try and give the write permission on my 2003 Server. I should mention that I was able to create categories and sub categories for the plugin tthough.

Thanks

ola_one
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 16/07/02
Posts: 1232
Location:Canada
The filemgmt folders are not really filesystem directories but are records in the database that show the relationship of the uploaded files. All the files are actually in one directory on the server - hense the issue you are seeing.

For Windows make sure the IIS user has write/modify rights
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

ola_one

Forum User
Full Member
Registered: 28/06/03
Posts: 186
Hello again,

I have tried giving write and modify rights to the Authenticated user on my file management folder and I still cannot upload any files.

For Windows make sure the IIS user has write/modify rights


Does the above mean IIS user even though I am running Apache? Sorry to sound ridiculous.

If the above statement is correct, then I should only need to grant the write and modify right to the IIS user. Where do I find this user on a Windows 2003 Server?

Thanks again

ola_one
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 16/07/02
Posts: 1232
Location:Canada
On IIS - look for the users IUSR_XXX and IWAM_XXX. These are the users that IIS runs as unless you use the integrated IIS / NTLM authentication option which is not likely on a public website.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

ola_one

Forum User
Full Member
Registered: 28/06/03
Posts: 186
Thanks again,

I have done all that now but I found out that the problem might be my directory. I found that in my configuration settings, the following directories are missing one important element. The directories should be

C:/Program Files/Apache Group/Apache2

Directory to store files:
Directory to store file thumbnails:
Directory to store category thumbnails:

But instead, the Group is missing in Apache Group, and when I try to correct it, I get the warning at the bottom of this text.

C:/Program Files/Apache/Apache2/ferm/public_html/filemgmt_data/files/

C:/Program files/Apache/apache2/ferm/public_html/filemgmt_data/snaps/


C:/Program Files/Apache/apache2/ferm/public_html/filemgmt_data/category_snaps/

This is the waring... Can someone help?

Warning: fopen(C:/Program Files/Apache Group/Apache2/ferm/plugins/filemgmt/filemgmt.php): failed to open stream: Permission denied in CRazzrogram FilesApache GroupApache2fermpublic_htmladminpluginsfilemgmtindex.php on line 1195

Warning: fwrite(): supplied argument is not a valid stream resource in CRazzrogram FilesApache GroupApache2fermpublic_htmladminpluginsfilemgmtindex.php on line 1221

Warning: fclose(): supplied argument is not a valid stream resource in CRazzrogram FilesApache GroupApache2fermpublic_htmladminpluginsfilemgmtindex.php on line 1222

Please help.

Thanks
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 16/07/02
Posts: 1232
Location:Canada
I'm confused - you were asking about IIS and then you note that you are using apache Confused
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

ola_one

Forum User
Full Member
Registered: 28/06/03
Posts: 186
Sorry Blaine, but I was told that the reason why I could not upload initially was because I needed to grant the IIS user the write and modify permissions.

Please I am currently in Africa in a place where the net connection breaks most times, that is why it is taking so long to respond.

However, my web is on Server 2003 with Apache, MYSQL, PHP and Geeklog.

I just realised that much as I try, I could not change the configuration settings for the directory where I need to store my files. The directory is Apache Group but it shows as Apache and that is probably why I cannot upload any file. I have tried changing the directory to the right one, but I keep getting error messages.

It says:

C:/Program Files/Apache/Apache2/ferm/public_html/filemgmt_data/files/


But it should be:

C:/Program Files/Apache Group/Apache2/ferm/public_html/filemgmt_data/files/


Thanks again for all the troubles.
 Quote

All times are EDT. The time is now 11:58 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content