We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40722
    • 4 Posts
    Hi all, first post in the forums - so far I've always found answers but this time I can't! For the record I've got MODx Revo 2.2.4-pl and I know almost nothing about any of this server type stuff - I got as far as understanding html and css, that's about the limit for now - as they say 'Rome wasn't built in a day'!

    So the problem: I've just uploaded my site from test server to the live server. All I'm getting is 500 errors on everything from the homepage through /manager/ etc. I didn't realize originally that I had to clear the cache and turn off FURLS though. So I deleted the cache folder contents on the live server, turned off FURLS stuff (I think but now I'm not entirely sure which settings was?) on the test server and re-created a FURL free database on the live server. I couldn't re-run setup because it deleted itself after I originally installed it on the test server... so I found the setup folder in the download and uploaded that... but it won't run past choosing the 'upgrade installation' option because of the 500 error.

    There are a number of points that I just don't understand from reading the documentation & forum advice and these may be the culprit(s) too:

    1)After uploading the database I went to check the 'workspaces' path, as described in the documentation. Mine says {core path}. I have no idea if this is the same as it was before, as the documentation says it should be. Or what I should change it to if not? This kind of leads into my next bit of confusion.

    2)Config.php's of various descriptions. When changing these files I'm not entirely sure what I should change them to. I've put the entries in as 'http://www.mydomain.com/whatever comes after that/'... Is this not right? I have uploaded into the root directory of mydomain.com. Should it, therefore, read 'http://mydomain.com/etcetc/ and then let .htaccess do the work on the www prefix? I'm using the root because I hate messing around with .htaccess - it never worked right for me when I've changed it before so was hoping to use the 'vanilla' Modx one (bar the www. extension - that bit I do understand!) tongue

    I also came across someone's posting where they used 'public_html/etcetc/ instead. Should I change those entries to that then?

    3)Also, I don't really understand the section about file permissions. The documentation suggests that "Some of the folders need to be may writable". Which ones? I haven't a clue! I've even less of an idea how to find out whether the permissions need to be any different from my testing environment... which was in xampp, no idea what to look for on the hosts server in terms of what numbers they ought to be (though I know how to change them in Filezilla)

    Finally, when setting up the database stuff myPhp thingy adds a "prefix_", based on the cpanel username, to the database's and the user's names. I've added that in so that they read (as an example) 'myprefix_mydatabase' and 'myprefix_myusername' in the config.inc.php. Is this right?

    Thanks in advance for any help/advice you guys can come up with since I'm completely stumped & have no idea where to go from here.
    Ben
    • Who is the hosting company?

      Can you try to make a clean installation of a new MODx? It might be easier to get a database backup of your development installation and import that into a new installation's database on the production server.
        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
        • 40722
        • 4 Posts
        Hi, thanks for your reply - yeah I kinda figured a new install might be the easiest option - got in such a mess with that first upload I have no idea where to begin fixing it!

        I've done a fresh install into the root of the server, same as before, but this time using a new database (just in case I can salvage anything from before) and I've got into the manager- hooray that's progress! It's even seeing the developement .css files so that's a start. Now what should I do exactly? If I import the backup of the development database its gonna go and do something mental again isn't it?
          • 40722
          • 4 Posts
          You know what - I hadn't added much final copy / other content to the site yet. I've still got all the development stage files and stuff and there was only one basic template on which everything else was built, with some TV's for extra bits and pieces in certain places.

          It'd do me some good to redo it all since its my first MODx site so practice makes perfect! Now I know how it all works, I know what I want to do and how to do it its not gonna take too long. At least I know Revo works with the server now, that was what was freaking me out mostly.

          Either way - thanks for the help and if you have any pointers for the next time I try and upload something (eg what the .php paths should look like) that'd be a real help.
            • 3749
            • 24,544 Posts
            My guess is that the .htaccess file was still there on the remote site. Most 500 errors are due to something in .htaccess, and MODX definitely won't work with FURLs turned off and the .htaccess file still rewriting URLs.


            ------------------------------------------------------------------------------------------
            PLEASE, PLEASE specify the version of MODX you are using.
            MODX info for everyone: http://bobsguides.com/modx.html
              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
            • Sure it will. All the friendly URLs setting does is cause MODx to generate friendly URLs. It still understands the index.php?q=alias.html that the .htaccess rewrite gives it.
                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
                • 3749
                • 24,544 Posts
                No kidding? All this time I never knew that.

                Of course if the rewrite rule or Rewrite Base are wrong, turning off FURLs in System Settings isn't going to help -- so no FURLs, no .htaccess is still a good rule for troubleshooting.


                ------------------------------------------------------------------------------------------
                PLEASE, PLEASE specify the version of MODX you are using.
                MODX info for everyone: http://bobsguides.com/modx.html

                  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
                  • 40722
                  • 4 Posts
                  Well, I did try adding the # comment things back onto the friendly url part of the .htaccess, that didn't work.Changed its name after that, pretend it isn't there... didn't work either!

                  I reckon I got all the config.php paths messed up. Perhaps I'll go have a look at them on the clean install so I know for next time - if/when I get a chance

                  Sites coming along well now at least!