Midgard-apache2 version 8.09.6 - How to Download and Install on Mac OS X
Friday the 19th of March, 2010

    midgard-apache2  most recent diff


    version 8.09.6

      View the most recent changes for the midgard-apache2 port at: midgard-apache2.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for midgard-apache2.
      The raw portfile for midgard-apache2 8.09.6 is located here:
      http://midgard-apache2.darwinports.com/dports/www/midgard-apache2/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/midgard-apache2


      The midgard-apache2 Portfile 59796 2009-10-22 18:41:16Z jwa macports.org $

      PortSystem 1.0

      Name: midgard-apache2
      Version: 8.09.6
      Category: www
      Maintainers: jwa
      Description: A content management system
      Long Description: Midgard is a content management system platform using Apache, PHP and MySQL.
      Platform: darwin
      Homepage: http://www.midgard-project.org/

      Master Sites: http://www.midgard-project.org/midcom-serveattachmentguid-24c596b2bd5c11dea70c8902ea51e954e954/

      #use_bzip2 yes
      Checksums: md5 fd00e1351e8e9eedb4fe06931fd65205 sha1 bda7ba85871cfb68ad72d20acc3980b9cc607dee rmd160 14502c604281e92c961b1c72f090c1be5638e55d

      depends_lib port:midgard-core port:apache2 port:apr port:apr-util

      configure.args --sysconfdir=${prefix}/etc/midgard/ --with-apxs=${prefix}/apache2/bin/apxs --with-apr-config=${prefix}/bin/apr-1-config

      pre-destroot {
      file mkdir ${destroot}${prefix}/apache2
      file mkdir ${destroot}${prefix}/apache2/conf/extra
      file mkdir ${destroot}${prefix}/apache2/modules
      }

      destroot.violate_mtree yes
      #post-destroot {
      # xinstall -m 755 ${worksrcpath}/midgard.conf ${destroot}${prefix}/apache2/conf/extra
      #}

      post-install {
      ui_msg "======================== IMPORTANT ========================="
      ui_msg "Make sure the following exist in ${prefix}/apache2/conf/httpd.conf"
      ui_msg "In DSO Support section, i.e. LoadModule section"
      ui_msg " LoadModule php5_module modules/libphp5.so"
      ui_msg "DirectoryIndex section"
      ui_msg " DirectoryIndex to include index.php index.php5"
      ui_msg "AddType section"
      ui_msg " AddType application/x-httpd-php .php"
      ui_msg " AddType application/x-httpd-php-source .phps"
      ui_msg "In Supplemental configuration, add"
      ui_msg " Include conf/extra/midgard.conf"
      ui_msg "================================================================"
      }

      livecheck.type regex
      livecheck.url ${homepage}download
      livecheck.regex ${name}-(\[1-9\]+.\[0-9\]+.\[0-9\]+).tar.\[bg\]z

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/midgard-apache2
      % sudo port install midgard-apache2
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching midgard-apache2
      ---> Verifying checksum for midgard-apache2
      ---> Extracting midgard-apache2
      ---> Configuring midgard-apache2
      ---> Building midgard-apache2 with target all
      ---> Staging midgard-apache2 into destroot
      ---> Installing midgard-apache2
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using midgard-apache2 with these commands:
      %  man midgard-apache2
      % apropos midgard-apache2
      % which midgard-apache2
      % locate midgard-apache2

     Where to find more information:

    Darwin Ports



    Lightbox this page.