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

Go Back   LiteSpeed Support Forums > External Applications > PHP > Issues when lsphp compiled with ldap support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-07-2007, 10:22 AM
reshu1596 reshu1596 is offline
Member
 
Join Date: Feb 2007
Posts: 22
Default Issues when lsphp compiled with ldap support

Hi: I installed openldap in $HOME/usr/local (slapd and sluprd disabled during compilation). I just need the libraries.

When compiling PHP, I used '--with-ldap=/export/home/rawlog/usr/local'. Everything looked fine.
===
./configure '--prefix=/export/home/rawlog/php-5.1.4' '--with-litespeed' '--with-config-file-path=../conf' '--with-oci8=instantclient,/export/home/rawlog/oracle/instantclient_10_2' '--with-ldap=/export/home/rawlog/usr/local'
====
Accessing http://<hostname:<port>/, works fine and see the Congratulations page.

But when I access the PHP page http://<hostname:<port>/phpinfo.php, I get the "503 Service Unavailable" page

With the old binary that php page works fine.

Is there a log file within the /lswsinstall directory?

Thanks
Ravi

Last edited by reshu1596; 03-07-2007 at 10:51 AM..
Reply With Quote
  #2  
Old 03-07-2007, 12:47 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please check lsws/logs/stderr.log and lsws/logs/error.log.
Also please try the custom built lsphp binary from command line. Maybe it misses a library.
Reply With Quote
  #3  
Old 03-07-2007, 01:42 PM
reshu1596 reshu1596 is offline
Member
 
Join Date: Feb 2007
Posts: 22
I see the following in stderr.log

ld.so.1: lsphp: fatal: libgcc_s.so.1: open failed: No such file or directory

I do see the file on my server
bash-2.05$ ls -l /usr/local/lib/libgcc_s.so.1
-rw-r--r-- 1 root bin 169356 Sep 15 2004 /usr/local/lib/libgcc_s.so.1

and my LD_LIBRARY_PATH has usr/local/lib in it.
bash-2.05$ echo $LD_LIBRARY_PATH
/usr/local/lib:/export/home/rawlog/oracle/lib:/oracle/g01/software/rdbms/9.2.0.6/lib:/usr/lib:/export/home/rawlog/usr/local/lib


Does this mean something did not go right when I compiled ? The configure and make ran fine.

I tried running new lsphp from command line. it does not give any errors.

Thanks
Ravi

Quote:
Originally Posted by mistwang View Post
Please check lsws/logs/stderr.log and lsws/logs/error.log.
Also please try the custom built lsphp binary from command line. Maybe it misses a library.
Reply With Quote
  #4  
Old 03-07-2007, 02:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please make sure /usr/local/lib has been set in LD_LIBRARY_PATH environment variable for the lsphp external application. Shell environment has not been inherited, must be set explicitly.
Reply With Quote
  #5  
Old 03-08-2007, 04:35 AM
reshu1596 reshu1596 is offline
Member
 
Join Date: Feb 2007
Posts: 22
thank you..that was it.


Quote:
Originally Posted by mistwang View Post
Please make sure /usr/local/lib has been set in LD_LIBRARY_PATH environment variable for the lsphp external application. Shell environment has not been inherited, must be set explicitly.
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 07:39 AM.



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