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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Litespeed Configuration

Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2009, 03:25 PM
koray koray is offline
Member
 
Join Date: Mar 2009
Posts: 10
Exclamation Litespeed Configuration

Hi, I download the free version of litespeed and I have also license litespeed on my other server. So i download free version install the litespeed log on to web panel setup the websites because I do ip forwarding and I have to make litespeed to listen that ip and forward to directory. Everything went well. It is working then I figured mysql server is not connecting so my website with the database is down. it is vbulletin forum. So I compile php 5.3.0 to work with mysql. It compiled but I got errors on my websites.

Fatal error: Call to undefined function mysql_pconnect() in /var/www/html/includes/mysql.class.php on line 5

vbulletin one i

Deprecated: Assigning the return value of new by reference is deprecated in /home/turkarea/public_html/includes/init.php on line 49

No I thing over this but I couldn't find a solution why can be the reason for litespeed php mysql configuration has this kind of error

Last edited by koray; 09-16-2009 at 07:45 PM..
Reply With Quote
  #2  
Old 09-16-2009, 08:00 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
check your phpinfo(), see if
--with-mysql
in "Configure Command "
Reply With Quote
  #3  
Old 09-17-2009, 11:50 AM
koray koray is offline
Member
 
Join Date: Mar 2009
Posts: 10
First, I would like to thank you for your response..
Here is the phpinfo for httpd which is working.

httpd

'./configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/usr/share/file/magic.mime' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'

here is the phpinfo with litespeed thank you.

'./configure' '--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-litespeed'

I also attached the full php info for httpd and litespeed.


Should I configure the same as httpd ?
Attached Files
File Type: zip phpinfo.zip (35.2 KB, 1 views)
Reply With Quote
  #4  
Old 09-17-2009, 02:36 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Yes, you should use the same configuration option as Apache's if you expect LSWS to work exactly like Apache.
Reply With Quote
  #5  
Old 09-17-2009, 02:38 PM
koray koray is offline
Member
 
Join Date: Mar 2009
Posts: 10
Ok mistwang, I will copy paste that configuration and post the results here. Thank you.
Reply With Quote
  #6  
Old 09-17-2009, 02:54 PM
koray koray is offline
Member
 
Join Date: Mar 2009
Posts: 10
*invalid parameter starting at '--program-prefix=' why am I getting this kind of errors on litespeed webadmin console - php compiler section. I copy paste it and remove ./configure section to put it there.

what should i write over there to come close to Apache configuration ?

Last edited by koray; 09-18-2009 at 10:55 AM..
Reply With Quote
  #7  
Old 09-21-2009, 09:54 PM
koray koray is offline
Member
 
Join Date: Mar 2009
Posts: 10
anybody know how to compile this ?
Reply With Quote
  #8  
Old 09-21-2009, 10:05 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
refer
http://www.litespeedtech.com/support...wiki:php:lsapi

replace "--with-apxs2=/usr/sbin/apxs" with "--with-litespeed"
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:01 AM.



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