• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with MAMP

#1
[eluser]Unknown[/eluser]
Hey all, just got my first mac the other day. I've got a slight problem with MAMP and CI. When I start a CI application it finds the welcome controller fine so I'm guessing its not the routing. However, when I go index.php/posts/index I just get a blank page with no errors, I've made the controller and views. I then fiddled with the config file for an hour with no luck, so I removed index.php with a .htaccess file and now when I search for my controller it's trying to take my to posts/index as directories. I have the rewrite_module uncommented in my httpd.conf.

I've searched the forum and tried many things in my base_url such as http://localhost/~John/myapp/, still no luck. I have made the ports default so I don't need to use 8888.

Anyone have any ideas?

#2
[eluser]GSV Sleeper Service[/eluser]
from my experience with CI, a completely blank page sometimes means a php syntax error in your controller or view.
you can check the syntax by running
Code:
php -l /path/to/your/controller.php
from the terminal.

#3
[eluser]Unknown[/eluser]
Thanks for the reply, I started again and it seems to work now. Is there some sort of reason why on windows CI will tell me I've got a parse error but so far it won't on mac. Now I've just gotta get CocoaMySQL working.

#4
[eluser]jbowman[/eluser]
windows isn't as case sensitive as *nix/mac, that's usually the problem.

Find your apache error log and check it after the failed requests to get the error message supplied by php


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.