<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Sorry if I am trying to suggest things even if I am kind of new on
    9.0 and the new PBIs, but it seems to me that you need to add a
    custom script when starting stopping apache as well as when you add
    the configuration:<br>
    <br>
    something like (pseudocode):<br>
    INSTALLATION:<br>
     - Add config to Apache/PHP httpd.conf  and to MySQL (create the new
    user for phpMyAd)<br>
     - if Apache PBI exists, add same config changes to its httpd.conf<br>
    <br>
    STARTUP<br>
     - if Apache PBI exists, do not start Apache/PHP PBI<br>
    <br>
    <br>
    I would suggest to create a PBI with apache, mysql, php, phpMyAdmin,
    and add the two simple "IF"<br>
    <br>
    Maybe even check if apache or mysql are installed with a simple:<br>
     - `which mysql`<br>
     - `which httpd`<br>
    <br>
    Fabry<br>
    <br>
    <br>
    <br>
    <br>
    On 02/13/2012 12:40, Jeff wrote:
    <blockquote
      cite="mid:1329154805.84954.YahooMailNeo@web126001.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:arial,
        helvetica, sans-serif;font-size:10pt">
        <div><span>Thanks, I was able to build the PBI with Apache and
            PHP.</span></div>
        <div><br>
          <span></span></div>
        <div><span>The problem now is that I wanted to include the same
            services scripts as found in the Apache PBI for start up and
            other stuff.  Plus I need a custom config file for
            phpmyadmin for initial setup, and want to modify httpd.conf
            with a script to include an alias for phpmyadmin.<br>
          </span></div>
        <div><span><br>
          </span></div>
        <div><span>No big deal, but it occurred to me that running the
            Apache PBI and PhpMyAdmin PBI that also includes Apache,
            would conflict unless I configure it to listen on a
            different port, which is a pain.</span></div>
        <div><br>
          <span></span></div>
        <div><span>Right now, with the Apache PBI, you access the server
            at <a class="moz-txt-link-freetext" href="http://localhost/index.html">http://localhost/index.html</a>, so another server running
            would have to be <a class="moz-txt-link-freetext" href="http://localhost:8080/phpmyadmin">http://localhost:8080/phpmyadmin</a> or
            something like that.</span></div>
        <div><br>
          <span></span></div>
        <div><span>Is there another way to deal with that potential
            conflict?  What if the 2nd Apache installation used a
            virtual host setup - would that work?<br>
          </span></div>
        <div><br>
          <span></span></div>
        <div><span>If I want to include the services scripts and any
            other custom scripts, do I just add them in the pbi.conf?  I
            sort of concluded that by looking at pbi.conf for the Apache
            PBI.</span></div>
        <div><br>
          <span></span></div>
        <div><span>Maybe it would just be easier to add PhpMyAdmin to
            the Apache PBI. It might make more sense anyway, to include
            PHP, and possibly even MySQL, since most people will want
            those too.</span></div>
        <div><br>
          <span></span></div>
        <div><span>Just curious, if someone added PHP, etc to the Apache
            PBI environment, after the PBI was installed, what would
            happen to those additions when the PBI got updated?  <br>
          </span></div>
        <div><br>
          <span></span></div>
        <div><span>Thanks, <br>
          </span></div>
        <div><span><br>
          </span></div>
        <div><span>Jeff<br>
          </span></div>
        <div><br>
          <blockquote style="border-left: 2px solid rgb(16, 16, 255);
            margin-left: 5px; margin-top: 5px; padding-left: 5px;">
            <div style="font-family: arial, helvetica, sans-serif;
              font-size: 10pt;">
              <div style="font-family: times new roman, new york, times,
                serif; font-size: 12pt;">
                <div dir="ltr"> <font size="2" face="Arial">
                    <hr size="1"> <b><span style="font-weight:bold;">From:</span></b>
                    Ken Moore <a class="moz-txt-link-rfc2396E" href="mailto:ken@pcbsd.org"><ken@pcbsd.org></a><br>
                    <b><span style="font-weight: bold;">To:</span></b>
                    <a class="moz-txt-link-abbreviated" href="mailto:pbi-dev@lists.pcbsd.org">pbi-dev@lists.pcbsd.org</a> <br>
                    <b><span style="font-weight: bold;">Sent:</span></b>
                    Monday, February 13, 2012 9:55 PM<br>
                    <b><span style="font-weight: bold;">Subject:</span></b>
                    Re: [PC-BSD Pbi-dev] How to make a PBI with a
                    combination of ports?<br>
                  </font> </div>
                <br>
                On 02/13/2012 06:09, Hakisho Nukama wrote:<br>
                > Am 13. Februar 2012 10:21 schrieb Jeff<<a
                  moz-do-not-send="true"
                  ymailto="mailto:dejamuse@yahoo.com"
                  href="mailto:dejamuse@yahoo.com">dejamuse@yahoo.com</a>>:<br>
                >> I don't think Easy PBI is setup to work with
                metaports since as you say<br>
                >> they're just a collection of dependencies.<br>
                >><br>
                >> I couldn't find any metaport for Apache, PHP,
                and PhpMyAdmin, in any case.<br>
                >> I would have to make one.  I believe this is
                the way to do it:<br>
                >> /usr/ports/ports-mgmt/wanted-ports/<br>
                >><br>
                >> I could build the PBI manually without using
                Easy PBI, but I'm lazy and I<br>
                >> figure other people will want to combine
                existing ports into a single PBI at<br>
                >> some point as well.<br>
                >><br>
                >><br>
                >> ________________________________<br>
                >> From: arrowdodger<<a moz-do-not-send="true"
                  ymailto="mailto:6yearold@gmail.com"
                  href="mailto:6yearold@gmail.com">6yearold@gmail.com</a>><br>
                >> To: Jeff<<a moz-do-not-send="true"
                  ymailto="mailto:dejamuse@yahoo.com"
                  href="mailto:dejamuse@yahoo.com">dejamuse@yahoo.com</a>><br>
                >> Cc: "<a moz-do-not-send="true"
                  ymailto="mailto:pbi-dev@lists.pcbsd.org"
                  href="mailto:pbi-dev@lists.pcbsd.org">pbi-dev@lists.pcbsd.org</a>"<<a
                  moz-do-not-send="true"
                  ymailto="mailto:pbi-dev@lists.pcbsd.org"
                  href="mailto:pbi-dev@lists.pcbsd.org">pbi-dev@lists.pcbsd.org</a>><br>
                >> Sent: Monday, February 13, 2012 5:06 PM<br>
                >> Subject: Re: [PC-BSD Pbi-dev] How to make a PBI
                with a combination of ports?<br>
                >><br>
                >> On Mon, Feb 13, 2012 at 1:52 PM, Jeff<<a
                  moz-do-not-send="true"
                  ymailto="mailto:dejamuse@yahoo.com"
                  href="mailto:dejamuse@yahoo.com">dejamuse@yahoo.com</a>> 
                wrote:<br>
                >><br>
                >> In order to build a PBI for PhpMyAdmin, I need
                to include a webserver like<br>
                >> Apache, Nginx, or Lighttpd, and PHP.<br>
                >><br>
                >> It doesn't seem like EasyPBI is setup to build
                a PBI from multiple ports.<br>
                >><br>
                >> Can anyone explain how to do this?<br>
                >><br>
                >><br>
                >> Let me guess - you need to create meta-port for
                this. Meta-port is a simple<br>
                >> port, which doesn't install anything, but
                depends on some other ports.<br>
                >><br>
                >><br>
                >><br>
                >> _______________________________________________<br>
                >> Pbi-dev mailing list<br>
                >> <a moz-do-not-send="true"
                  ymailto="mailto:Pbi-dev@lists.pcbsd.org"
                  href="mailto:Pbi-dev@lists.pcbsd.org">Pbi-dev@lists.pcbsd.org</a><br>
                >> <a class="moz-txt-link-freetext" href="http://lists.pcbsd.org/mailman/listinfo/pbi-dev">http://lists.pcbsd.org/mailman/listinfo/pbi-dev</a><br>
                >><br>
                > Specify each additional port for your PBI in
                pbi.conf with following excerpt<br>
                > from
                <a class="moz-txt-link-freetext" href="http://wiki.pcbsd.org/index.php/PBI_Module_Builder_Guide">http://wiki.pcbsd.org/index.php/PBI_Module_Builder_Guide</a>
                and<br>
                > make sure a used variable is exported.<br>
                ><br>
                > # Ports to build before / after<br>
                > PBI_MKPORTBEFORE=""<br>
                > PBI_MKPORTAFTER="audio/esound x11-fonts/dejavu
                x11-themes/qtcurve-gtk2<br>
                > devel/gconf2 www/firefox-i18n"<br>
                > _______________________________________________<br>
                > Pbi-dev mailing list<br>
                > <a moz-do-not-send="true"
                  ymailto="mailto:Pbi-dev@lists.pcbsd.org"
                  href="mailto:Pbi-dev@lists.pcbsd.org">Pbi-dev@lists.pcbsd.org</a><br>
                > <a moz-do-not-send="true"
                  href="http://lists.pcbsd.org/mailman/listinfo/pbi-dev"
                  target="_blank">http://lists.pcbsd.org/mailman/listinfo/pbi-dev</a><br>
                <br>
                Hakisho Nukama is correct,<br>
                If a program has an additional dependency that is not
                listed in the port <br>
                (or you want to simply package another port with the
                program)  you just <br>
                need to add that port to the PBI_MKPORTAFTER line in
                pbi.conf within the <br>
                module. EasyPBI is not setup to edit the pbi.conf file
                yet (it is on my <br>
                list of things to add) so you will have to do it by
                hand.<br>
                <br>
                You may also run into programs that will not build as
                PBI's due to <br>
                missing build dependencies in the port, this can be
                solved the same way: <br>
                add the desired port to the PBI_MKPORTBEFORE line in
                pbi.conf in order <br>
                to ensure that the desired port is included with the
                main program before <br>
                the main program builds.<br>
                <br>
                -- <br>
                ~~ Ken Moore ~~<br>
                PC-BSD/iXsystems<br>
                <br>
                _______________________________________________<br>
                Pbi-dev mailing list<br>
                <a moz-do-not-send="true"
                  ymailto="mailto:Pbi-dev@lists.pcbsd.org"
                  href="mailto:Pbi-dev@lists.pcbsd.org">Pbi-dev@lists.pcbsd.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.pcbsd.org/mailman/listinfo/pbi-dev"
                  target="_blank">http://lists.pcbsd.org/mailman/listinfo/pbi-dev</a><br>
                <br>
                <br>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Pbi-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pbi-dev@lists.pcbsd.org">Pbi-dev@lists.pcbsd.org</a>
<a class="moz-txt-link-freetext" href="http://lists.pcbsd.org/mailman/listinfo/pbi-dev">http://lists.pcbsd.org/mailman/listinfo/pbi-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>