Search code examples
phpcodeigniterpyrocms

Setting up pyrocms/codeigniter on localhost


I am having trouble getting a project to work that I have inherited and not setup myself. I install the DB and make sure the file/folder permissions are correct -- but I am getting this error when I try to get to the local site -

This domain is not set up correctly. Please go to http://localhost/myproject/sites and log in to add this site.

I get that error again when I go to that URL... so not exactly helpful on 'adding sites'.

Is there any way to setup a local site in the database manually without using the installer?


Solution

  • Check the field "domain" in the table "core_sites" in your PyroCMS DB. This field should be set to the domain you're open the website on.

    This is usually caused if you're installing PyroCMS through a different URL, than you use to open the website.

    e. g.

    install through http://dev-server/website/pyrocms/installer, but call the website on http://pyrodev.local because you've set up a virtual host and corresponding DNS entries.