LiteSpeedのインストール手順

LiteSpeedのインストールを頼まれたので、インストール検証をしてみました。

とりあえず試用なのでStandardを使います。

以下のURLよりダウンロードできます。
http://www.litespeedtech.com/litespeed-web-server-downloads.html
メーカーURL
http://www.litespeedtech.com/

以下のファイルを使用しました。
lsws-4.1.113-std-i386-linux.tar.gz
プラットフォーム:Linux (x86)
バージョン:4.1.13 Std
ビルド日付:06-27-2012

CenteOS5.8 64bitを使用しましたが、インストール方法はご存知の通りなので省略します。
対象マシンのIPアドレス:192.168.0.1

とりあえず初期設定
SELinuxとiptablesの設定
# vi /etc/selinux/config
SELINUX=enforcing

SELINUX=disabled

# setenforce 0
# vi /etc/sysconfig/iptables
以下を追加(SSH HTTP Litespeedの管理ポート)
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 7080 -j ACCEPT

iptablesの再起動を行います
# service iptables restart

必要パッケージのインストールを行います。
Litespeedの管理ページでrubyが無いと警告が出るのでインストールします
# yum update -y
# yum install -y mysql mysql-devel gd zlib-devel libpng-devel libjpeg-devel libgcrypt libmcrypt libmcrypt-devel libgcrypt-devel curl gettext libxml2-devel freetype-devel openssl ruby ruby-devel ruby-docs ruby-irb ruby-libs ruby-mode ruby-rdoc ruby-tcltk

SCPなどを使用しサーバーへファイルを設置します。
# cp /home/h-ono/lsws-4.1.13-std-i386-linux.tar.gz /usr/local/src/
# cd /usr/local/src
# tar zxvf lsws-4.1.13-std-i386-linux.tar.gz
# rm lsws-4.1.13-std-i386-linux.tar.gz
# cd lsws-4.1.13

インストールスクリプトを実行します。
# ./install.sh

インストール情報を聞かれますので各種情報を設定します

End-User License Agreement for LiteSpeed Software

IMPORTANT READ CAREFULLY

This End-User License Agreement ("EULA") is a legal agreement between
"You", the end user (either an individual or a single entity) and Lite
Speed Technologies Inc. a company registered in New Jersey, United
States ("LITESPEED") for a software product ("SOFTWARE PRODUCT"). 

YOU MUST READ THE TERMS BELOW BEFORE DOWNLOADING, INSTALLING, OR
OTHERWISE USING THE SOFTWARE PRODUCT. BY DOWNLOADING, INSTALLING, OR
USING THE SOFTWARE PRODUCT YOU AGREE TO BE AND WILL BE BOUND BY THE
TERMS OF THIS EULA. IF YOU DO NOT AGREE TO THE TERMS OF THIS EULA, DO
NOT DOWNLOAD, INSTALL, OR USE THE SOFTWARE PRODUCT AND YOU SHOULD
DESTROY OR DELETE THE SOFTWARE PRODUCT.


1. LICENSE TO USE. 
In consider of your agreement to comply with the terms and conditions
under this EULA, LITESPEED hereby grants You a non-exclusive and
nontransferable license to use the SOFTWARE PRODUCT and documentation
on a computer for which you have paid corresponding fee.
You cannot use the SOFTWARE PRODUCT for any illegal activity or to host 
pornographic content.

2. COPYRIGHT AND RESTRICTIONS.
The SOFTWARE PRODUCT and the associated intellectual property is
protected by copyright laws and international treaty provisions. Title
to the SOFTWARE PRODUCT and all associated intellectual property
rights is retained by LITESPEED. Unauthorized copying or use of the
SOFTWARE PRODUCT, including any portion of the SOFTWARE PRODUCT that
has been modified, merged, or included with other software is
expressly forbidden. Unless prohibited by applicable law, you may not
modify, decompile, or reverse engineer the SOFTWARE PRODUCT.  


3. NO WARRANTY.
THIS SOFTWARE PRODUCTS ARE PROVIDED "AS-IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION,
WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT
FOR A PARTICULAR PURPOSE.


4. LIMITATION OF LIABILITY. 
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL
LITESPEED BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR
CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING WITHOUT LIMITATION LOSS OF
PROFITS OR DATA, BUSINESS INTERRUPTION, OR ANY OTHER TANGIBLE OR
INTANGIBLE PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO
USE THE SOFTWARE PRODUCT OR THE PROVISION OF, EVEN IF LITESPEED HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 

