apt-get update -y && apt-get upgrade -y
apt-get -y purge apache2-* bind9-* xinetd samba-* nscd-* portmap sendmail-* sasl2-bin
apt-get -y purge lynx memtester unixodbc python-* odbcinst-* sudo tcpdump ttf-*
apt-get autoremove && apt-get clean
apt-get install sqlite -y
apt-get install lighttpd -y
apt-get install php5-cgi php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl -y
useradd -d /home/wwwroot -m -s /bin/bash www
server.modules = ("mod_access","mod_alias","mod_compress","mod_redirect","mod_rewrite","mod_fastcgi",)
server.document-root
= "/var/www"server.upload-dirs
= ( "/var/cache/lighttpd/uploads" )server.errorlog
= "/var/log/lighttpd/error.log"server.pid-file
= "/var/run/lighttpd.pid"server.username
= "www"server.groupname
= "www"index-file.names
= ( "index.php", "index.html","index.htm", "default.htm"," index.lighttpd.html" )url.access-deny
= ( "~", ".inc" )static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )include_shell "/usr/share/lighttpd/use-ipv6.pl"dir-listing.encoding
= "utf-8"server.dir-listing
= "enable"compress.cache-dir
= "/var/cache/lighttpd/compress/"compress.filetype
= ( "application/x-javascript", "text/css", "text/html", "text/plain" )
include_shell "/usr/share/lighttpd/create-mime.assign.pl"include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
fastcgi.server =
( ".php" => (("bin-path" => "/usr/bin/php5-cgi","socket" => "/tmp/php.socket","max-procs" => 1,
"bin-environment" => ("PHP_FCGI_CHILDREN" => "4","PHP_FCGI_MAX_REQUESTS" => "1000"),)))
chown -R www:www /var/log/lighttpd/etc/init.d/lighttpd restart
/var/www
wget https://github.com/typecho/typecho/releases/download/v1.0-14.10.10-release/1.0.14.10.10.-release.tar.gztar -zxvf 1.0.14.10.10.-release.tar.gz
欢迎光临 冠富商务通中文社区 (http://gu1vhwx.nat.ipyingshe.com/news/) | Powered by Discuz! 3.0 |