print Creating a Scorpio development environment

Accessing the website

If you have got this far - well done. It's been a fair amount of work, but hopefully it will all pay off!

The final step is to connect to our web site to make sure that the web side is configured properly. As we are using site.local and admin.site.local which are not valid domain names, we need to create hosts entries so that the OS knows where to route the requests. Fortunately this is very easy:

nano /etc/hosts

Add the following line:

127.0.0.1	site.local

Now save the changes (Ctrl+O Ctrl+X) and open your web browser.

If all has worked as it should you should see a test page from the framework when you visit http://site.local/ If not, or you have errors about permissions, you will need to ensure that the temp and logs folders are chmod'd to 777 and that Apache can write to the folders. If you did not disable selinux, then you will need to update the security context so that Apache can read the path /home/sites/scorpio and can write to temp and logs and additionally the config files in websites.

If you get PHP errors about 'mvcSession' could not be found, you have an error in your config.xml file under /websites/site.local. You are either missing the config file, or you have not specified the parent folder - which should be 'base'.

You can run some simple tests against this default page by adding any text you like after /home on the address bar e.g. http://site.local/home/some/additional/text. This will be displayed to you.

And that's it! Scorpio is up and running. You can now get on and build new components play with what is there (try adding a folder called 'views' to /websites/site.local, a sub folder called 'home' and a file named home.html.tpl and put any HTML you like in there and refresh http://site.local/.