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

Go Back   LiteSpeed Support Forums > External Applications > PHP > PHP install for Litespeed

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2011, 02:07 PM
netjess netjess is offline
Member
 
Join Date: Mar 2011
Posts: 34
Question PHP install for Litespeed

I am having real time trying to get PHP installed with lsws.
I keep getting erros like ac_fn_c_try_link: not found

I have read http://www.litespeedtech.com/support...i:troubleshoot

and several other threads regarding the PHP install. This is on a barebones install. I installed the OS from start, Ubuntu 10.4.2. Installed MySQL, and Litespeed. I have a application that errors stating that it requires PHP 5.2 or greater so I try to compile via Litespeed admin interface and fight with many errors. I try from cli as per the above instructions and I still cannot get it to install.
I am running this via sudo.
Final line of install failure reads:
./configure: 12050: checking for dirent.h that defines DIR... : not found
eval: 1: Bad substitution

Thanks for any help.
Reply With Quote
  #2  
Old 03-22-2011, 02:17 PM
netjess netjess is offline
Member
 
Join Date: Mar 2011
Posts: 34
Default PHP Package

Could I get this to work using 'sudo apt-get install php5' or will that not get PHP to work on the Litespeed web server?
Reply With Quote
  #3  
Old 03-22-2011, 02:44 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
you need to build php within lsws as you first did from admin console.

what options do you use to compile LSPHP?
Reply With Quote
  #4  
Old 03-22-2011, 02:55 PM
netjess netjess is offline
Member
 
Join Date: Mar 2011
Posts: 34
Default PHP install

I am trying to build a dev machine to be installed as close as possible to a production machine that someone else at our hosting site built.

here are the istructions that I have.

The first thing is getting the server with the correct modules. Running

apt-get install autotools-dev comerr-dev freetds-dev libaspell-dev libbsd-dev libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libdb4.8-dev libedit-dev libenchant-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libgcrypt11-dev libgd2-xpm-dev libglib2.0-dev libgmp3-dev libgpg-error-dev libice-dev libicu-dev libidn11-dev libjpeg62-dev libkrb5-dev libldap2-dev libltdl-dev libmcrypt-dev libmhash-dev libmysqlclient-dev libncurses5-dev libpam0g-dev libpcre3-dev libpng12-dev libpq-dev libpspell-dev libpthread-stubs0-dev librecode-dev libsasl2-dev libsm-dev libsnmp-dev libsqlite0-dev libssh2-1-dev libsqlite3-dev libssl-dev libstdc++6-4.4-dev libt1-dev libtidy-dev libwrap0-dev libx11-dev libxau-dev libxaw7-dev libxcb1-dev libxdmcp-dev libxext-dev libxml2-dev libxmltok1-dev libxmu-dev libxpm-dev libxslt1-dev libxt-dev

will get the server up to the point needed. Then running apt-get upgrade

Building php will be done in litespeed with the options below.

'--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-mysql' '--with-mcrypt' '--with-curl' '--with-freetype-dir=/usr/include' '--with-png-dir=/usr/include' '--with-xpm-dir=/usr/include' '--enable-gd-native-ttf' '--with-t1lib=/usr/include' '--with-jpeg-dir=/usr/include' '--with-litespeed' '--with-pdo-mysql' '--enable-soap' '--with-openssl' '--enable-suhosin'

After that point, running

/usr/local/lsws/lsphp5/bin/pecl install -f ssh2

Then uncomment extension=ssh2.so from within /usr/local/lsws/lsphp5/lib/php.ini
Reply With Quote
  #5  
Old 03-22-2011, 02:58 PM
netjess netjess is offline
Member
 
Join Date: Mar 2011
Posts: 34
Default PHP Install comments.

I have updated everything possible and I had to manually install the Suhosin patch.

compiling through lsws admin interface does not work. it complains of the erros that I posted above that it look like file not found errors but I have not been able to find anywhere to explicitly give it a good path(s).
Reply With Quote
  #6  
Old 03-22-2011, 04:37 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
run 'php -i' on your production server and paste the portion of 'Configure Command =>' here. the compile option you used is the default that comes with LSWS which may not suit for your need.
Reply With Quote
Reply

Tags
php install

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 03:00 AM.



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