<div dir="ltr">More advice on the script at this point, my needs are met without a package. But packages exist in hardy and intrepid.<br><br>The drupal5 package in hardy is version 5.7 with known vulnerabilities. Current is 5.10<br>
The drupal6 package in intrepid is in disarray.<br><br>In a production environment you need both dns and apache stanzas and a reload. The apache reload must take place after the user space is set up.<br><br>The wwwconfig-common scripts are heavy and not intuitive. Even the matter of adding the user non-interactively is not obvious. I don't know of an addzone script for bind9 nor an add virtual server script for apache2.<br>
<br>But indeed, the number of users wanting to set up a drupal web site on their own machine is more much larger than  the number of sysadmins who would like to set up drupal sites quickly (although I am in the latter). Further the setup on their machine should be isomorphic to that on a shared server.<br>
<br>The current situation on Ubuntu is sufficiently difficult that many people ask me for instructions for XAMPP or WAMPP on that other operating system.<br><br>Easy integration with NetBeans would be another neat trick.<br>
<br>Jim<br><br><div class="gmail_quote">On Sat, Sep 13, 2008 at 1:46 PM, Henri Cook <span dir="ltr"><<a href="mailto:ubuntu-server@theplayboymansion.net">ubuntu-server@theplayboymansion.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  

<div bgcolor="#ffffff" text="#000000">
Are you looking for advice on the script, or the idea of including it
in server? It's a laudable utility script but it's not something that I
would think should be packaged (unless it's a package of its own and
what it does is very clearly marked) - I can't think of any other
examples of similar scripts and as a sysadmin I would not expect
something like this to restart apache (this may be a production server)
or bind9 or add zones/config etc - the scope for this is really a very
personal, dedicated system. Most production systems i've seen have
their owns methods for zone addition, mass apache virtual hosting and
very often change the root username to something like 'sysad' or
'admin' for added security. <br>
<br>
Does Drupal require its own username? I would generally install things
in ~henri/html/<a href="http://drupal.mydomain.com/public_html" target="_blank">drupal.mydomain.com/public_html</a> - and that's only unique
to my system, as far as i'm aware it's not a standard<br>
<br>
Hope this helps,<br><font color="#888888">
<br>
Henri</font><div><div></div><div class="Wj3C7c"><br>
<br>
Jim Tarvid wrote:
<blockquote type="cite">
  <div dir="ltr">Rough cut on an install script. usage install_drupal
user pass domain dbpass dbname<br>
The intent is to install drupal in user space such that <a href="http://domain/" target="_blank">http://domain/</a> brings
up Drupal's install screen.<br>
  <br>
This would allow users to design their website and prepare it for
uploading to a public server.<br>
  <br>
To do that<br>
1) add the user<br>
2) build the skeleton at /home/user<br>
3) download and install drupal 6.4 from <a href="http://drupal.org" target="_blank">drupal.org</a><br>
4) prep the drupal install tree<br>
5) fix ownership and permissions<br>
6) create the mysql user and database<br>
7) create the apache virtual config file and enable<br>
8) create the bind9 zone and add to named.conf.local<br>
9) add domain to /etc/hosts file<br>
10 reload bind9 and apache2<br>
  <br>
Some obvious improvements<br>
1) error check the parameters<br>
2) test existence before creating users, apache config files, bind
files, hosts modifications<br>
3) error checking and recovery<br>
  <br>
This could lead to an ubuntu package<br>
  <br>
I'd appreciate wisdom and advice.<br>
  <br>
  <br clear="all">
  <br>
-- <br>
  <a href="http://ls.net" target="_blank">http://ls.net</a><br>
  <a href="http://drupal.ls.net" target="_blank">http://drupal.ls.net</a><br>
  </div>
</blockquote>
</div></div></div>

</blockquote></div><br><br clear="all"><br>-- <br><a href="http://ls.net">http://ls.net</a><br><a href="http://drupal.ls.net">http://drupal.ls.net</a><br>
</div>