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

Go Back   LiteSpeed Support Forums > External Applications > PHP > Problem installing PHP/LSAPI

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2007, 12:14 AM
Dondi Dondi is offline
New Member
 
Join Date: Apr 2007
Posts: 8
Default Problem installing PHP/LSAPI

I encountered the following error while executing PHP/LSAPI installation step 4 from the Wiki:

Quote:
username@slice:~/php-5.2.1/sapi$ tar -zxf php-litespeed-3.0.tgz

STEP 4:

username@slice:~/php-5.2.1/sapi$ cd ..
username@slice:~/php-5.2.1$ touch ac*
username@slice:~/php-5.2.1$ ./buildconf --force


MESSAGE/ERROR:

Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf not found.
You need autoconf version 2.13 or newer installed
to build PHP from CVS.
make: *** [buildmk.stamp] Error 1
The prior 3 steps all completed without error.

FYI: I am setting up a slicehost 256 VPS (w/ ubuntu) and have already installed litespeed successfully. I am a LINUX newbie, so I am unclear about steps to remedy this.

Any suggestions are appreciated.

Dondi.
Reply With Quote
  #2  
Old 04-05-2007, 05:28 AM
layer layer is offline
Member
 
Join Date: Apr 2007
Posts: 19
Dondi,

I ran into this, but fixed it via:

Code:
http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz
tar zfx autoconf-2.13.tar.gz
cd autoconf-2.13
./configure
make
make install
Then run the buildconf again.
Reply With Quote
  #3  
Old 04-05-2007, 11:43 AM
Dondi Dondi is offline
New Member
 
Join Date: Apr 2007
Posts: 8
Thanks layer.

I tried your suggestion (using the latest autoconf) and got the following error:

Quote:
cd autoconf-2.61
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether /bin/sh -n is known to work... yes
checking for expr... /usr/bin/expr
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking whether m4 supports frozen files... no
configure: error: GNU M4 1.4 is required
Looks like I'm heading down a rabbit hole! Any suggestions?

Dondi.
Reply With Quote
  #4  
Old 04-05-2007, 11:46 AM
layer layer is offline
Member
 
Join Date: Apr 2007
Posts: 19
Please use the autoconf that was in my post, it is the one that will fix the issue.
Reply With Quote
  #5  
Old 04-05-2007, 12:39 PM
Dondi Dondi is offline
New Member
 
Join Date: Apr 2007
Posts: 8
Thanks again layer. However, I used the autoconf-2.13 and got essentially the same error. Here are the execution results:

Quote:
username@slice:~/sources$ cd autoconf-2.13
username@slice:~/sources/autoconf-2.13$ ./configure
creating cache ./config.cache
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking for mawk... mawk
checking for perl... /usr/bin/perl
checking for a BSD compatible install... /usr/bin/install -c
updating cache ./config.cache
creating ./config.status
creating Makefile
creating testsuite/Makefile
username@slice:~/sources/autoconf-2.13$ make
rm -f autoconf autoconf.tmp
sed -e 's,@''datadir''@,/usr/local/share/autoconf,g' -e 's,@''M4''@,m4,g' -e 's,@''AWK''@,mawk,g' -e 's,@''SHELL''@,/bin/sh,g' autoconf.sh > autoconf.tmp && chmod +x autoconf.tmp && mv autoconf.tmp autoconf
rm -f autoheader autoheader.tmp
sed -e 's,@''datadir''@,/usr/local/share/autoconf,g' -e 's,@''M4''@,m4,g' -e 's,@''AWK''@,mawk,g' -e 's,@''SHELL''@,/bin/sh,g' autoheader.sh > autoheader.tmp && chmod +x autoheader.tmp && mv autoheader.tmp autoheader
rm -f autoreconf autoreconf.tmp
sed -e 's,@''datadir''@,/usr/local/share/autoconf,g' -e 's,@''M4''@,m4,g' -e 's,@''AWK''@,mawk,g' -e 's,@''SHELL''@,/bin/sh,g' autoreconf.sh > autoreconf.tmp && chmod +x autoreconf.tmp && mv autoreconf.tmp autoreconf
rm -f autoupdate autoupdate.tmp
sed -e 's,@''datadir''@,/usr/local/share/autoconf,g' -e 's,@''M4''@,m4,g' -e 's,@''AWK''@,mawk,g' -e 's,@''SHELL''@,/bin/sh,g' autoupdate.sh > autoupdate.tmp && chmod +x autoupdate.tmp && mv autoupdate.tmp autoupdate
rm -f ifnames ifnames.tmp
sed -e 's,@''datadir''@,/usr/local/share/autoconf,g' -e 's,@''M4''@,m4,g' -e 's,@''AWK''@,mawk,g' -e 's,@''SHELL''@,/bin/sh,g' ifnames.sh > ifnames.tmp && chmod +x ifnames.tmp && mv ifnames.tmp ifnames
rm -f autoscan autoscan.tmp
sed -e 's,@''datadir''@,/usr/local/share/autoconf,g' -e 's,@''PERL''@,/usr/bin/perl,g' autoscan.pl > autoscan.tmp && chmod +x autoscan.tmp && mv autoscan.tmp autoscan
Error: Autoconf requires GNU m4 1.1 or later
make: *** [autoconf.m4f] Error 1
Thoughts?
Reply With Quote
  #6  
