Web application package guidelines
This page describes how to package web application which tends to install into
/srv/http (for example packages written in php, such as and ).
/var/...(according to generic FHS conventions)
/usr/share/webapps/$pkgname files and/or directories should be symlinked into
/etc/webapps/$pkgname should contain some examples which helps to setup web-server to run this web application:
Install web application package
Install with Apache
# install 'foo' packaage # cp /etc/webapps/foo/apache.example.conf /etc/httpd/conf/extra/foo.conf # edit /etc/httpd/conf/httpd.conf Include conf/extra/foo.conf
# systemctl start httpd
Install with Nginx
# install 'foo' pacakge # ln -s /usr/share/webapps/foo /srv/http # cp /etc/webapps/foo/nginx.example.conf /etc/nginx/extra/foo.conf # conf file may be not present.
# systemctl start <fastcgi> # systemctl start nginx