This is on your own pc right?
What are you using? XAMPP, WAMP, etc?
Is your apache and mysql active.
Why using ports?
It should be http://localhost/directory structure/config.php
Or even better tweak the hosts file and redirects etc so that
yoursite.loc/appdata/config.php
I like to use .loc to show it my local, then I can port it to my .com later, that way I can run development site .dev etc.
I don't understand why the ports 7777 / you are looking for issues trying to manually configure it all up. Just install XAMPP and be done with it.
I did this long ago, but it should still apply: tutorial this setting up XAMPP.
Sidenote: you can't use preview and interact with database. Either have external website(to use preview), or export project to html5 on your local server(preview won't work here).
I also think c2 runs files from the temp folder. The easiest is setting up external website, the second easiest is using xampp or something similiar and runnig local server.