但是老實說,那搞死人,到底網站的home目錄在哪
又到底是系統管理那邊才是控制權?還是在「系統偏好設定」裡面的「共享」才是?
不管了,換個方式
所以今天吉米跟大家分享,安裝LiteSpeed的方式

LiteSpeed
http://www.litespeedtech.com/
其實web server各門派的擁護者都有,有支持apache、nginx.... 等,就像iOS跟Android,就像Windows跟Mac一樣
反正我就介紹,大家自己參考用
當然這套軟體號稱同樣資源下,效能比apache快上6倍以上
至於你信不信,就要裝了才知道

先到畫面上面點選download,或是選左邊download
這邊有幾種版本,第一種就是企業版,要收錢的,不過若你是用來賺錢的,你可以先點選旁邊那個索取試用的方式
來個14天的體驗,用喜歡再買,還有30天滿意保證,總而言之,先試再說
接著就看你是哪個作業系統,Mac的就選Mac OS,看你的CPU是intel的還是PPC的
當然這也可以用在一般的Linux上面,再依照你是32還是64位元的版本選擇

你是搞好玩的也沒關係,那就繼續往下啦,就有免費版本可以下載,基本上免費版本就是限制最大連線數
既然你沒玩這麼大,就省下來吧
下載好之後,就把檔案丟到你server的根目錄去吧

然後解壓縮,進入到該目錄裡面
接著再命令列下達指令
代碼:
./install.sh
依照程序走下去
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?
Do you agree with above license?
接著你會看到軟體的使用聲明,並且問你同不同意,請輸入「Yes」,注意喔,Y要大寫
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就好,所以直接按enter吧
Please specify the user name of the administrator.
This is the user name required to log into the administration web interface.
User name [admin]:
Please specify the administrator's password.
This is the password required to log into the administration web interface.
Password:
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]:
Will you use LiteSpeed Web Server with a hosting control panel?
0. NONE
1. cPanel
2. DirectAdmin
3. Plesk
4. Hsphere
5. Interworx
6. Lxadmin
7. ISPManager
Please select (0-6) [0]?
0. NONE
1. cPanel
2. DirectAdmin
3. Plesk
4. Hsphere
5. Interworx
6. Lxadmin
7. ISPManager
Please select (0-6) [0]?
你有安裝其他的主機管理系統嗎?就看你的系統來選擇囉
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]:
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]:
Please choose the group that the web server running as.
User 'nobody' is the member of following group(s): nobody
Group [nobody]:
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]:
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]:
Please specify the HTTP port for the administration web interface,
which can be accessed through http://<YOUR_HOST>:<ADMIN_PORT>/
Admin HTTP port [7080]:
which can be accessed through http://<YOUR_HOST>:<ADMIN_PORT>/
Admin HTTP port [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]:
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]:
Suffix for PHP script(comma separated list) [php]:
LiteSpeed Web Server Enterprise Edition can run in chroot environment.
It is impossible for the chrooted process and its children processes to
access files outside the new root directory.
With chroot configured properly, there is no need to worry about sensitive
data being accidentally exposed by insecure CGI programs or web server itself.
Even when a hacker some how gain a shell access, all files he can access is
under the chrooted directory.
This installation script will try to setup the initial chroot environment
automatically.
However, it is not easy to setup a chroot environment and you CGI program may
break. So we do not recommend enabling it for the first time user.
It can be enabled later by running this installation script again.
Enable chroot [y/N]:
It is impossible for the chrooted process and its children processes to
access files outside the new root directory.
With chroot configured properly, there is no need to worry about sensitive
data being accidentally exposed by insecure CGI programs or web server itself.
Even when a hacker some how gain a shell access, all files he can access is
under the chrooted directory.
This installation script will try to setup the initial chroot environment
automatically.
However, it is not easy to setup a chroot environment and you CGI program may
break. So we do not recommend enabling it for the first time user.
It can be enabled later by running this installation script again.
Enable chroot [y/N]:
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]?
AWStats的網路使用狀況分析要不要安裝,按下y,安裝吧
Congratulations! The LiteSpeed Web Server has been successfully installed.
Command line script - "/usr/local/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]?
Command line script - "/usr/local/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]?
[OK] The startup script has been successfully installed!
Would you like to start it right now [Y/n]?
Would you like to start it right now [Y/n]?
開工囉

接著輸入 「http://你的網址:7080/」 輸入帳號密碼,就可以看到設定畫面囉