CodeIgniter Forums
how to config in WAMPSERVER - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: how to config in WAMPSERVER (/showthread.php?tid=421)



how to config in WAMPSERVER - aafzal - 12-02-2014

Hello,

I just install it in my wampserver and it runs there quite nicely.

1. but i couldn't understand where to start and how to start a new project?
2. what would be its 'base_url' variable? in a local server environment.


RE: how to config in WAMPSERVER - includebeer - 12-02-2014

The base url would be something like http://localhost/my_new_web_app

If you don't know where to start, maybe you should start here : http://www.codeigniter.com/user_guide/tutorial/index.html


RE: how to config in WAMPSERVER - Thyrosis - 12-02-2014

Regarding the base_url:

I like to work my projects based on the URL that they'll be running on. Say you're developing a new version of codeigniter.com. I would then change my local hosts-file, so that codeigniter.com would point to 127.0.0.1. Then change the Apache settings in the WAMP server, so that it knows that when you type in codeigniter.com in your browser (which is redirected to your local WAMP server by the hosts file) it needs to direct you to the correct htdocs.

In CI, you can then set codeigniter.com as base_url.

Added bonus: When you upload the project to the final destination, you don't need to change this value Smile


RE: how to config in WAMPSERVER - includebeer - 12-02-2014

I do easier than that. I just put "/" or the subdirectory if it has one, like "/my_new_web_app". Then you don't need to mess with your host file and it works on any server.


RE: how to config in WAMPSERVER - Hobbes - 12-02-2014

or you could leave that option empty, which tells CI to figure it out on it's own. Reducing the hassle all together.