5. TERMINATION.
This EULA shall remain in full force on the date You download, install
or otherwise use the SOFTWARE PRODUCT are and shall be effective. This 
EULA will terminate immediately without notice from LITESPEED if you 
fail to comply with any provision of this EULA.  Upon Termination, you 
must destroy all copies of the SOFTWARE PRODUCT. You may terminate this 
EULA at any time by destroying all copies of the SOFTWARE PRODUCT. 


6. SEVERABILITY.
If any provision of this EULA is held unenforceable, this EULA shall
remain in effect with the provision reformed to the extent necessary
to make it enforceable, unless to do so would frustrate the intent of
the parties, in which case the EULA will immediately terminate.


7. GOVERNING LAW.
This EULA shall be governed and be construed by the laws of state of
New Jersey and controlling U.S. federal law.


8. EXPORT RESTRICTIONS
The SOFTWARE PRODUCT may be subject to U.S. export laws or regulations
and/or export or import regulations in other countries. Each party
shall comply fully with all such laws and regulations to the extent
applicable and further acknowledges its responsibility to obtain such
licenses to export or import as may be required.


9. U.S. GOVERNMENT. 
If any or all of the SOFTWARE PRODUCT are being acquired by or on
behalf of the U.S. Government or by a U.S. Government prime contractor
or subcontractor (at any tier), then the Government's rights in
SOFTWARE PRODUCT and accompanying documentation shall be only as set
forth in this EULA.

Copyright (c) 2002-2003 Lite Speed Technologies Inc. All rights reserved.

IMPORTANT: In order to continue installation you must agree with above 
           license terms by typing "Yes" with capital "Y"! 

Do you agree with above license? Yes

Please specify the destination directory. You must have permissions to 
create and manage the directory. It is recommended to install the web server 
at /opt/lsws, /usr/local/lsws or in your home directory like '~/lsws'.

ATTENTION: The user 'nobody' must be able to access the destination
           directory.

Destination [/usr/local/lsws]: /usr/local/lsws


Please specify the user name of the administrator.
This is the user name required to log into the administration web interface.

User name [admin]: admin

Please specify the administrator's password.
This is the password required to log into the administration web interface.

Password:Higuma!
Retype password:Higuma!

Please specify administrators' email addresses.
It is recommended to specify a real email address,
Multiple email addresses can be set by a comma 
delimited list of email addresses. Whenever something
abnormal happened, a notificiation will be sent to 
emails listed here.

Email addresses [root@localhost]: root@localhost

As you are the root user, you must choose the user and group
whom the web server will be running as. For security reason, you should choose
a non-system user who does not have login shell and home directory such as
'nobody'.

User [nobody]: nobody
Please choose the group that the web server running as.

User 'nobody' is the member of following group(s):  nobody
Group []: nobody

Please specify the port for normal HTTP service.
Port 80 is the standard HTTP port, only 'root' user is allowed to use 
port 80, if you have another web server running on port 80, you need to
specify another port or stop the other web server before starting LiteSpeed
Web Server.
You can access the normal web page at http://<YOUR_HOST>:<HTTP_PORT>/

HTTP port [8088]: 80

Please specify the HTTP port for the administration web interface,
which can be accessed through http://<YOUR_HOST>:<ADMIN_PORT>/

Admin HTTP port [7080]: 7080
Cannot find RUBY installation, remember to fix up the ruby path configuration
before you can use our easy RubyOnRails setup.


You can setup a global script handler for PHP with the pre-built PHP engine
shipped with this package now. The PHP engine runs as Fast CGI which  
outperforms Apache's mod_php. 
You can always replace the pre-built PHP engine with your customized PHP 
engine.

Setup up PHP [Y/n]: Y
Suffix for PHP script(comma separated list) 

: php Installing, please wait... Generating key pair for web console login page, please wait ... Generating RSA private key, 512 bit long modulus ....++++++++++++ .......++++++++++++ e is 65537 (0x10001) AWStats Integration AWStats is a popular log analyzer that generates advanced web server statistics. LiteSpeed web server seamlessly integrates AWStats into its Web Admin Interface. AWStats configuration and statistics update have been taken care of by LiteSpeed web server. Note: If AWStats has been installed already, you do not need to install again unless a new version of AWStats is available. Would you like to install AWStats Add-on module [y/N]? N 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! Would you like to start it right now [Y/n]? Y [OK] litespeed: pid=3785. LiteSpeed Web Server started successfully! Have fun!


以下のURLでLiteSpeedの初期画面が出たらインストール成功です。
http://192.168.0.1:80/

管理画面からログインしてPHPをコンパイルしたら終わりです。
http://192.168.0.1:7080/
ユーザID:admin
パスワード:Higuma!

カテゴリー: Linux, コンピュータ パーマリンク

コメントは停止中です。