0

I am thinking i need to re install magento. It was installed on a subdomian folder with a subdomain, then when we wanted to go live to the tld, had trouble, and ended up just copying the install files and folders to the domain /public_html

if a re install is recommended, is it ok to install in on a subdomain test, then edit base urls and go live with the top level domain?d

Thanks! Jack

1 Answer 1

0

Which steps did you take to begin with? Using productive or development mode?

First off I'd recommend clearing the cache after you changed the base url (Did you change it directly in the database or via command line?)

php bin/magento cache:flush

14
  • installed in test.example.com production mode. changed base urls at /admin123. i have been disabling and clearing cache after each change to test. I am just adequately competent at cli and db management.
    – Jack
    Oct 19, 2018 at 22:38
  • Alright. I haven't changed the base url on an production enabled store yet but I assume you'll have to go the full way in order to make it work: php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy If you need additional images beside english you will have to add them with the deploy command. For example with the spanish language: php bin/magento setup:static:deploy en_US es_ES
    – muhkuh2005
    Oct 19, 2018 at 22:43
  • are these cli commands? this install is on a cpanel server
    – Jack
    Oct 19, 2018 at 22:51
  • Yes they are. If you cannot run command line commands you will either have to ask your admin to do it for you, or pregenerate everything on another computer and upload it. Edit: Also see Magento Documentation on static file deployment ("Run all Magento CLI commands as the Magento file system owner.") devdocs.magento.com/guides/v2.1/config-guide/cli/…
    – muhkuh2005
    Oct 19, 2018 at 22:54
  • I do have access to cli using putty. log in as root? and just run these commands? or do i have to edit files?
    – Jack
    Oct 19, 2018 at 22:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.