We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3716
    • 6 Posts
    I have downloaded the zip file for MODX but how do I install?
    The file has no quick install icon inside.

    I’m not a coder by the way so sorry if I come over as a bit stupid.
    I have been searching for a tidy looking CMS to develop some sites done with Serif in order to be able to allow a degree of client/user management.
    In particular by way of letting ’clients’ or others remotely change page content.

    MODX seems to be the most well presented out of all the ones I’ve looked at and I’m eager to get started.

      • 26931
      • 2,314 Posts
        • 3716
        • 6 Posts
        Sharkbait
        Thanks for the advice. (I was expecting it to be a downloadable and runable program from my PC).
        i.e click icon and MODX starts - any work done on it then uploaded to a server/host or website.
        As I said I am not a coder and have a lot to learn.

        I think I understand how to install MODX now thanks to your pointers.
        However the problem I am having is getting a bit complicated for me now.

        Originally I was using Serif to design web sites which I have been running. Dead easy - all done for me (including built in FTP upload). The opportunity to design a car sales room website arose which meant I had to look into Client Controlled Systems so that the client can update new and sold cars from his own PC.

        My intention was to combine a php Gallery within CMS sales pages within or linked to my Serif designed site.

        Taking advice from Serif Forums I was told to use a local server (Apache/XAMPP version 1.7.1) to test any CMS which I chose/ build.
        I have now installed XAMPP / FileZilla and downloaded MODX to my harddrive.

        1. I found the basic instructions regarding FileZilla on XAMPP control panel really difficult to follow at first - I think because the English wasn’t perfect as much as anything.
        2. When I managed to understand I followed the instructions but can not see how to upload MODX to localhost using Filezilla.

        I’ve used filezilla before with few problems when having trouble with the Serif FTP client but since uninstalled it and now it doesn’t look the same.


        Basically I would just like to know how to get a working version of MODX loaded onto my localhost so that I can practice building these CMS pages.

        Sorry to be any burden.




          • 26931
          • 2,314 Posts
          Hi,

          ...no burden at all smiley

          Basically I would just like to know how to get a working version of MODX loaded onto my localhost so that I can practice building these CMS pages.


          i use XAMPP as well, so for every project i first create a new folder with the projects-name in XAMPP -> htdocs -> "yournewprojectfolder" (put your downloaded MODx-files in there) , after that create a database using phpmyadmin...then install MODx, after that work on your site and when its all finished transfer your files with an ftp-program to your live server, save an sql-file from your local database ( Tools -> Backup) and import it to your remote database...basically follow the instructions from the link below

          http://wiki.modxcms.com/index.php/Moving_Site_To_Another_Location

          it’s really easy once you’ve got the hang of it

          hope i could help a bit, j
            • 3749
            • 24,544 Posts
            Quote from: BOBBERATEC at Jul 25, 2009, 10:36 AM

            I’ve used filezilla before with few problems when having trouble with the Serif FTP client but since uninstalled it and now it doesn’t look the same.
            Basically I would just like to know how to get a working version of MODX loaded onto my localhost so that I can practice building these CMS pages.
            The suggestion to use FileZilla for FTP means for a remote site. On localhost, you’ll never need FTP, simply copy the files (in fact, you should be able to just unzip the modx .zip file in the root directory of your local MODx site -- e.g. c:\xampp\htdocs\mysite\ ).

            Then once you’ve created the DB and the config.inc.php file, type localhost\mysite\install into the address window of your browser and you should be in business.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 3716
              • 6 Posts
              Thanks to you both for your help so far.
              I finally got the MODx installation pages running after a few trials and errors with the local database creation.

              However when the instalation checklist appeared I was prompted to enter the code (shown at foot of post) into ’manager/config.inc.php’

              ’config.inc.php’ was a folder I created in ’includes/manager’ as per instruction.

              I didn’t really know how to save it so I entered into a notepad doc.

              I then clicked okay and got the following message in red and which I could not return from.
              I thought I was getting there but I’m stumped again.

              Warning: include_once(config.inc.php) [function.include-once]: failed to open stream: No such file or directory in D:\Program Files\XAMPP\xampp\htdocs\carsalespages\manager\index.php on line 127

              Warning: include_once() [function.include]: Failed opening ’config.inc.php’ for inclusion (include_path=’D:/Program Files/XAMPP/xampp/htdocs/carsalespages/manager/includes/’) in D:\Program Files\XAMPP\xampp\htdocs\carsalespages\manager\index.php on line 127

              Warning: include_once(MODX_BASE_PATHmanager/includes/extenders/dbapi..class.inc.php) [function.include-once]: failed to open stream: No such file or directory in D:\Program Files\XAMPP\xampp\htdocs\carsalespages\manager\includes\document.parser.class.inc.php on line 39

              Warning: include_once() [function.include]: Failed opening ’MODX_BASE_PATHmanager/includes/extenders/dbapi..class.inc.php’ for inclusion (include_path=’D:/Program Files/XAMPP/xampp/htdocs/carsalespages/manager/includes/’) in D:\Program Files\XAMPP\xampp\htdocs\carsalespages\manager\includes\document.parser.class.inc.php on line 39
              Could not load DBAPI class.


              Original text I was told to copy to ’manager/config.inc.php’ - I’ve edited some of it in case it provides too much public detail regarding passwords etc

              <?php
              /**
              * MODx Configuration file
              */
              $database_type = ’mysql’;
              $database_server = ’localhost’;
              $database_user = ’root’;
              $database_password = edited
              $database_connection_charset = ’utf8’;
              $database_connection_method = ’SET CHARACTER SET’;
              $dbase = ’`modx`’;
              $table_prefix = ’modx’;
              error_reporting(E_ALL & ~E_NOTICE);

              $lastInstallTime = 1248746284;

              $site_sessionname = ’edited’;
              $https_port = ’edited’;

              // automatically assign base_path and base_url
              if(empty($base_path)||empty($base_url)||$_REQUEST[’base_path’]||$_REQUEST[’base_url’]) {
              $sapi= ’undefined’;
              if (!strstr($_SERVER[’PHP_SELF’], $_SERVER[’SCRIPT_NAME’]) && ($sapi= @ php_sapi_name()) == ’cgi’) {
              $script_name= $_SERVER[’PHP_SELF’];
              } else {
              $script_name= $_SERVER[’SCRIPT_NAME’];
              }
              $a= explode("/manager", str_replace("\\", "/", dirname($script_name)));
              if (count($a) > 1)
              array_pop($a);
              $url= implode("manager", $a);
              reset($a);
              $a= explode("manager", str_replace("\\", "/", dirname(__FILE__)));
              if (count($a) > 1)
              array_pop($a);
              $pth= implode("manager", $a);
              unset ($a);
              $base_url= $url . (substr($url, -1) != "/" ? "/" : "");
              $base_path= $pth . (substr($pth, -1) != "/" && substr($pth, -1) != "\\" ? "/" : "");
              // assign site_url
              $site_url= ((isset ($_SERVER[’HTTPS’]) && strtolower($_SERVER[’HTTPS’]) == ’on’) || $_SERVER[’SERVER_PORT’] == $https_port) ? ’https://’ : ’http://’;
              $site_url .= $_SERVER[’HTTP_HOST’];
              if ($_SERVER[’SERVER_PORT’] != edited)
              $site_url= str_replace(’:’ . $_SERVER[’SERVER_PORT’], ’’, $site_url); // remove port from HTTP_HOST Â
              $site_url .= ($_SERVER[’SERVER_PORT’] == 80 || (isset ($_SERVER[’HTTPS’]) && strtolower($_SERVER[’HTTPS’]) == ’on’) || $_SERVER[’SERVER_PORT’] == $https_port) ? ’’ : ’:’ . $_SERVER[’SERVER_PORT’];
              $site_url .= $base_url;
              }

              if (!defined(’MODX_BASE_PATH’)) define(’MODX_BASE_PATH’, $base_path);
              if (!defined(’MODX_BASE_URL’)) define(’MODX_BASE_URL’, $base_url);
              if (!defined(’MODX_SITE_URL’)) define(’MODX_SITE_URL’, $site_url);
              if (!defined(’MODX_MANAGER_PATH’)) define(’MODX_MANAGER_PATH’, $base_path.’manager/’);
              if (!defined(’MODX_MANAGER_URL’)) define(’MODX_MANAGER_URL’, $site_url.’manager/’);

              // start cms session
              if(!function_exists(’startCMSSession’)) {
              function startCMSSession(){
              global $site_sessionname;
              session_name($site_sessionname);
              session_start();
              $cookieExpiration= 0;
              if (isset ($_SESSION[’mgrValidated’]) || isset ($_SESSION[’webValidated’])) {
              $contextKey= isset ($_SESSION[’mgrValidated’]) ? ’mgr’ : ’web’;
              if (isset ($_SESSION[’modx.’ . $contextKey . ’.session.cookie.lifetime’]) && is_numeric($_SESSION[’modx.’ . $contextKey . ’.session.cookie.lifetime’])) {
              $cookieLifetime= intval($_SESSION[’modx.’ . $contextKey . ’.session.cookie.lifetime’]);
              }
              if ($cookieLifetime) {
              $cookieExpiration= time() + $cookieLifetime;
              }
              if (!isset($_SESSION[’modx.session.created.time’])) {
              $_SESSION[’modx.session.created.time’] = time();
              }
              }
              setcookie(session_name(), session_id(), $cookieExpiration, MODX_BASE_URL);
              }
              }
              ?>

















                • 3716
                • 6 Posts
                I have tried to do it again.

                On the connection information page of the MODX installation I am entering ’modx’ as the name of the database.

                This is the name I have given the database on the local server and although it worked the first time after some trial and error it is now (this time) reporting a failed action with the words - failed, could not create database.

                This is despite the fact that the database DOES exist and it worked the first time.

                  • 26931
                  • 2,314 Posts
                  ’config.inc.php’ was a folder I created in ’includes/manager’ as per instruction.

                  it’s not a folder, but a file in ’manager/includes’. normally it will be created automatically in the instalation process (with all the database details in it)
                    • 3749
                    • 24,544 Posts
                    Wronglocation. It should be ’manager/includes/config.inc.php’
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 3716
                      • 6 Posts
                      BOBRAY & SHARKBAIT

                      Thank you very much for talking me through this.
                      I think i’m up and running with modx now.

                      Thanx guys