Old 04-05-2007, 12:41 PM
layer layer is offline
Member
 
Join Date: Apr 2007
Posts: 19
Code:
wget ftp://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz
tar zfx m4-1.4.9.tar.gz
cd m4-1.4.9
./configure
make
make install
then go back to autoconf, then go back to buildconf
Reply With Quote
  #7  
Old 04-05-2007, 05:41 PM
Dondi Dondi is offline
New Member
 
Join Date: Apr 2007
Posts: 8
Thanks layer! I had to install libxml2 in the same way as well, plus use sudo install, but your suggestion worked like a charm.

Now I've run into a problem with step 6:

Quote:
6) Replace the lsphp binary (backup first) in /lswsinstall/fcgi-bin/lsphp with /php-src/sapi/litespeed/php:

cd /lswsinstall/fcgi-bin/
mv lsphp lsphp.old
cp /php-src/sapi/litespeed/php lsphp
I get this error:

Quote:
username@slice:~/sources$ cd /lswsinstall/fcgi-bin/
-bash: cd: /lswsinstall/fcgi-bin/: No such file or directory
I have looked all over and can find neither the 'lwsinstall/fcgi-bin' directories nor the 'lsphp' file. This is maddening. Please help!

Thanks,

Dondi.
Reply With Quote
  #8  
Old 04-05-2007, 05:42 PM
layer layer is offline
Member
 
Join Date: Apr 2007
Posts: 19
Quote:
Originally Posted by Dondi View Post
Thanks layer! I had to install libxml2 in the same way as well, plus use sudo install, but your suggestion worked like a charm.

Now I've run into a problem with step 6:



I get this error:



I have looked all over and can find neither the 'lwsinstall/fcgi-bin' directories nor the 'lsphp' file. This is maddening. Please help!

Thanks,

Dondi.
That isn't an error, it just means that you need to replace lswsinstall with where you installed lsws

default is /opt/lsws.
Reply With Quote
  #9  
Old 04-05-2007, 07:00 PM
Dondi Dondi is offline
New Member
 
Join Date: Apr 2007
Posts: 8
layer,

Thank you so much for your assistance and your patience in putting up with the many Duh! moments. I was able to get through the full setup with your help. It is very much appreciated.

Dondi.
Reply With Quote
  #10  
Old 04-05-2007, 07:02 PM
layer layer is offline
Member
 
Join Date: Apr 2007
Posts: 19
Quote:
Originally Posted by Dondi View Post
layer,

Thank you so much for your assistance and your patience in putting up with the many Duh! moments. I was able to get through the full setup with your help. It is very much appreciated.

Dondi.
No problem, glad to hear you got this working.

Hope your experience with Litespeed is as good as mine has been so far.
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 01:43 PM.



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