Forum Replies Created

Viewing 12 replies - 16 through 27 (of 27 total)
  • Thread Starter zestylemon

    (@zestylemon)

    Following on from your last post I used the command you suggested:
    # pecl uninstall apc
    pecl/apc not installed

    I then procceded with your previous instructions:
    phpize && ./configure –enable-apc –enable-apc-mmap –with-apxs=/usr/local/apache/bin/apxs –with-php-config=/usr/local/bin/php-config && make && make install

    Here’s the last couple of lines of output when it terminated unexpectedly:
    creating libtool
    appending configuration tag “CXX” to libtool
    configure: creating ./config.status
    config.status: creating config.h
    config.status: config.h is unchanged
    /bin/sh /usr/local/src/APC-3.0.19/libtool –mode=compile cc -I. -I/usr/local/src/APC-3.0.19 -DPHP_ATOM_INC -I/usr/local/src/APC-3.0.19/include -I/usr/local/src/APC-3.0.19/main -I/usr/local/src/APC-3.0.19 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/APC-3.0.19/php_apc.c -o php_apc.lo
    cc -I. -I/usr/local/src/APC-3.0.19 -DPHP_ATOM_INC -I/usr/local/src/APC-3.0.19/include -I/usr/local/src/APC-3.0.19/main -I/usr/local/src/APC-3.0.19 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/APC-3.0.19/php_apc.c -fPIC -DPIC -o .libs/php_apc.o
    /usr/local/src/APC-3.0.19/php_apc.c:959: error: duplicate astatica
    make: *** [php_apc.lo] Error 1
    root@host01 [/usr/local/src/APC-3.0.19]#

    I googled on this error message. One of the discussion threads I came across someone suggested downgrading PHP 5.3.2 to 5.2.13 “because the problem is not your apache build but something to do with files being missing in 5.3 that apc needs”. The person having the problem did this and was able to sucessfully install APC.

    I could recompile Apache to use PHP 5.2.14 (as 5.2.13 isn’t in the WHM list (using the WHM web interface) of available versions) – is it OK to do that? I ask that as I wouldn’t want to be changing to a PHP version that some might consider ‘to buggy’. After having typed that I thought to have a look at https://en.wikipedia.org/wiki/PHP and see that PHP 5.2.14 and 5.3.3 to be a ‘bug and security fix’ release that were both released released a few days ago on 22nd July.

    PHP 5.3.3 is also available (newer than the 5.3.2 I’m currently running) – one would expect that with this being a newer version the files that APC needs won’t be missing.

    Whilst I’m at it… I’m currently ruuning Apache 2.0 – should I upgarde to Apache 2.2 or stick with 2.0?

    Thread Starter zestylemon

    (@zestylemon)

    @c3mdigital thanks for your detailed reply.

    First off, these two lines are commented out in /usr/local/lib/php.ini:
    ;zend_extension=”/usr/local/IonCube/ioncube_loader_lin_5.3.so”
    ;zend_extension_ts = “/usr/local/IonCube/ioncube_loader_lin_5.2_ts.so”

    This is the php.ini file that’s mentioned in the results when I run phpinfo.php in a browser.

    Even though these 2 lines are commented out phpinfo.php still makes reference to Zend. First off the Zend logo is still displayedand details the following:
    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.3.0

    On the server command line when I enter ‘php -v’ the following is returned:
    PHP 5.3.2 (cli) (built: Jul 24 2010 21:09:53)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

    So it looks like Zend is still running. I saw in your most you mentioned “php -r ‘phpinfo();’ | grep ‘apc'” so it tried “php -r ‘phpinfo();’ | grep ‘zend'” and got the following back:

    php -r ‘phpinfo();’ | grep ‘zend’
    report_zend_debug => Off => Off
    zend.enable_gc => On => On

    I’ll have to Google and see if I can uncover anything on disabling Zend on WHM / Cpanel. It’s late now so will pick this up again tomorrow.

    Thread Starter zestylemon

    (@zestylemon)

    Now that I’ve recompiled Apache this line has been re-added to php.ini
    zend_extension=”/usr/local/IonCube/ioncube_loader_lin_5.3.so”

    Now that I’ve uncommented this line what do I need to do to get APC installed?

    Thread Starter zestylemon

    (@zestylemon)

    @c3mdigital I’ve commented out Zend in php.ini. I’ve
    DSO is selected
    suexec / suPHP is ‘no’

    I assume I need to recompile Apache – starting that now.

    Thread Starter zestylemon

    (@zestylemon)

    (Only after posting this have I spotted c3mdigital’s post)

    Several hours on and sadly I don’t seem to be getting anywhere.

    Under the ‘server preparation’ section:
    # yum install php-pear
    # yum install php-devel
    # yum install httpd-devel
    Each of these return a ‘No package xxx available’ message (where xxx = php-pear etc).
    WHM reports that Pear 1.9.1 is an already installed module.

    # yum install gcc make
    # yum install zlib-devel
    These are both apparently up to date.

    Your instructions continue with a number of sections:
    Memcached (Daemon) Installation
    PECL Memcache Module Installation
    PECL Alternative PHP Cache (APC) Installation (Recommended)
    XCache Installation

    Am I correct to assume I choose 1 of these?

    I’ve tried following the instructions for PECL APC but get nowhere.
    running: pecl install apc
    returns the following:

    # pecl install apc
    downloading APC-3.0.19.tgz …
    Starting to download APC-3.0.19.tgz (115,735 bytes)
    …………………….done: 115,735 bytes
    47 source files, building
    running: phpize
    Configuring for:
    PHP Api Version: 20090626
    Zend Module Api No: 20090626
    Zend Extension Api No: 220090626
    Use apxs to set compile flags (if using APC with Apache)? [yes] : yes
    building in /var/tmp/pear-build-root/APC-3.0.19
    running: /root/tmp/pear/APC/configure –with-apxs
    checking for egrep… grep -E
    checking for a sed that does not truncate output… /bin/sed
    checking for cc… cc
    checking for C compiler default output file name… a.out
    checking whether the C compiler works… configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `–host’.
    See `config.log’ for more details.
    ERROR: `/root/tmp/pear/APC/configure –with-apxs’ failed
    root@host01 [/]#

    I’ve done a lot of googling on various error messages and tried some of the reccomendations I’ve come across. None of it seems to be of help, just scared now that I’ve going to do more harm than good.

    Thread Starter zestylemon

    (@zestylemon)

    Last night I tried installing ACP (I’m not a linux guru) and didn’t get anywhere. I noticed eAccelerator as one of the options in WHM so thought I’d give it a go this morning and went through the process of compiling it (using WHM eather than command line).

    Only once it had finished did I notice that you provide step by step instructions under the ‘Installation’ link on the plugin page.

    It probably makes sense to recompile Apache without eAccelerator and then follow your instructions to see if I can get ACP installed. ACP seems to be optioned mentioned by so many so it seems I should go ‘the ACP route’. Just started recompiling now so hopefully it doesn’t take too long.

    Thanks for your help so far.

    Using your FTP client set the file permissions for /wp-content/uploads to 777. NB: Be sure to choose ‘Recurse into subdirectories’ so any sub directories also get 777 applied to them.

    The Widget Logic plugin might help you acheive this. I’ve used the plugin to only show YARRP widget when a post is in / not in specific categories.

    Hi Michto,

    Just downloaded and installed what appears to be a superb plugin! ??

    I too thought before downloading the plugin that if you exclude categories it’ll exclude the widget from displaying on posts in categories you’ve specified. Is there any chance of adding this to the wishlist for a future version?

    Thread Starter zestylemon

    (@zestylemon)

    Is anybody able to offer any assistance?

    zestylemon

    (@zestylemon)

    Do any of these plugins work with the BuddyPress plugin?

    I’m having exactly the same problem on a fresh install of WordPress 2.8 – deactivating all plugins and using the default theme makes no difference.

Viewing 12 replies - 16 through 27 (of 27 total)