Installing APC (php accelerator) and am stuck

Discussion in 'Site & Server Administration' started by sirisaacnewton2007, Oct 23, 2007.

  1. #1
    I got instructions here

    http://www.vbulletin.com/forum/showthread.php?t=165367

    And got stuck here

    6. install referencing the paths in step #3 type the following 4 lines one after the other

    /usr/bin/phpize



    my error is

    [root@vps APC-3.0.15]# /usr/bin/phpize
    /usr/bin/phpize: line 57: aclocal: command not found


    Now this is the first time I've used a command line in my life so I dont know what to do besides follow instructions.
     
    sirisaacnewton2007, Oct 23, 2007 IP
  2. chickens

    chickens Peon

    Messages:
    242
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    whereis phpize

    That should show you the location of phpize in the server. If it just says "phpize:" and no location it is not installed on the server properly (or not at all).
     
    chickens, Oct 23, 2007 IP
  3. sirisaacnewton2007

    sirisaacnewton2007 Peon

    Messages:
    165
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3

    Ya it's there, I pasted my commands:

    [root@vps src]# whereis phpize
    phpize: /usr/bin/phpize
    [root@vps src]# whereis php-config
    php-config: /usr/bin/php-config
    [root@vps src]# gunzip -c APC-3.0.8.tgz | tar xf -
    gunzip: APC-3.0.8.tgz: No such file or directory
    [root@vps src]# gunzip -c APC-3.0.15.tgz | tar xf -
    [root@vps src]# cd APC-3.0.15
    [root@vps APC-3.0.15]# /usr/bin/phpize
    /usr/bin/phpize: line 57: aclocal: command not found
    [root@vps APC-3.0.15]# /usr/bin/phpize
    /usr/bin/phpize: line 57: aclocal: command not found
    [root@vps APC-3.0.15]# /usr/bin/phpize ./configure --enable-apc --enable-apc-mmap --with-apxs=/usr/local/apache/bin/apxs --with-php-config=/usr/bin/php-config make make install
    /usr/bin/phpize: line 57: aclocal: command not found
    [root@vps APC-3.0.15]# /usr/bin/phpize
    /usr/bin/phpize: line 57: aclocal: command not found
    [root@vps APC-3.0.15]#
     
    sirisaacnewton2007, Oct 23, 2007 IP
  4. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    #4
    You have to install php-pear if it is installed then reinstall it.
     
    st1905, Oct 24, 2007 IP
  5. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Tried with "pecl install apc" ?
     
    agnivo007, Oct 24, 2007 IP