We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15575
    • 50 Posts
    Following the informations in my First Project post, I have been updating the site - basically changing the documents.

    I thought I would look deeper into this system by running on a local host. I have installed xampp 1.6.8 and I believe it is working correctly.

    I downloaded all the files by FTP from the web server to my computer into a folder modx, I then put this folder into xampp/htdocs but I can not access this folder. It comes up with a Server error, Error 500.

    Can someone please explain how I access the site locally?

    Keith
      Keith
      www.metamedia.gb.com
      MODx 1.0.5 // PHP 5.2.9 - CGI// MySQL 4.1.22 // Zeus- Linux //
      • 15575
      • 50 Posts
      Thanks - I will have a look at that.

      Keith
        Keith
        www.metamedia.gb.com
        MODx 1.0.5 // PHP 5.2.9 - CGI// MySQL 4.1.22 // Zeus- Linux //
        • 15575
        • 50 Posts
        I am afraid that I am struggling with this. A friend of mine had problems updating the pages with Manager so I am doing them. After advice from here that was not a problem. So I have a working site with an ISP. I thought that I would try and learn more about MODx and set that website up locally to work on my computer.

        I have installed xampp and that appears to be working as a localhost. I have downloaded all the files from the website and they are now in the followuing folder:

        C:\xampp\htdocs\modx

        I can access the.htaccess file and change it with Dreamweaver. There are 8 steps to move site to a new server can anyone run through them with me starting with .htaccess?

        Keith

          Keith
          www.metamedia.gb.com
          MODx 1.0.5 // PHP 5.2.9 - CGI// MySQL 4.1.22 // Zeus- Linux //
          • 15575
          • 50 Posts
          OK - I’ve worked through the steps but I am not sure that I have done it all correctly.

          Changing permissions I did in Safe Mode. I have also imported database under phpMyAdmin.

          I am at step 7 - Point your browser at http://yoursite.com/manager. I presume it is http://localhost/modx if so I am getting error 500.

          Where should I point the browser when it is on localhost?

          Keith
            Keith
            www.metamedia.gb.com
            MODx 1.0.5 // PHP 5.2.9 - CGI// MySQL 4.1.22 // Zeus- Linux //
            • 4310
            • 2,310 Posts
            http://localhost/modx
            would be right if your folder/site is named modx.
            Did you have FURL enabled when you copied the site?
            If so you’ll need to amend your .htaccess file to have something like :
            Options +FollowSymlinks
            RewriteEngine On
            RewriteBase /modx
              • 15575
              • 50 Posts
              David

              I have looked at your website where it says steep learning curve - it certainly is, but I’m still getting Error 500.

              In .htaccess I have:

              Options +FollowSymlinks
              RewriteEngine On
              RewriteBase /modx

              and

              # The Friendly URLs part
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule ^(.*)$ /modx/index.php?q=$1 [L,QSA]

              I save .htaccess and then go http://localhost/modx which is when I get the error. Should I be doing something else?

              At this stage I can not see how it picks up the database from phpMyAdmin. Thinking about that from config.inc.php where I have:

              $database_server = ’localhost/phpmyadmin’;

              Keith
                Keith
                www.metamedia.gb.com
                MODx 1.0.5 // PHP 5.2.9 - CGI// MySQL 4.1.22 // Zeus- Linux //
                • 4310
                • 2,310 Posts
                $database_server = 'localhost';
                

                Is usually correct.
                  • 15575
                  • 50 Posts
                  David

                  Thanks for your help. Changed to localhost still Error 500.

                  Keith
                    Keith
                    www.metamedia.gb.com
                    MODx 1.0.5 // PHP 5.2.9 - CGI// MySQL 4.1.22 // Zeus- Linux //
                    • 4310
                    • 2,310 Posts
                    Have you tried accessing the manager with the full url i.e.
                    http://localhost/modx/manager/index.php ?
                      • 3749
                      • 24,544 Posts
                      If Bunk58’s last suggestion didn’t work, let’s back up and make sure your XAMPP install is working.

                      Normally, you’d have xampp/htdocs/modx

                      Is that what you have?

                      If so,

                      1. Put a file called hello.html in that modx directory, with just <h1>HELLO!!!</h1> as content.
                      2. Rename .htaccess to ht.access
                      3. Point your browser at http://localhost/modx/hello.html

                      If you get the "hello" message, we’ll be sure that your XAMPP install is working and set up normally.

                      If that works, try Bunk58’s direct access to the manager again. Leave the ht.access file renamed. You shouldn’t need any .htaccess file at this point (and it doesn’t affect the manager anyway).

                      BTW, this just occurred to me, make sure the .htaccess you modified earlier isn’t the one in the Manager subdirectory. It should just be turning off the rewrite engine and shouldn’t ever need to be modified.
                        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