Installation: Stuck on "Welcome Page" no matter what |
[eluser]Unknown[/eluser]
Hey guys, First of all, I'd like to admit that I've read the posts that say that if you can't install CI blindfolded and with your arms tied behind your back, you shouldn't be trying to use it. I *get* how sad it sounds to be asking for help on the installation process, and if I weren't on hour #2 of battling with the "Welcome to CodeIgniter" page, I wouldn't be here. I'm using the (current) latest version of MAMP (1.9.4) and CodeIgniter (1.7.2) and I suspect that the problem is that I'm not setting up config.php correctly in the application folder. I've put everything that was in the unzipped folder directly into htdocs. In $config['base_url'] I've tried typing in "http://localhost:8888/", the physical path to htdocs "/Applications/MAMP/htdocs" and even tried "http://localhost:80/" which MAMP told me is the default Apache port. I've tried all the different possibilities for $config['uri_protocol'], and I've also added the "?" at the end of "index.php" for $config['index_page']. I've checked that there's no trailing slash for both $system_folder and $application_folder in "index.php". If any of you guys that know the CI installation backwards could spare a few minutes to help me figure this out, I'd really appreciate it. Thanks, Spot
[eluser]WanWizard[/eluser]
You don't need all that to get it working. Loading index.php after you've copied the CI zip into htdocs should be sufficient. If not, you have to check your webserver config. Begin by telling us what doesn't work, what error message you get, what's in the apache log, etc. Now we have to guess...
[eluser]mdvaldosta[/eluser]
Look in config/routes.php and in there there is a line that sets which controller to run when you go to the homepage. You can change this to another controller if you like. To access other pages on the site, by default for you, it's http://localhost:8888/index.php/controll...ethod_name You can, of course, remove the index.php from that but that's the way it is default. I hope that's what you're after.
[eluser]Unknown[/eluser]
WanWizard and mdvaldosta thank you for your replies. I apologise for being unwittingly vague in what the problem was. I thought that once I entered the "correct" information into config.php, that I would see a different page to the "Welcome to CodeIgniter" default. The problem was, however, that I hadn't fully grasped what CodeIgniter is. I'm now going through the tutorials, which is what I will in fact recommend to anyone that reads this thread and has the same problem as me, to do. Impressed with how swiftly the responses came guys. Thank you. |
Welcome Guest, Not a member yet? Register Sign In |