Tag Archive for 'drupal'

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 extension to called uploadprogress. Here is the process I used to get it working on a 1and1.com package. You will need a 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 -config to -config5 in configure script
    sed -i 's/=-config/=-config5/g' configure
  • Change include directives in Makefile
    sed -i 's#-I/usr/local/include/#-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 .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 ( )” on the admin/reports/status page in .

Links that helped me with the above info:




SEO Powered by Platinum SEO from Techblissonline