Hmm I am getting forbidden
Forbidden
You don't have permission to access /downloads/ on this server.
Can you directly access the file via URL in your browser without using the plugin in the first place?
Yes, I can access the files directly. The forbidden error is because I have Indexes turned off on my server, there are no directory listings.
The only entry is in my access log..
“GET /?dl_id=1 HTTP/1.1” 404 20
So it looks like it’s generating a 404 error.
Download Nice Permalink IS set to “no” and it is set to use File ID also per the instructions.
Weird, can you try regenerate the permalink in WordPress? Just go to Settings -> Permalinks and save again.
I have done that, though it doesn’t seem to make a difference.
I may see the problem though I’m not sure.
The instructions note to change the pages permalink from the default to “downloads” however on my installation I do not have the option to change the permalink for a single page, I can only change permalinks for the entire site.
I can see the problem now.
It is indeed a problem with my permalink settings. Changing the permalink settings to “Post Name” has indeed allowed me to change the permalink for my individual page. I also have a configuration problem in my httpd.conf where the .htaccess was not allowed to override any settings namely FileInfo which if I read correctly is needed along with mod_rewrite to make the pretty permalinks.
It’s not working just yet, but I have things to work on. When I find a solution I’ll post back here for anyone else in the future.
Trying different scenarios, I have found that the problem is in the length of the filename (including directory).
/var/www/htdocs/downloads/slackware-10.0/slackware-10.0-install-d1.iso
This will download just fine
/var/www/htdocs/downloads/slackware-14.0/slackware-14.0-install-dvd.iso
This will NOT download
I’ve looked at filename length limits for my system, it’s 255 characters and
PHP so far as I could find does not limit the length.
Back to square one again. Would this be a limitation of the plugin or do I have an issue with Apache/PHP?
I am not sure, but the plugin stores the filename as TEXT in the DB which is about 65k chars.
Ok, got it figured out.
It is a file size issue. The first iso mentioned above is around 600MB,
the second file (DVD) is around 2.3GB.
Thank you for taking the time to answer questions and ruling a few things out.