<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alessandro.delgallo.net//index.php?action=history&amp;feed=atom&amp;title=Webapp-config</id>
	<title>Webapp-config - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alessandro.delgallo.net//index.php?action=history&amp;feed=atom&amp;title=Webapp-config"/>
	<link rel="alternate" type="text/html" href="https://wiki.alessandro.delgallo.net//index.php?title=Webapp-config&amp;action=history"/>
	<updated>2026-09-15T07:01:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.alessandro.delgallo.net//index.php?title=Webapp-config&amp;diff=3751&amp;oldid=prev</id>
		<title>Porcelinux: Created page with 'Actually this page was entirely copied from: http://www.elvanor.net/wiki/Webapp-config  ( A guy like me I suppose)  = General =  * webapp-config is a Gentoo only tool to allow a ...'</title>
		<link rel="alternate" type="text/html" href="https://wiki.alessandro.delgallo.net//index.php?title=Webapp-config&amp;diff=3751&amp;oldid=prev"/>
		<updated>2010-11-09T13:13:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;Actually this page was entirely copied from: http://www.elvanor.net/wiki/Webapp-config  ( A guy like me I suppose)  = General =  * webapp-config is a Gentoo only tool to allow a ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Actually this page was entirely copied from: http://www.elvanor.net/wiki/Webapp-config  ( A guy like me I suppose)&lt;br /&gt;
&lt;br /&gt;
= General =&lt;br /&gt;
&lt;br /&gt;
* webapp-config is a Gentoo only tool to allow a single web applications to be correctly installed into multiple virtual hosts. This is nice as it allows the code to remain on a standard, Portage managed place while you can easily deploy your web applications into production.&lt;br /&gt;
&lt;br /&gt;
* Currently the way it works is by creating a directory corresponding to the application inside the specified virtual host. By default it will be installed in /var/www/&amp;lt;virtual_host_name&amp;gt;/htdocs; you can configure that by editing /etc/vhosts/webapp-config. I use the following convention:&lt;br /&gt;
&lt;br /&gt;
 vhost_root=&amp;quot;/srv/${vhost_subdomain_2}.${vhost_subdomain_1}/&amp;quot;&lt;br /&gt;
 vhost_htdocs_insecure=&amp;quot;./&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* In /etc/vhosts/webapp-config, you need to have a vhost_hostname variable that can conform to a fully qualified domain, eg localhost won't work. Put something like &amp;quot;elvanor.net&amp;quot; there.&lt;br /&gt;
&lt;br /&gt;
* The only problem is that webapp-config always creates icons, error, and cgi-bin directories in the virtual host directory if they are not there. I would prefer that not to happen.&lt;br /&gt;
&lt;br /&gt;
= Installing, checking =&lt;br /&gt;
&lt;br /&gt;
* Typical installation:&lt;br /&gt;
&lt;br /&gt;
 webapp-config -I -h shoopz.com -d wordpress wordpress 2.7.1&lt;br /&gt;
&lt;br /&gt;
* To check what are the current installations of a given application (you can optionally specify a version):&lt;br /&gt;
&lt;br /&gt;
 webapp-config --li wordpress 2.8&lt;br /&gt;
&lt;br /&gt;
* To check unused installs (very useful):&lt;br /&gt;
&lt;br /&gt;
 webapp-config --lui wordpress&lt;br /&gt;
&lt;br /&gt;
= Updating =&lt;br /&gt;
&lt;br /&gt;
* When you need to update a web application, use the -U switch, eg:&lt;br /&gt;
&lt;br /&gt;
 webapp-config -U -h elvanor.net -d phpmyadmin phpmyadmin 2.11.5&lt;br /&gt;
&lt;br /&gt;
* If you use a directory different that the application name, don't forget to change that. However note that by convention that should not happen.&lt;br /&gt;
&lt;br /&gt;
 webapp-config -U -h www.elvanor.net -d www/mediawiki mediawiki 1.13.3&lt;br /&gt;
&lt;br /&gt;
== Important warnings ==&lt;br /&gt;
&lt;br /&gt;
* Updating a web-application can sometimes remove the configuration files! Be sure to systematically check (this is the case with Wordpress, although it seems to be a bug). Also, any changes to the DB must usually be done manually.&lt;br /&gt;
* '''emerge --depclean''' will remove *installed* versions of a webapp package if a newer one has been already merged! Thus update all your web-applications before running emerge --depclean.&lt;br /&gt;
* Running webapp-cleaner should also be done before emerge --depclean.&lt;br /&gt;
&lt;br /&gt;
= Cleaning =&lt;br /&gt;
&lt;br /&gt;
* The application webapp-cleaner can be used to remove old versions of an webapp package.&lt;br /&gt;
* Manual removal of a web-app (there may be some leftover files):&lt;br /&gt;
&lt;br /&gt;
 webapp-config -C -h shoopz.net -d bugzilla bugzilla 3.0.5&lt;/div&gt;</summary>
		<author><name>Porcelinux</name></author>
	</entry>
</feed>