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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [Solved] litespeed stopped... is there a timer on trial version?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-22-2011, 12:27 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
Default [Solved] litespeed stopped... is there a timer on trial version?

I just realized that my litespeed trial install just stopped, and I had to start it again manually from console.

Is there any timer that makes it shutdown while in trial mode?

Also, on a side note, everytime I restart litespeed, it also starts httpd/apache. Is that normal??? Do I have to stop httpd service?
Reply With Quote
  #2  
Old 12-22-2011, 02:39 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
there is no timer to stop lsws unless your trial period is up. check error log for any clue why it is stopped.

restart lsws should not trigger apache to start (assuming lsws reads apache httpd.conf). you should turn off httpd (service httpd off) so that http port would not be taken by apache when server bootup.
Reply With Quote
  #3  
Old 12-22-2011, 08:24 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
this is weird.... I stopped httpd, removed it from startup as well.... but look below, it restarts when i restart lsws...

[root@node1 ~]# service httpd status
httpd is stopped
[root@node1 ~]# /usr/local/lsws/bin/lswsctrl restart
[OK] Send SIGUSR1 to 8439
[root@node1 ~]# service httpd status
httpd (pid 8581) is running...
Reply With Quote
  #4  
Old 12-23-2011, 11:24 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
do 'ps -ef| grep litespeed' and 'ps -ef| grep httpd'
Reply With Quote
  #5  
Old 12-25-2011, 07:48 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
Thanks!! Looks like I just found a new issue.

I compiled PHP 5.2.17 in litespeed portal. I have then put ioncube loader 5.2.so in php.ini.

However, if I do php -v in console, it tells me that php is 5.3. What's worse is that ioncube is acting up because it's looking for 5.3.so even if the correct ioncube loader is installed. Below is what shows up in php -v

[root@node1 ioncube]# php -v
Cannot load the ionCube PHP Loader - it was built with configuration 2.2.0, whereas running engine is API220090626,NTS
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'mbstring' already loaded in Unknown on line 0
PHP Warning: Module 'mysqli' already loaded in Unknown on line 0
PHP 5.3.8 with Suhosin-Patch (cli) (built: Dec 21 2011 00:12:45)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
[root@node1 ioncube]#
Reply With Quote
  #6  
Old 12-27-2011, 07:32 AM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
OK Got it fixed.

Apparently there's a 2nd instance running, and I needed to change the binaries to point to the litespeed php version.

All working good now.

Thanks!!!
Reply With Quote
  #7  
Old 01-03-2012, 09:52 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
webizen, in response to your instructions, below are the results. How do I prevent httpd from restarting when i restart lswsctrl?

[root@node1 fcgi-bin]# /usr/local/lsws/bin/lswsctrl restart
[OK] Send SIGUSR1 to 490421
[root@node1 fcgi-bin]# service httpd status
httpd (pid 492552) is running...
[root@node1 fcgi-bin]# service httpd stop
Stopping httpd: [ OK ]
[root@node1 fcgi-bin]# /usr/local/lsws/bin/lswsctrl restart
[OK] Send SIGUSR1 to 492551
[root@node1 fcgi-bin]# ps -ef| grep litespeed
root 492551 1 0 00:50 ? 00:00:00 litespeed (lshttpd)
apache 492554 492551 0 00:50 ? 00:00:00 litespeed (lshttpd)
root 492646 1 2 00:51 ? 00:00:00 litespeed (lshttpd)
apache 492648 492646 0 00:51 ? 00:00:00 litespeed (lshttpd)
apache 492649 492646 0 00:51 ? 00:00:00 litespeed (lshttpd)
root 492695 218474 0 00:51 pts/0 00:00:00 grep litespeed
[root@node1 fcgi-bin]# ps -ef| grep httpd
root 73478 1 0 Jan01 ? 00:00:01 /home/interworx/bin/iworx-web -f /home/interworx/etc/httpd/httpd.conf -DSSL
249 182498 73478 0 Jan03 ? 00:00:00 /home/interworx/bin/iworx-web -f /home/interworx/etc/httpd/httpd.conf -DSSL
249 194344 73478 0 Jan03 ? 00:00:00 /home/interworx/bin/iworx-web -f /home/interworx/etc/httpd/httpd.conf -DSSL
root 492646 1 1 00:51 ? 00:00:00 litespeed (lshttpd)
root 492647 492646 0 00:51 ? 00:00:00 httpd (lscgid)
apache 492648 492646 0 00:51 ? 00:00:00 litespeed (lshttpd)
apache 492649 492646 0 00:51 ? 00:00:00 litespeed (lshttpd)
root 492709 218474 0 00:51 pts/0 00:00:00 grep httpd
[root@node1 fcgi-bin]#
Reply With Quote
  #8  
Old 01-06-2012, 03:43 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
httpd process is lscgid (in bold) which is part of lsws process and it confuses /etc/init.d/httpd script. IOW, this is not an issue. httpd in your case is NOT for Apache but for LSWS. service httpd status only show status of httpd (lscgid not Apache httpd).

See more discussion about httpd(lscgid)at http://www.litespeedtech.com/support...ead.php?t=2574

[root@node1 ~]# ps -ef| grep http
249 250514 73478 0 19:42 ? 00:00:00 /home/interworx/bin/iworx-web -f /home/interworx/etc/httpd/httpd.conf -DSSL
root 439360 1 0 23:39 ? 00:00:00 litespeed (lshttpd)
apache 439363 439360 0 23:39 ? 00:00:00 litespeed (lshttpd)
root 440325 1 3 23:42 ? 00:00:00 litespeed (lshttpd)
root 440326 440325 0 23:42 ? 00:00:00 httpd (lscgid)
apache 440339 440325 0 23:42 ? 00:00:00 litespeed (lshttpd)
apache 440341 440325 0 23:42 ? 00:00:00 litespeed (lshttpd)
root 440841 440085 7 23:42 ? 00:00:00 /home/interworx/bin/php -c /home/interworx/etc httpd.php --dump-vhosts
root 440844 436502 0 23:42 pts/1 00:00:00 grep http
Reply With Quote
  #9  
Old 01-08-2012, 09:52 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
ahh ok.

Thanks. Also one more thing, for some reason now any php with < ? brackets are not recognized (added a space in this message to make sure it shows up) now i need to make it < ?php.

Now all php sites using the < ? bracket are not loading.

Any idea what could cause this?
Reply With Quote
  #10  
Old 01-08-2012, 09:59 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
set short_open_tag=1 in php.ini

please refer php document
http://php.net/manual/en/ini.core.php
for more detail
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 03:48 AM.



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