TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 529
  • Total: 529

help with download module

Started by wiredgeorge, March 18, 2010, 01:00:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wiredgeorge

Many thanks for your going the extra mile!

ZarPrime

Well, don't thank us yet, at least not until we figure out what's causing it. ::)

Ichbin is going to take a look at it as well, and he knows quite a bit more about TP 0.98 than I do.

ZarPrime

ZarPrime

OK, update here ...

Ichbin thinks that during your host move, either the ownership of the tp-downloads folder or the permissions of the folder and/or the files might have gotten messed up and, at this point, I tend to agree.

Using your FTP program, go the your site and look at the ownership of the tp-downloads folder and see what it says.  Also check the permissions for that folder.  Drill down into the folder and look at one of the files that's showing up correctly when you're viewing the TP Download Manager.  Check ownership and permissions on that file.  Now look at the ownership and permissions of one of the files that isn't showing up.  See if they are different.

I know that I try to make sure that ownership is my site rather than apache as this can be an issue.

Check to see what it looks like and then get back to us.  Also, after I post this, I am going to send you a PM on another issue.  Ichbin is unavailable today until late this evening so if you see this before then, get that information back to us here today and then we'll decide what to do after that.

ZarPrime

wiredgeorge

ZP, First, thanks a bunch for your help as well as Ichbin. Next the "other issue" has been taken care of I think. Last, owner group IDs for the tp-downloads directory are 32190/32192. I think this is likely correct. The tp-downloads directory has 755 permissions and the files inside the directory are 644 FOR ALL OF THEM. This means, regardless of whether it is the files we can see or not see, file permissions are the same. Any thoughts? Thanks wg

IchBin

Can you associate those user/group ID's with their names? What user does apache run as?

wiredgeorge

I will have to work through my hosting guy. I sub-lease. He is a windows guy and the server is UNIX. He will have to ask the hosting company regarding ownership of the user and group IDs. I will get back. Do the permissions seem right? 755 for tp-downloads and 644 for uploaded files?

IchBin

I "think" that should work. Depends on some things though. If the owner of your files is different than the apache user, then this could be an issue depending on how apache is setup and if its running something like phpsuexec. If you have access to the command line I can tell you how to find this out?

wiredgeorge

Sorry, as I said, I sublease server space. I only have access to the area set aside for my website and message forum via FTP.  The guy I lease the space from administrates via a hosting company control panel and has no command line interface capability.  He is going to put a ticket into the hosting company and have them check ownership of the user/group IDs. Will get back to this when I hear from him and I encouraged him to get a log in for this forum so he could answer directly.

wiredgeorge

They say user 32190 is jtechpro which should be correct. That is the user for the guy who hosts my forum and website. They didn't say who the group is.

IchBin

We still need to confirm that. We also need to confirm which user apache runs as. Here's why
Unix files system assigns permissions to files allowing users,groups, and other (which is anyone) to either read/write/execute.
If you were to look at a file you can see a number like this: 777 or 755 or 644. There are many variations. The first number is the permission that the owner has. Here's what the number can mean depending on what permissions it is giving.
4 = read
2 = write
1 = execute

If you add all those numbers together it equals 7. This means the owner has all permissions for the file. If the number is a six, you can see that they only have read and write permission. If the number is 5 they only have read and execute permission.

This is the same for group (being the second number) and other (being the 3rd number).

If apache is running as a different user than 32190 and apache is not the assigned to be the group, then the permission that apache would use is the "other". So if a file is 774 then apache cannot write or execute the file.

I hope that helps you understand. We need to know this before trying anything else out.

We need to know who the group owner of the files are, and we also need to know which user apache is running as.

This website is proudly hosted on Crocweb Cloud Website Hosting.