LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   Install on CentOS5.5, Plesk, need to work with vBulletin (http://www.litespeedtech.com/support/forum/showthread.php?t=4864)

Alan_SP 03-30-2011 11:06 PM

Install on CentOS5.5, Plesk, need to work with vBulletin
 
Ok, I installed standard version (you can see it from the name) using this commands:

Code:

cd /usr/local/src
wget http://www.litespeedtech.com/packages/4.0/lsws-4.0.20-std-i386-linux.tar.gz
tar xvfz lsws*
cd lsws*
./install.sh

From instructions explained here: http://www.litespeedtech.com/support...i:apache:plesk

I left HTTP port at 8088.

After that I went to compile PHP, used this config:

Code:

--prefix=/lsphp5  --with-litespeed  --with-libdir=lib  --disable-debug  --with-pic  --disable-rpath  --without-pear  --with-bz2 --with-config-file-scan-dir=/etc/litespeed/php.d --with-config-file-path=/etc/litespeed  --with-exec-dir=/usr/bin  --with-freetype-dir=/usr  --with-png-dir=/usr  --with-xpm-dir=/usr  --enable-gd-native-ttf  --without-gdbm  --with-t1lib=/usr  --with-gettext  --with-gmp  --with-iconv  --with-jpeg-dir=/usr  --with-openssl  --with-pcre=shared,/usr  --with-zlib  --with-layout=GNU  --enable-exif  --enable-ftp  --enable-magic-quotes  --enable-sockets  --enable-sysvsem  --enable-sysvshm  --enable-sysvmsg  --with-kerberos  --enable-ucd-snmp-hack  --enable-shmop  --enable-calendar  --without-mime-magic  --without-sqlite  --with-libxml-dir=/usr  --enable-xml  --with-system-tzdata  --enable-force-cgi-redirect  --enable-pcntl  --with-imap=shared  --with-imap-ssl  --enable-mbstring=shared  --enable-mbregex  --with-ncurses=shared  --with-gd=shared  --enable-bcmath=shared  --enable-dba=shared  --with-db4=/usr  --with-xmlrpc=shared  --with-ldap=shared  --with-ldap-sasl  --with-mysql=shared,/usr  --with-mysqli=shared,/usr/bin/mysql_config  --enable-dom=shared  --with-pgsql=shared  --enable-wddx=shared  --with-snmp=shared,/usr  --enable-soap=shared  --with-xsl=shared,/usr  --enable-xmlreader=shared  --enable-xmlwriter=shared  --with-curl=shared,/usr  --enable-fastcgi  --enable-pdo=shared  --with-pdo-odbc=shared,unixODBC,/usr  --with-pdo-mysql=shared,/usr  --with-pdo-pgsql=shared,/usr  --with-pdo-sqlite=shared,/usr  --with-pdo-dblib=shared,/usr  --enable-json=shared  --enable-zip=shared  --with-readline  --enable-dbase=shared  --with-pspell=shared  --with-mcrypt=shared,/usr  --with-mhash=shared,/usr  --with-tidy=shared,/usr  --with-mssql=shared,/usr  --enable-sysvmsg=shared  --enable-sysvshm=shared  --enable-sysvsem=shared  --enable-posix=shared  --with-unixODBC=shared,/usr
I included xcache, in custom config directories I put ini files for xcache and php.ini, with correct xcache.so path.

When I check php with /usr/local/lsws/fcgi-bin/lsphp5 -v I see it runs with xcache and with -i I see correct settings from xcache.ini. So I think php is compiled correctly.

Now, problem is, when I go to my sites URL with :2080 I don't see my site. When I go there without 2080 port, I see it, and when I check php version, it's 5.2.17 (I compiled for Litespeed latest 5.3.6).

What happend and why, I don't know. Like it didn't collected information from Plesk configuration as it should did. Plesk is 10.0.1. This is my test server, I want to test it before I try it on my production server. What's happend, I really don't know. Test server works fine through URL (on Apache), LiteSpeed Admin console works fine, no problem there (at least I didn't see any).

But something's wrong, it didn't replaced apache server for Plesk. It shows pages when you don't have anything there. I copied my web directory in /usr/local/lsws/DEFAULT/html, here files couldn't be executed, but their contents was shown when I pointed directly to them.

Server's VPS, there's only my site, for my testing purposes. Anyway, I need it to be able to run vBulletin (v4), some perl (they need cgi-bin) and php scripts.

Alan_SP 03-30-2011 11:18 PM

I just played with some options, it seems that directory of my site isn't imported and when I set it manually, Litespeed console says that directory is unreadable. :(

NiteWave 03-30-2011 11:31 PM

1.
#netstat -ntlp
to check if litespeed is running

2.try run litespeed on port 80 to see if it works:
--- stop Apache, change Apache Port Offset to 0, restart LSWS, all hosted web sites are powered by LiteSpeed now.

3. since not for shared hosting setup, try
PHP suEXEC => No

NiteWave 03-30-2011 11:41 PM

build php may have problem. for all option with "shared", need build additional .so as well. or remove all "shared", rebuild php again.

Alan_SP 03-30-2011 11:57 PM

Litespeed is running. I stoped Apache, but there's still error. It opens default Apache page, but of course, servered with Litespeed. :(

I'll try later with rebuilding php, and report what's going on.

I don't know why, but it just doesn't show what I have in my htmldocs directory. :( Like it didn't imported all of Plesk configurations. :(

webizen 03-31-2011 11:09 AM

how many vhosts in plesk? keep in mind that standard lsws only takes 5 vhosts from apache config.

Alan_SP 03-31-2011 12:19 PM

I have only one site (vhost), just for my site, I'm not in hosting my server to others.

When I was installing, I didn't choose to have PHP installed right away, but I compiled it afterwards.

These are errors I see when I go to web console:

Quote:

2011-03-31 08:49:41.468 WARN [] can't set 'Forced Type', undefined MIME Type handler/default-handler
2011-03-31 08:49:41.474 WARN [] can't set 'Forced Type', undefined MIME Type handler/default-handler
2011-03-31 08:49:41.474 WARN [] can't set 'Forced Type', undefined MIME Type handler/perl-script
2011-03-31 08:49:41.475 WARN [] can't set 'Forced Type', undefined MIME Type handler/default-handler
2011-03-31 08:49:41.476 WARN [] can't set 'Forced Type', undefined MIME Type handler/default-handler
2011-03-31 08:49:41.477 WARN Standard Edition only support up to 5 Apache vhosts.
2011-03-31 08:49:41.478 WARN [] can't set 'Forced Type', undefined MIME Type handler/default-handler
There's only this virtual host in settings:

Example $SERVER_ROOT/DEFAULT/

As I see it, for some reason process of importing my virtual host (as I have only one) didn't succeded. Any suggestions?

I would probably try to reinstall it from the beginning, but do you have some suggestions, what should I try before? My test server is VPS, on Virtuozzo.

Procesor GenuineIntel, Intel(R) Xeon(R)CPU E5520 @ 2.27GHz
Version Parallels Plesk Panel v10.0.1_build109101029.17 os_CentOS 5
OS Linux 2.6.18-028stab070.3

mistwang 03-31-2011 12:46 PM

Pleask create too many junk vhosts before your real vhost, so it wont work well with standard edition of LSWS due to the 5 vhosts limit.
You need a VPS license or configure your vhost in LSWS natively.

Alan_SP 03-31-2011 12:53 PM

How I create my real vhost manually? What should I delete from Plesk files and try automatic recognition by Litespeed, or what options I need to use in Litespeed?

I could delete everything, it's my test server, but I need to know what exactley is junk vhost, as I'll have similar situation on my live server, but there I couldn't make mistake.

For now I'm just testing Litespeed and after I'll buy license (2 processors or 4, I have dedicated server), if I'm satisfied how it all works together.

mistwang 03-31-2011 01:02 PM

your best option is to use our trial license on your test server and use it together with plesk.
If you are satisfied, then purchase a license for your production server.


All times are GMT -7. The time now is 04:41 PM.