Mint Pepper DLoads 0.70 Beta

by damonp on January 6, 2006

in Development,PHP,Software

I finally found the time to work out the issues in my DLoads Pepper for Mint.

This release has only been tested on a couple of Mint v1.25 releases so, YMMV. The documentation still needs update a bit too, but the install should be straightforward on a v1.2x install.

DLoads v0.7 Beta

DLoads versions greater than the last release (v0.5) will only work with Mint v1.2 or greater.

Popularity: 1%

Most Popular Posts

Damon Parker is a freelance sysadmin and web developer in Texas. He specializes in server setup, server security and high performance server configurations. Need help setting up a web server or getting a server back online after a crash or hack? Email Damon

{ 5 comments… read them below or add one }

paul January 14, 2006 at 9:13 pm

hi there!
i have problems with the configuration of the ‘$file’ var. seems that the $_SERVER['REQUEST_URI'] value is always the url of the dloads.php. any suggestions?
thanks

Reply

damonp January 16, 2006 at 5:20 pm

Sounds like your PHP build may be a little different. Can you take a look at your phpinfo() page and see what variables are available?

All the way at the bottom should be the _SERVER variables. Other options for the REQUEST_URI variable may be _SERVER[SCIPT_NAME], _SERVER[SCRIPT_FILENAME], _SERVER[PHP_SELF] or _SERVER[REDIRECT_URL].

Reply

paul January 16, 2006 at 8:52 pm

hi damon!
here some info. alle the fields are filled correctly i think. i replaced the values, sorry. need more info?

maybe this causes the problem:
i´ve got a directory with my download files in it (“files.server.com”) and a directory where mint runs (“stats.server.com”). the path of your pepper in my .htaccess file is “http://stats.server.com/pepper/damonparker/dloads/dloads.php”.
when i try to download “http://files.server.com/beer.jpg” i´ll be redirected to a blank page “file not found” – the result of the throw-404 function.
so when i insert the phpinfo-command into the “dloads.php” the $file, $filepath is always “/pepper/damonparker/dloads/dloads.php”. what is the problem?
maybe the original file-path-information gets lost when the htaccess file redirects?
regards, paul

======================================
running php 4.4.1

_SERVER["SCRIPT_FILENAME"] -value-
_SERVER["SCRIPT_URI"] -value-
_SERVER["SCRIPT_URL"] -value-
_SERVER["SERVER_ADDR"] -value-
_SERVER["SERVER_ADMIN"] -value-
_SERVER["SERVER_NAME"] -value-
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_SOFTWARE"] Apache/df-exts 1.2 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d AuthPG/1.3

_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] -value-
_SERVER["SCRIPT_NAME"] -value-

Reply

paul January 17, 2006 at 5:43 am

hey damon!
i copied the post to the pepper-forums. maybe the other guys have some helpfull ideas, too.

http://www.haveamint.com/forum/viewtopic.php?id=911

thanks, paul

Reply

damonp January 17, 2006 at 7:43 am

An external file path will not work in the .htaccess file. The type of rewrite it is using needs a local file path to dloads.php. I doubt this will work the way you are using it here as dloads.php won’t be able to find the files from its frame of reference. dloads.php executes from the stats.domain.com server. Your download files are on files.domain.com not stats.

Reply

Leave a Comment

{ 1 trackback }

Previous post:

Next post: