LLsMP一鍵安拆包及應用教程


LLsMP望文生義是Linux+LiteSpeed+MySQL+PHP的一套Web情況。信任大概年夜傢對LNMP更熟習一些,至於孰好孰壞,那裡也沒有虛偽瞭,究竟本身也是方才打仗LLsMP,以是沒有便利多道,然則從現有材料去看,LiteSpeed的背載才能很強,占用資本也極低,並且對付.htaccess的rewrite規矩支撐也異常沒有錯,那也是Nginx一個很年夜的缺點吧(很多真靜態的規矩須要本身完成…)。


LLsMP一鍵安拆包及應用教程


本文先容的LLsMP一鍵安拆包是llsmp.org舉行宣佈,本文僅對經常使用設置取敕令舉行整頓匯總!


1.安拆LLsMP


2.安拆更多附減組件


3.LLsMP相幹治理敕令


4.LLsMP經常使用目次


5.停止本文揭櫫,最新版本0.6已知的題目


安拆LLsMP


支撐仄臺:CentOS 5/6 , Debian 5/6 , Ubuntu 10/11


安拆敕令:


安拆PHP5.3版本完成之後要重啟MYSQL



/etc/init.d/mysql start


CentOS:


PHP5.2



wget /files/llsmp0.6_centos.tar.gz;tar zxvf llsmp0.6_centos.tar.gz;cd centos;sh install.sh


PHP5.3



wget /files/llsmp0.6_centos.tar.gz;tar zxvf llsmp0.6_centos.tar.gz;cd centos;sh install.sh php5.3


Debian:


PHP5.2



wget /files/llsmp0.6_debian.tar.gz;tar zxvf llsmp0.6_debian.tar.gz;cd debian;sh install.sh


PHP5.3



wget /files/llsmp0.6_debian.tar.gz;tar zxvf llsmp0.6_debian.tar.gz;cd debian;sh install.sh php5.3


Ubuntu:


PHP5.2



wget /files/llsmp0.6_ubuntu.tar.gz;tar zxvf llsmp0.6_ubuntu.tar.gz;cd ubuntu;sh install.sh


PHP5.3



wget /files/llsmp0.6_ubuntu.tar.gz;tar zxvf llsmp0.6_ubuntu.tar.gz;cd ubuntu;sh install.sh php5.3


安拆更多附減組件:


安拆eAccelerator : sh /root/llsmp/eaccelerator.sh


安拆Zend Optimizer : sh /root/llsmp/zend_optimizer.sh


安拆ionCube Loader : sh /root/llsmp/ioncube.sh


安拆Google Performace Tools : sh /root/llsmp/perftools.sh


安拆FTP(vsftpd) : sh /root/llsmp/vsftpd.sh


安拆Nginx前端 : sh /root/llsmp/nginx.sh


LLsMP相幹治理敕令:


創立Litespeed假造主機 : sh /root/llsmp/vhost.sh


增加FTP賬號 : sh /root/llsmp/vsftpd.sh


主要!假造主機權限修改: chown -R nobody:nobody /home/wwwroot/域名/html


創立Nginx假造主機 : sh /root/llsmp/nginx.sh


備份指令 : sh /root/llsmp/backup.sh


重啟Litespeed : /etc/init.d/lsws restart


重啟MySQL : /etc/init.d/mysql(d) restart


重啟Nginx : /etc/init.d/nginx restart


LLsMP經常使用目次:


Litespeed治理背景 : f : /etc/my.cnf (Centos) | /etc/mysql/my.cnf (Debian/Ubuntu)


Nginx設置裝備擺設目次: /etc/nginx/nginx.conf 及 /etc/nginx/conf.d/下


假造主機目次: /home/wwwroot


LLsMP安拆日記: /root/llsmp/install.log


停止本文揭櫫,最新版本0.6已知的題目:


1.已知部門KVM上的Debian沒法安拆LLsMP



cp: cannot create regular file ‘/usr/local/lsws/DEFAULT/html/installlog.html’: No such file or directory


sed: can’t read /usr/local/lsws/DEFAULT/html/installlog.html: No such file or directory


sed: can’t read /usr/local/lsws/DEFAULT/html/installlog.html: No such file or directory


sed: can’t read /usr/local/lsws/DEFAULT/html/installlog.html: No such file or directory


sed: can’t read /usr/local/lsws/DEFAULT/html/installlog.html: No such file or directory


緣故原由是Litespeed安拆已勝利,expect湧現毛病


待修改


2.安拆LLsMP 的PHP5.3版本登錄phpmyadmin湧現#2002毛病


緣故原由是劇本題目,MySQL已主動重啟,請腳動重啟



/etc/init.d/mysql start


3.VPS重啟,而Litespeed戰MySQL已隨機啟動


腳動設置開機啟動


Debian/Ubuntu:



update-rc.d lsws defaults


update-rc.d mysql defaults


CentOS:



chkconfig –level 345 lsws on


chkconfig –level 345 mysql on