Archive for the 'howto' Category

Adding pdftk to 1and1 shared hosting

UPDATE 2010-09-03: I updated a couple links to reflect newer downloads. Because is on an older debian (etch) system I had to tweak the steps for using lenny based packages. ENJOY!

There are some cases where you might need a powerful pdf toolkit to use with php. 1and1 does not come with any built in pdf processors or pdf libraries built into php. Here is the process I used to integrate phptk into my 1and1 account.

Requirements: 1and1 shared plan that has ssh support

- Download file for debian lenny:

wget http://ftp.us.debian.org/debian/pool/main/p//pdftk_1.41-3_i386.

- Extract the file:

ar xv pdftk_1.41-3_i386.

- Extract the data.tar.gz file:

tar xvzf data.tar.gz

- Download libgcj file for debian lenny:

wget http://ftp.us.debian.org/debian/pool/main/g/gcj-4.2/libgcj8-1_4.2.4-4_i386.

- Extract the libgcj file:

ar xv libgcj7-0_4.1.1-20_i386.

- Extract the data.tar.gz file:

tar xvzf data.tar.gz

- Download libstdc++ file for debian lenny (backport file http://packages.debian.org/lenny-backports/i386/libstdc++6/download):

wget http://mirror.linux.org.au/backports.org/pool/main/g/gcc-4.3/libstdc++6_4.3.4-6~bpo50+1_i386.

- Extract the libstdc++6 file:

ar xv libstdc++6_4.3.4-6~bpo50+1_i386.

- Extract the data.tar.gz file:

tar xvzf data.tar.gz

- Create a script to link libgcj and libstdc++6 for (use nano or vi):

#!/bin/bash

LD_LIBRARY_PATH="usr/lib:$LD_LIBRARY_PATH" usr/bin/ $*

- Chmod the script so it can run:

chmod 755

Now you can run from your main directory and process files from php or cronjobs.

If you run into any problems try running the command with some test files. If you have any problems please leave a comment. Thanks!

Adding PECL Uploadprogress to 1&1 shared hosting for Drupal FileField

Drupal 6.x is the platform we use to build great websites. There are modules FileField and ImageField 3.0 that allow the ability to update a progress meter when uploading a file. This requires installing a PECL extension to PHP called uploadprogress. Here is the process I used to get it working on a 1and1.com hosting package. You will need a hosting package with ssh support currently the Business and Developer packages do.

  • Download PECL uploadaccess to your 1&1 account
  • Extract the package
    tar xvzf -1.0.0.tgz
  • Go into the directory
    cd -1.0.0
  • Run phpize5
    phpize5
  • Change php-config to php-config5 in configure script
    sed -i 's/=php-config/=php-config5/g' configure
  • Change include directives in Makefile
    sed -i 's#-I/usr/local/include/php#-I/usr/include/php5#g' Makefile
  • Run make and make test
    make
    make test
  • Make new extensions folder for new extension to go in
    mkdir ~/extensions
  • Copy extension to new folder
    cp .libs/.so ~/extensions/
  • Create new php.ini under your main folder (or under a single subfolder for just that application) to add new extension_dir then add this code to the file
    extension_dir=/kunden/homepages/6/d87663654/htdocs/extensions/
    extension=.so

That should be it. You should now be able to see the “Upload progress Enabled (PECL )” on the admin/reports/status page in Drupal.

Links that helped me with the above info:

Online Banking Setup for GnuCash 2.2.6 under Windows XP

gnucash-logo

Since my linux raid decided to futz up (read I screwed it up) I’ve been using my partition out of necessity until I have the time to rebuild my software raid 5 and gentoo. Until then we’ve been using GnuCash under which has worked ok, but it is not as nice as the linux version by far. We use for our business and it is critical that we have all the functions working in it. One of the things that I really missed was . I could pull in all the transactions and clear them under as well as making reconciling alot easier. The reason that could not connect to my online bank was that the version of libofx it was saying it was an older version of Quicken and thus was denied from my bank. I read some more online and …
Continue reading ‘Online Banking Setup for GnuCash 2.2.6 under Windows XP’

Setting up Azureus and SafePeer in Linux

azureus_splash.png So there are tons of utilities to keep the SafePeer plugin up-to-date in (like BlueTack’s Blocklist Manager), but Linux and the Mac have been left out in the cold. We’ll I found a way to get those 190k+ ips blocked in azureus without having to use Peerguardian or MoBlock (MoBlock is still safer in my mind) in Linux. First we need to download the lists like we would for MoBlock. Here is the script I use:
Continue reading ‘Setting up Azureus and SafePeer in Linux’

How to Quit Facebook

So are you addicted to facebook? Do you find yourself aimlessly looking through everyones posts over and over again and trying out new apps in hopes your friends will to. Well it might be time to get a grip on reality, Check out “How to Quit Facebook” on wikiHow to find out how you can quit facebook.




SEO Powered by Platinum SEO from Techblissonline