Talk:Fileinfo

From DreamHost

Jump to: navigation, search
This is a talk page.
Please be polite and assume good faith. Personal attacks will not be tolerated.
Please DO NOT use this page to ask support questions. This page is for discussing the article only.
Please sign and date your comments by typing four tildes (~~~~) at the end.

Some things that don't work as 17-2-2009

  • The script won't work, because the lines where it tries to wget

http://ftp.debian.org/debian/pool/main/f/file/file_4.21.orig.tar.gz or http://debian.cruisix.net/debian/pool/main/f/file/file_4.21.orig.tar.gz don't work, since the files don't exist.

I happened to find a proper one here: http://ftp.linux.org.tr/ubuntu/pool/main/f/file/file_4.21.orig.tar.gz

  • Also, the file which tries to get wget at

http://www.chipsncheese.com/dist/finfo/config.m4 in the "ugly part of the script"... don't exist anymore. Again, this is easy to solve, because a) someone posted the instructions to modify the original config.m4 and b) you have already downloaded the package Fileinfo-1.0.4.tgz inside ~/dist, and config.m4 is inside the .tgz file. Unpack it, edit and apply these modifications: line 8 - SEARCH_PATH="/usr/local /usr /usr/share/file" + SEARCH_PATH="$HOME/source/file" line 50 - MAGIC_MIME_DIRS="/usr/local/share/file /usr/share/file /usr/share/misc/file /etc /usr/share/misc" + MAGIC_MIME_DIRS="$HOME/source/file"

Save it inside ~/dist/finfo


It could be great if the script could be upgraded to a reliable source for file4.21.orig.tar.gz and to patch the original downloaded config.m4 instead of relying on putting it in a URL which would be dead in a few months.


  • Finally, this is one freaked me for many hours:

Instead of modifying the extension_dir line in php.ini to look like this: extension_dir = "~/php5/lib/php/extensions" I only could get it working by putting the entire absolute path for my domain, that is something like: extension_dir = "/home/MYDOMAIN.TDL/php5/lib/php/extensions"

Hope this will be useful for someone.


It was useful for me so i implemented some of it on the page, using sed to modify the config.m4 instead of relying on the broken download, also i have put the url you found as a third trial to wget... hope it will help...

Personal tools