I recieve an error on my Direct Admin installed server while installing litespeed like when i try to restart or star i get error for /tmp/lshttpd(lshttpd.opid file.
When i try to create it manually and restart it, it tries to restart and when i checked back again file seems deleted and litespeed havent started.
How can i fix this?
When i try to create it manually and restart it, it tries to restart and when i checked back again file seems deleted and litespeed havent started.
How can i fix this?
Will you use LiteSpeed Web Server with a hosting contorl panel?
0. NONE
1. cPanel
2. DirectAdmin
3. Plesk
Please select (0-3) [0]? 2
Would you like to run LiteSpeed along side with Apache on another port
to make sure everything work properly? If yes, please set "Port Offset"
to a non-zero value, LiteSpeed will run on Port 80 + "Port Offset",
otherwise, set to "0" to replace Apache.
Port Offset [2000]? 0
PHP suEXEC will run php scripts of each web site as the user who own the
document root directory,
LiteSpeed PHP suEXEC does not have any performance penalty like other PHP
suEXEC implementation, and .htaccess configuration overriden has been fully
supported.
Note: You may need to fix some file/directory permissions if phpSuexec or
suphp was not used with Apache.
Would you like to enable PHP suEXEC?
0. No
1. Yes
2. Only in user's home directory (DirectAdmin should use this)
Please select (0-2)? [2]0
Installing, please wait...
Congratulations! The LiteSpeed Web Server has been successfully installed.
Command line script - "/opt/lsws/bin/lswsctrl"
can be used to start or stop the server.
It is recommended to limit access to the web administration interface.
Right now the interface can be accessed from anywhere where this
machine can be reached over the network.
Three options are available:
1. If the interface needs to be accessed only from this machine, just
change the listener for the interface to only listen on the loopback
interface - localhost(127.0.0.1).
2. If the interface needs to be accessible from limited IP addresses or sub
networks, then set up access control rules for the interface accordingly.
3. If the interface has to be accessible via internet, SSL (Secure Sockets
Layer) should be used. Please read respective HOW-TOs on SSL configuration.
To change configurations of the interface, login and click
"Interface Configuration" button on the main page.
The administration interface is located at http://localhost:<ADMIN_PORT>/
or http://<ip_or_Hostname_of_this_machine>:<ADMIN_PORT>/
Would you like to have LiteSpeed Web Server started automatically
when the server restarts [Y/n]? y
[OK] The startup script has been successfully installed!
The default configuration file contain support for both PHP4 and PHP5,
A prebuilt PHP4 binary comes with this package, however, we recommend
you to build your own PHP4 and PHP5 binaries though our web console with
the same configuration parameters as your current PHP installation. You
can check your current PHP configuration via a phpinfo() page.
Press [ENTER] to continue
When you replace Apache with LiteSpeed, remember to stop Apache completely.
On most Linux servers, you should do:
service httpd stop
chkconfig httpd off
or
service apache stop
chkconfig apache off
If "Port Offset" has been set to 0, you should do it now.
Press [ENTER] to continue
y
Would you like to start it right now [Y/n]? y
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11299.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11318.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11337.
[ERROR] Failed to start the web server. For trouble shooting information,
please refer to documents in "/opt/lsws/docs/".
[root@server lsws-3.3.22]# service
[root@server lsws-3.3.22]# /opt/lsws/bin/lswsctrl reload
[ERROR] lshttpd is not running.
[root@server lsws-3.3.22]# /opt/lsws/bin/lswsctrl restart
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11394.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11422.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11459.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11489.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11517.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11536.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11557.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11828.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11907.
[root@server lsws-3.3.22]# /opt/lsws/bin/lswsctrl reload
[ERROR] lshttpd is not running.
0. NONE
1. cPanel
2. DirectAdmin
3. Plesk
Please select (0-3) [0]? 2
Would you like to run LiteSpeed along side with Apache on another port
to make sure everything work properly? If yes, please set "Port Offset"
to a non-zero value, LiteSpeed will run on Port 80 + "Port Offset",
otherwise, set to "0" to replace Apache.
Port Offset [2000]? 0
PHP suEXEC will run php scripts of each web site as the user who own the
document root directory,
LiteSpeed PHP suEXEC does not have any performance penalty like other PHP
suEXEC implementation, and .htaccess configuration overriden has been fully
supported.
Note: You may need to fix some file/directory permissions if phpSuexec or
suphp was not used with Apache.
Would you like to enable PHP suEXEC?
0. No
1. Yes
2. Only in user's home directory (DirectAdmin should use this)
Please select (0-2)? [2]0
Installing, please wait...
Congratulations! The LiteSpeed Web Server has been successfully installed.
Command line script - "/opt/lsws/bin/lswsctrl"
can be used to start or stop the server.
It is recommended to limit access to the web administration interface.
Right now the interface can be accessed from anywhere where this
machine can be reached over the network.
Three options are available:
1. If the interface needs to be accessed only from this machine, just
change the listener for the interface to only listen on the loopback
interface - localhost(127.0.0.1).
2. If the interface needs to be accessible from limited IP addresses or sub
networks, then set up access control rules for the interface accordingly.
3. If the interface has to be accessible via internet, SSL (Secure Sockets
Layer) should be used. Please read respective HOW-TOs on SSL configuration.
To change configurations of the interface, login and click
"Interface Configuration" button on the main page.
The administration interface is located at http://localhost:<ADMIN_PORT>/
or http://<ip_or_Hostname_of_this_machine>:<ADMIN_PORT>/
Would you like to have LiteSpeed Web Server started automatically
when the server restarts [Y/n]? y
[OK] The startup script has been successfully installed!
The default configuration file contain support for both PHP4 and PHP5,
A prebuilt PHP4 binary comes with this package, however, we recommend
you to build your own PHP4 and PHP5 binaries though our web console with
the same configuration parameters as your current PHP installation. You
can check your current PHP configuration via a phpinfo() page.
Press [ENTER] to continue
When you replace Apache with LiteSpeed, remember to stop Apache completely.
On most Linux servers, you should do:
service httpd stop
chkconfig httpd off
or
service apache stop
chkconfig apache off
If "Port Offset" has been set to 0, you should do it now.
Press [ENTER] to continue
y
Would you like to start it right now [Y/n]? y
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11299.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11318.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11337.
[ERROR] Failed to start the web server. For trouble shooting information,
please refer to documents in "/opt/lsws/docs/".
[root@server lsws-3.3.22]# service
[root@server lsws-3.3.22]# /opt/lsws/bin/lswsctrl reload
[ERROR] lshttpd is not running.
[root@server lsws-3.3.22]# /opt/lsws/bin/lswsctrl restart
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11394.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11422.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11459.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11489.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11517.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11536.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11557.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11828.
[OK] Your trial license key will expire in 14 days!
[OK] lshttpd: pid=11907.
[root@server lsws-3.3.22]# /opt/lsws/bin/lswsctrl reload
[ERROR] lshttpd is not running.