[Solved] litespeed stopped... is there a timer on trial version?

bangsters

Well-Known Member
#1
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?
 

webizen

Well-Known Member
#2
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.
 

bangsters

Well-Known Member
#3
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...
 

bangsters

Well-Known Member
#5
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]#
 

bangsters

Well-Known Member
#6
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!!!
 

bangsters

Well-Known Member
#7
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]#
 

webizen

Well-Known Member
#8
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/forum/showthread.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
 

bangsters

Well-Known Member
#9
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?
 
Top