LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Problems installing OpenX 2.6

Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2008, 07:02 AM
nicksnels nicksnels is offline
Member
 
Join Date: Feb 2007
Posts: 33
Default Problems installing OpenX 2.6

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
Reply With Quote
  #2  
Old 08-26-2008, 07:08 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
PHP crashed, maybe some required PHP module are missing. check stderr.log
Reply With Quote
  #3  
Old 08-26-2008, 07:38 AM
nicksnels nicksnels is offline
Member
 
Join Date: Feb 2007
Posts: 33
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
Reply With Quote
  #4  
Old 08-26-2008, 08:55 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
have you tried
export PHP_PREFIX="/php5"
$PHP_PREFIX/bin/phpize
Reply With Quote
  #5  
Old 08-26-2008, 09:01 AM
nicksnels nicksnels is offline
Member
 
Join Date: Feb 2007
Posts: 33
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
Reply With Quote
  #6  
Old 08-26-2008, 09:24 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
copy mailparse.so to /php5/lib/php/extensions/no-debug-non-zts-20060613/

at the end of php.ini, add
extension=mailparse.so
Reply With Quote
  #7  
Old 08-26-2008, 10:25 AM
nicksnels nicksnels is offline
Member
 
Join Date: Feb 2007
Posts: 33
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
Reply With Quote
  #8  
Old 08-26-2008, 10:27 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Please check phpinfo page see if the module get loaded. Maybe it need to be loaded as a "zend_extnesion"?
Reply With Quote
  #9  
Old 08-26-2008, 10:36 AM
nicksnels nicksnels is offline
Member
 
Join Date: Feb 2007
Posts: 33
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
Reply With Quote
  #10  
Old 08-26-2008, 10:45 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:28 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.