Problems installing OpenX 2.6

Discussion in 'PHP' started by nicksnels, Aug 26, 2008.

  1. nicksnels

    nicksnels New Member

    Hi,

    I'm trying to install OpenX 2.6 (www.openx.org) on my server. I get to the installation step where OpenX lists all the directories in which it is going to save its information. When I go to the next step I would normally configure the admin password, but all I get is:

    503 Service Unavailable
    The server is temporarily busy, try again later!

    In my error.log, I have the following entries:

    2008-08-26 14:52:58.647 [INFO] [**********] connection to [uds://tmp/lshttpd/lsphp.sock] on request #18, error: Connection reset by peer!
    2008-08-26 14:52:58.649 [INFO] [phpLsapi] pid list size: 2
    2008-08-26 14:52:58.649 [INFO] [**********] add child process pid: 19760
    2008-08-26 14:52:58.649 [INFO] Remove pid: 19355
    2008-08-26 14:52:58.649 [INFO] Pid: 19355 associated with [phpLsapi]
    2008-08-26 14:52:58.649 [INFO] [phpLsapi] pid list size: 1, pid stop list size: 0
    2008-08-26 14:53:00.327 [INFO] [**********] connection to [uds://tmp/lshttpd/lsphp.sock] on request #0, error: Connection reset by peer!
    2008-08-26 14:53:00.338 [INFO] [phpLsapi] pid list size: 2
    2008-08-26 14:53:00.338 [INFO] [**********] add child process pid: 19761
    2008-08-26 14:53:00.338 [INFO] Remove pid: 19760
    2008-08-26 14:53:00.338 [INFO] Pid: 19760 associated with [phpLsapi]
    2008-08-26 14:53:00.338 [INFO] [phpLsapi] pid list size: 1, pid stop list size: 0
    2008-08-26 14:53:02.135 [INFO] [**********] connection to [uds://tmp/lshttpd/lsphp.sock] on request #0, error: Connection reset by peer!
    2008-08-26 14:53:02.135 [INFO] Remove pid: 19761
    2008-08-26 14:53:02.135 [INFO] Pid: 19761 associated with [phpLsapi]
    2008-08-26 14:53:02.135 [INFO] [phpLsapi] pid list size: 0, pid stop list size: 0
    2008-08-26 14:53:02.135 [NOTICE] [**********] oops! 503 Service Unavailable^M
    2008-08-26 14:53:02.135 [NOTICE] [**********] Content len: 495, Request line: POST /www/admin/install.php HTTP/1.1

    Is this an OpenX, Litespeed or PHP matter? Any help is welcome. Thanks.

    Kind regards,

    Nick
  2. mistwang

    mistwang LiteSpeed Staff

    PHP crashed, maybe some required PHP module are missing. check stderr.log
  3. nicksnels

    nicksnels New Member

    You are right, I find the following error in stderr.log:

    2008-08-26 14:52:58.661 PHP Warning: PHP Startup: Unable to load dynamic library './mailparse.so' - ./mailparse.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './mailparse.so' - ./mailparse.so: cannot open shared object file: No such file or directory in Unknown on line 0/usr/local/lsws/fcgi-bin/RailsRunner.rb:23:in `accept': SIGUSR1 (SignalException)

    I found the following method to solve this problem (http://www.webhostingtalk.com/showthread.php?t=694407):

    wget http://pecl.php.net/get/mailparse-2.1.1.tgz
    tar xvzf mailparse-2.1.1.tgz
    cd mailparse-2.1.1
    phpize
    ./configure
    make
    make install

    I had to use phpize in the /php5/bin/ folder. But it doesn't work!

    I know I had a similar problem with another software package, but I finally gave up. But now I really have to get OpenX to work. How can I solve this error? Thanks.

    Kind regards,

    Nick
  4. mistwang

    mistwang LiteSpeed Staff

    have you tried
    export PHP_PREFIX="/php5"
    $PHP_PREFIX/bin/phpize
  5. nicksnels

    nicksnels New Member

    Hi,

    the phpize works and I can also do the make and the make install, but it still doesn't work. I get the following output if I run make install:

    /bin/sh /home/user/tmp/mailparse-2.1.1/libtool --mode=install cp ./mailparse.la /home/user/tmp/mailparse-2.1.1/modules
    cp ./.libs/mailparse.so /home/user/tmp/mailparse-2.1.1/modules/mailparse.so
    cp ./.libs/mailparse.lai /home/user/tmp/mailparse-2.1.1/modules/mailparse.la
    PATH="$PATH:/sbin" ldconfig -n /home/user/tmp/mailparse-2.1.1/modules
    ----------------------------------------------------------------------
    Libraries have been installed in:
    /home/user/tmp/mailparse-2.1.1/modules

    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
    - add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
    - have your system administrator add LIBDIR to `/etc/ld.so.conf'

    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    Installing shared extensions: /php5/lib/php/extensions/no-debug-non-zts-20060613/

    I think that the problem is that Litespeed doesn't pick it up. Maybe I need to put the .so files in a Litespeed folder?? Could that be the problem? Thanks.

    Kind regards,

    Nick
  6. mistwang

    mistwang LiteSpeed Staff

    copy mailparse.so to /php5/lib/php/extensions/no-debug-non-zts-20060613/

    at the end of php.ini, add
    extension=mailparse.so
  7. nicksnels

    nicksnels New Member

    Mailparse.so was already in the directory. And I put extension=mailparse.so in my php.ini file. But I'm still getting the same error.

    Kind regards,

    Nick
  8. mistwang

    mistwang LiteSpeed Staff

    Please check phpinfo page see if the module get loaded. Maybe it need to be loaded as a "zend_extnesion"?
  9. nicksnels

    nicksnels New Member

    It doesn't show up in the phpinfo page. If you like I can mail you an URL to my phpinfo page. How do I load it as a zend_extension? Thanks.

    Kind regards,

    Nick
  10. mistwang

    mistwang LiteSpeed Staff

    It should be loaded as an extension instead of zend_extension.
    If "extension_dir" value in phpinfo page is not /php5/lib/php/extensions/no-debug-non-zts-20060613/, you need to fix it in php.ini, either change the value or just comment it.
  11. nicksnels

    nicksnels New Member

    Good news and bad news. I have changed extension_dir from ./ to /php5/lib/php/extensions/no-debug-non-zts-20060613/ and now mailparse shows up in phpinfo.

    But I still get the 503 error page. And the following gets recorded in stderr.log


    2008-08-26 20:05:16.345 /usr/local/lsws/fcgi-bin/RailsRunner.rb:23/usr/local/lsws/fcgi-bin/RailsRunner.rb:23/usr/local/lsws/fcgi-bin/RailsRunner.rb:23: SIGUSR1 (SignalException)
    2008-08-26 20:05:16.350 : SIGUSR1 (SignalException)
    2008-08-26 20:05:16.354 : SIGUSR1 (SignalException)
    2008-08-26 20:05:42.389 /usr/local/lsws/fcgi-bin/RailsRunner.rb:23:in `accept': SIGUSR1 (SignalException)
    2008-08-26 20:05:42.390 from /usr/local/lsws/fcgi-bin/RailsRunner.rb:23
    2008-08-26 20:05:42.457 /usr/local/lsws/fcgi-bin/RailsRunner.rb:23: SIGUSR1 (SignalException)

    At least the error has changed, so one step closer to a solution :)

    Kind regards,

    Nick
  12. mistwang

    mistwang LiteSpeed Staff

    That's a normal rails message, not related to openX.
    Maybe the PHP process still crashes. You may need to strace the lsphp process to find why.

    strace -p <pid_of_lsphp>
  13. nicksnels

    nicksnels New Member

    I've got a strace log file. Can I send it to you? Thanks.

    Nick
  14. mistwang

    mistwang LiteSpeed Staff

    sure. send it to bug@litespeedtech...
    make sure it is the PHP process serving the request, not a idling PHP process, should have a lot more output other than "getppid() select() ...".
  15. mistwang

    mistwang LiteSpeed Staff

    the log shows that PHP crashes during a curl request to 8.10.72.167, the connection is encrypted with SSL. Cannot tell why from the log file.
    If you can find the core file and do a backtrace with GDB, it will be more helpful.
    Do you have curl SSL support compiled into PHP?
  16. adserver

    adserver New Member

    openx2.6 installation | adserverservices.com

    hi, we will help to install openx 2.6.

    We proudly introduce ourselves as one of top service provider in adserving market in India. We are with 25 people team working Adservers domain as OpenX consultant and specifically with Openads/OpenX. Apart from OpenX, we do have experience of providing OpenX Service and OpenX Support for doing projects in all other web open sources available in market.

    we have many experience in openx. Also we are giving training how to use openx. Also visit our sites www.adservermods.com and www.adserverservices.com for futher details
  17. mistwang

    mistwang LiteSpeed Staff

    It has been successfully installed by changing the code to use plain curl request instead of SSL.
  18. adserver

    adserver New Member

Share This Page