We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30045
    • 26 Posts
    I’ve done a number of modx external server installs. now I’m trying to set up my own local dev environment, via MAMP pro on the mac. however on opening the install page all I’m getting is..

    "; exit; } $moduleName = "MODx"; $moduleVersion = "0.9.6.1"; $moduleSQLBaseFile = "setup.sql"; $moduleSQLDataFile = "setup.data.sql"; $moduleSQLUpdateFile = "setup.updates.sql"; $moduleChunks = array (); // chunks - array : name, description, type - 0:file or 1:content, file or content $moduleTemplates = array (); // templates - array : name, description, type - 0:file or 1:content, file or content $moduleSnippets = array (); // snippets - array : name, description, type - 0:file or 1:content, file or content,properties $modulePlugins = array (); // plugins - array : name, description, type - 0:file or 1:content, file or content,properties, events,guid $moduleModules = array (); // modules - array : name, description, type - 0:file or 1:content, file or content,properties, guid $moduleTemplates = array (); // templates - array : name, description, type - 0:file or 1:content, file or content,properties $moduleTVs = array (); // template variables - array : name, description, type - 0:file or 1:content, file or content,properties $errors= 0; // get post back status $isPostBack = (count($_POST)); $action= isset ($_GET[’action’]) ? trim(strip_tags($_GET[’action’])) : ’language’; // make sure they agree to the license if (!in_array($action, array (’language’, ’welcome’, ’license’))) { if (!isset ($_POST[’chkagree’])) $action= ’license’; } include (’header.php’); if (!@include (’action.’ . $action . ’.php’)) { die (’Invalid install action attempted. [action=’ . $action . ’]’); } include (’footer.php’); ?>

    I’ve set up a dbase via mphpadmin, but i don’t get a chance to connect with it.
    i’m reasonably savvy with xhtml and css but not php.


    any ideas anyone?


    TIM




      one planet, one chance
      • 30045
      • 26 Posts
      following up.. I’m also getting the same problem with XAMPP, and on other (shock) CMS’s. FYI - am actually using MAMP Pro, modx-0961p2. must be something realy stoopid right??
        one planet, one chance
        • 30045
        • 26 Posts
        ok, the monologue continues..


        for anyone who’s interested
        php rendering problem solved: just opening the install/index.php file doesn’t do it - needs to be pathed thus:

        http://localhost:8888/modx-0961p2/install/index.php

        answer found on the MAMP forum (shoulda been in the documentation though...


          one planet, one chance
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I always set my MAMP ports to the Apache and MySQL defaults (default Apache port is 80). The reason MAMP comes with custom port settings is so you can have the built-in OS X web environment running (Web Sharing in system preferences) at the same time. I don’t use that, so setting my MAMP installation to use port 80 avoids that nuisance.

          MODx can’t be expected to document every possible server configuration; it’s presumed that the user has a working server environment to begin with.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org