Litespeed Configuration

Discussion in 'Install/Configuration' started by koray, Sep 16, 2009.

  1. koray

    koray New Member

    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: Sep 17, 2009
  2. NiteWave

    NiteWave Administrator

    check your phpinfo(), see if
    --with-mysql
    in "Configure Command "
  3. koray

    koray New Member

    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:

  4. mistwang

    mistwang LiteSpeed Staff

    Yes, you should use the same configuration option as Apache's if you expect LSWS to work exactly like Apache.
  5. koray

    koray New Member

    Ok mistwang, I will copy paste that configuration and post the results here. Thank you.
  6. koray

    koray New Member

    *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: Sep 18, 2009
  7. koray

    koray New Member

    anybody know how to compile this ?
  8. NiteWave

    NiteWave Administrator

Share This Page