Results 1 to 8 of 8

Thread: Installing ACP or Uploadprogress Tutorial

  1. #1
    Registered User
    Join Date
    Dec 2008
    Location
    New York
    Posts
    3

    Thumbs up Installing ACP or Uploadprogress Tutorial

    If you want to add an upload progress bar/module using PHP or Ajax you need to have ACP and/or Uploadprogress installed to work with your PHP.

    Installing ACP or Uploadprogress from cPanel PECL install doesnt work because it doesnt compile with--apxs so you need to install from the command line. The following is a step by step on how to get this working.

    Login to Shell as root

    Get the latest version of ACP or Uploadprogress:

    ACP: http://pecl.php.net/package/APC
    Uploadprogress: http://pecl.php.net/package/uploadprogress

    I'll do ACP for example but the install is the same for uploadprogress

    wget http://pecl.php.net/get/APC-3.1.2.tgz

    Extract and move into the directory

    gzip -d APC-3.1.2.tgz
    tar -xf APC-3.1.2.tar
    cd APC-3.1.2


    Locate where php is:

    which php

    This should return something like: /usr/local/bin/php

    Create configuration files:

    phpize

    Compile APC:

    ./configure --enable--apc --enable--apc--mmap --with--apxs --with--php--config=/usr/local/bin/php-config
    make
    make install


    Find your php.ini

    locate php.ini

    Most likely the path will be /usr/local/lib/php.ini but may vary from server to server.

    we will edit php.ini and add the APC extension and/or uploadprogress extension:

    pico /usr/local/lib/php.ini

    In the 'Paths and Directories' section of your php.ini you'll see this:

    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
    extension = "uploadprogress.so"
    extension = "apc.so"


    Make sure it looks like the above (depending on your path to php extensions directory)

    Now scroll down further in the php.ini to 'File Uploads', this is the step most tutorials leave out but is most important to making it work.

    Just below:
    ; Maximum allowed size for uploaded files.
    upload_max_filesize = ??m


    Add this:

    apc.rfc1867 = On

    Without the above line nothing will work.

    Now save the php.ini and restart Apache.

    Done! you can now have an uploadprogress bar for upload forms.

    An excellent step by step tutorial for creating upload progress bar using php and ajax can be found here:
    http://www.phpriot.com/articles/php-ajax-file-uploads
    Last edited by PlanetMaster; 02-10-2009 at 07:53 AM.

  2. #2
    Registered Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    Please dont take this the wrong way, but surely it is easier to negate all the hard work and just use pecl?

    The only issue you should see is if /tmp is mounted noexec, but there is a workaround for that:
    http://www.carbonstudios.co.uk/site/44/219.html

    I have installed countless instances of uploadprogress on cPanel servers just using pecl with the afore mentioned workaround

    Code:
    root@box# pecl install APC
    and

    Code:
    root@box# pecl install uploadprogress
    Last edited by nickp666; 02-10-2009 at 09:45 AM.

  3. #3
    Registered User
    Join Date
    Dec 2008
    Location
    New York
    Posts
    3

    Default

    PECL would be an easy way of course but on many cpanel servers including about 2 dozen I have installed this on for clients and many others who have posted in this forum (Do a search), ACP and/or uploadprogress does not compile with--apxs and you get a non install error so sometimes the longer way is best for those who cannot get there the short way. God forbid users here try to help others when one way isnt the only way.

  4. #4
    Registered Member
    Join Date
    Jun 2005
    Posts
    77

    Default

    For the record, I used Nickp666's method.

    It did work after I applied the tmp directory fix that he linked to.

    However, it installed the library uploadprogress.so into
    /usr/local/cpanel/3rdparty/lib/php/extensions/no-debug-non-zts-20060613/

    and not
    /usr/local/lib/php/extensions/no-debug-non-zts-20060613

    I had to run the following to get it working correctly.
    # mv /usr/local/cpanel/3rdparty/lib/php/extensions/no-debug-non-zts-20060613/uploadprogress.so /usr/local/lib/php/extensions/no-debug-non-zts-20060613/uploadprogress.so

    The extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613" line was already in my php.ini because I also have eaccelerator.so extension installed.

  5. #5
    Registered Member
    Join Date
    Nov 2003
    Posts
    521

    Default

    Considering this post was made over a year ago, I was wondering if installing "uploadprogress" should still be done via the instructions of the OP.

    Thank you.

  6. #6
    Registered Member
    Join Date
    Mar 2010
    Location
    Jakarta, Indonesia
    Posts
    23

    Default

    This is old thread, but now you can install PECL UploadProgress directly from WHM.

    Just klik the Module Instlaller then select PHP PECL, find UploadProgress then install. Thanks to great development of WHM/CPanel!
    Attached Thumbnails Attached Thumbnails Installing ACP or Uploadprogress Tutorial-cpanel_pecl.jpg  
    Last edited by kotakomputer; 08-03-2010 at 09:33 PM.
    www.kotakomputer.net - Indonesian CPanel Specialist - 082 111 978 168

  7. #7
    Registered Member
    Join Date
    Jan 2009
    Posts
    12
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Installing ACP or Uploadprogress Tutorial

    On the configuration:
    Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 mod_fcgid/2.3.6

    WHM/cpanel PECL install works, but the extension didn't

    Im wrong or not?

  8. #8
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    11,374
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Installing ACP or Uploadprogress Tutorial

    Please start a new thread concerning your question, this thread is old and outdated.


    Thanks!

Similar Threads

  1. all server accounts - joomla - long loading in ACP
    By barnea10 in forum General Discussion
    Replies: 2
    Last Post: 06-18-2014, 02:24 PM
  2. how to use apache2::uploadprogress
    By sofiene2014 in forum EasyApache
    Replies: 8
    Last Post: 01-12-2014, 02:10 AM
  3. Uploadprogress PHP extension from PECL
    By gowrann in forum General Discussion
    Replies: 4
    Last Post: 07-13-2013, 02:20 AM
  4. Uploadprogress problems
    By Daniele.Gri in forum General Discussion
    Replies: 1
    Last Post: 12-07-2011, 01:09 PM

Tags for this Thread

bargain