Difference between pages "Package:Tengine" and "Package:Debian-sources"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
m (add passenger garbage)
 
(Created page with "{{Ebuild |Summary=This is the Debian kernel. This is default recommended kernel to use in http://www.funtoo.org/Funtoo_Linux_Installation |CatPkg=sys-kernel/debian-sources |Ma...")
 
Line 1: Line 1:
{{Ebuild
{{Ebuild
|Summary=Robust, small and high performance http and reverse proxy server
|Summary=This is the Debian kernel. This is default recommended kernel to use in http://www.funtoo.org/Funtoo_Linux_Installation
|CatPkg=www-servers/tengine
|CatPkg=sys-kernel/debian-sources
|Maintainer=
|Maintainer=Oleg,
|Homepage=http://tengine.taobao.org
|Homepage=http://www.funtoo.org/Funtoo_Linux_Kernels
}}
}}
Tengine is an {{package|www-servers/nginx}} fork. It supports DSO module loading, meaning it can have external modules without the need to compile them in.
== Introduction ==
 
This is the Debian kernel. It is roughly equal to a kernel shipped by Debian Linux in their releases. Ebuild now support the <code>binary</code> USE flag. The aim of this ebuild is to have support for near all possible hardware and users shouldn't really dig into configs, aka "install and forget". Daniel has added a special config-extract command which can be used to list all available official Debian kernel configurations, and generate them from the Debian files included with the kernel.  
===Installation===
== Usage ==
==== Shared & Static Modules ====
<console>
If you happen to want all modules installed dynamically, you, still, need to install some static modules. Make sure to add this to your {{c|/etc/portage/make.conf}} file:
###i## echo "sys-kernel/debian-sources binary" >> /etc/portage/package.use
 
###i## emerge debian-sources
{{file|name=/etc/portage/make.conf|desc=Tengine all-modules build|body=
###i## nano -w /etc/boot.conf
...
###i## boot-update
TENGINE_SHARED_MODULES_HTTP="access addition autoindex browser charset_filter empty_gif fastcgi flv footer_filter geoip image_filter limit_conn limit_req lua map memcached mp4 random_index referer reqstat rewrite scgi secure_link slice split_clients sub sysguard tfs trim_filter upstream_ip_hash upstream_least_conn upstream_session_sticky user_agent userid_filter uwsgi xslt"
</console>
TENGINE_STATIC_MODULES_HTTP="concat dav degradation geo gunzip gzip gzip_static perl proxy realip spdy ssi ssl stub_status upstream-rbtree upstream_check upstream_consistent_hash upstream_keepalive"
{{fancyimportant|1=
...
<code>debian-sources</code> with <code>binary</code> USE flag also automatically installing a /usr/src/linux symlink pointing to debian kernel.}}
}}
== Advanced use ==
 
Additional information about using <code>config-extract</code> tool and genkernel tips can be found here:
==== External Modules ====
http://www.funtoo.org/Funtoo_Linux_Kernels
If you want to run passenger:
{{file|name=/etc/portage/make.conf|desc=build the passenger module|body=
TENGINE_EXTERNAL_MODULES_HTTP="passenger"
}}
 
Then, just:
{{console|body=###i## emerge tengine}}
 
===Configuration===
Files for configuration are located at {{c|/etc/tengine}}
 
The major differing point in tengine from nginx is that you have to specifically declare which modules are loaded.  Available modules are located at {{c|/var/lib/tengine/modules}}.
 
{{file|name=/etc/tengine/tengine.conf|desc=DSO module statements|body=
...
dso {
load ngx_http_charset_filter_module.so;
load ngx_http_fastcgi_module.so;
load ngx_http_rewrite_module.so;
}
...
}}
 
===Tengine===
{{c|/etc/tengine/tengine.conf}} contains engine specific configurations.
 
===Sites===
{{c|/etc/tengine/sites-available/localhost}} has site specific configurations.  Generally localhost is copied to domain.tld file formats in the {{c|/etc/tengine/sites-available/}} directory.
 
===PHP-FPM===
Tengine does not natively support php, so we delegate that responsibility to [[Package:PHP#Fpm | php-fpm]]
 
{{file|name=/etc/tengine/sites-available/localhost|desc=fpm tcp/ip configuration|body=
server {
        ...
index index.php index.cgi index.htm index.html;
location ~ \.php$ {
        fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
        }
        ...
}
}}
 
===Usage===
To start the tengine server:
 
{{console|body=###i## rc-update add tengine default
###i## rc}}
 
{{EbuildFooter}}
{{EbuildFooter}}

Revision as of 09:47, March 31, 2015

Debian-sources

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Introduction

This is the Debian kernel. It is roughly equal to a kernel shipped by Debian Linux in their releases. Ebuild now support the binary USE flag. The aim of this ebuild is to have support for near all possible hardware and users shouldn't really dig into configs, aka "install and forget". Daniel has added a special config-extract command which can be used to list all available official Debian kernel configurations, and generate them from the Debian files included with the kernel.

Usage

root # echo "sys-kernel/debian-sources binary" >> /etc/portage/package.use
root # emerge debian-sources
root # nano -w /etc/boot.conf
root # boot-update
   Important

debian-sources with binary USE flag also automatically installing a /usr/src/linux symlink pointing to debian kernel.

Advanced use

Additional information about using config-extract tool and genkernel tips can be found here: http://www.funtoo.org/Funtoo_Linux_Kernels