Difference between revisions of "Web application package guidelines"

From ArchWiki
Jump to: navigation, search
m (Install Web Application Package: sentence case in headings)
m (add ja link)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
[[Category:Package development]]
 
[[Category:Package development]]
{{Package Guidelines}}
+
[[ja:ウェブアプリケーションパッケージガイドライン]]
 +
{{Accuracy|The file system layout is insufficient for more than one instance of a webapp.}}
 +
{{Package guidelines}}
  
This page describes how to package web application which tends to install into {{Ic|/srv/http}} (for example packages written in php, such as {{Pkg|phpmyadmin}} and {{Pkg|phpvirtualbox}}).
+
This page describes how to package web application.
  
 
==Directory structure==
 
==Directory structure==
Line 9: Line 11:
 
* {{Ic|/etc/webapps/''$pkgname''}}
 
* {{Ic|/etc/webapps/''$pkgname''}}
 
* {{Ic|/usr/share/webapps/''$pkgname''}}
 
* {{Ic|/usr/share/webapps/''$pkgname''}}
* {{Ic|/var/...}} (according to generic FHS conventions)
 
 
{{Ic|/usr/share/webapps/''$pkgname''}} files and/or directories should be symlinked into {{Ic|/var}} and {{Ic|/etc/}}.
 
 
{{Ic|/etc/webapps/''$pkgname''}} should contain some examples which helps to setup web-server to run this web application:
 
 
* {{Ic|/etc/webapps/''$pkgname''/apache.example.conf}}
 
* {{Ic|/etc/webapps/''$pkgname''/nginx.example.conf}}
 
* {{Ic|/etc/webapps/''$pkgname''/other-web-server.example.conf}}
 
 
==Install web application package==
 
 
===Install with Apache===
 
 
Install package
 
 
    # 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
 
 
Start server
 
 
    # systemctl start httpd
 
 
===Install with Nginx===
 
 
Install package
 
 
    # 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.
 
 
You may need configure [[Nginx#PHP implementation|FastCGI-PHP]], [[Nginx#CGI implementation|FastCGI-CGI]]
 
 
Start server
 
 
    # systemctl start <fastcgi>
 
    # systemctl start nginx
 

Latest revision as of 13:51, 18 August 2016

Tango-inaccurate.pngThe factual accuracy of this article or section is disputed.Tango-inaccurate.png

Reason: The file system layout is insufficient for more than one instance of a webapp. (Discuss in Talk:Web application package guidelines#)
Package creation guidelines

CLRCrossEclipseFree PascalGNOMEGoHaskellJavaKDEKernelLispMinGWNode.jsNonfreeOCamlPerlPHPPythonRubyVCSWebWine

This page describes how to package web application.

Directory structure

Layout example:

  • /etc/webapps/$pkgname
  • /usr/share/webapps/$pkgname