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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > PHP Build Problem

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2005, 02:19 PM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Default PHP Build Problem

I thought I would try recompiling PHP using the LiteSpeed SAPI method to match my existing settings for mod_php under Apache. Following the directions outlined in the HOW-TO guide everything seemed to be working until I noticed a problem.

If you use the option --with-config-file-path and specify a path other than where LiteSpeed originally installed the php.ini (in my case /usr/local/lsws/conf) it doesn't seem to use it. When I recompiled php using the default path used when I installed LiteSpeed /usr/local/lsws/conf it seems to acknowledge my changes in the php.ini file.

My question is when you recompile php using the LiteSpeed SAPI method do you have the option to place the php.ini file somewhere else?

Below are the options I used in my original compile.


./configure --prefix=/usr/local/php4 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --enable-force-cgi-redirect --enable-pic --enable-gd-native-ttf --disable-rpath --enable-inline-optimization --enable-bcmath --enable-exif --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-discard-path --enable-ftp --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --enable-calendar --with-db4 --with-curl --with-png-dir=/usr --with-freetype-dir=/usr --with-openssl=/usr/local/ssl --with-gd --with-ttf --with-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-png --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --without-oci8 --with-imap --with-imap-ssl=/usr/local/ssl --with-mysql=/usr --with-kerberos --with-jpeg-dir=/usr --with-pear --with-litespeed
Reply With Quote
  #2  
Old 11-30-2005, 11:48 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
We use "--with-config-file-path=../conf", not an absolute path.
The default php configuration file path is /usr/local/lib/php.ini, you can find out which php configuration file the binary is using/looking for from a phpinfo() page.

It is not directly related to LiteSpeed SAPI at all.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
replacing system php felosi PHP 3 07-16-2007 11:23 PM
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
php getevn problem memic PHP 4 07-09-2006 01:36 AM
How to fix problem with PHP after upgrading to 2.1.3 mistwang Bug Reports 2 10-20-2005 10:38 AM
Problem setting on more Fast CGI app in addition of PHP superbarre.com Install/Configuration 2 01-21-2005 09:24 AM


All times are GMT -7. The time now is 10:14 AM.



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