CI + Leopard + htaccess - index.php = Impossible? |
[eluser]louis w[/eluser]
I am on 10.5.2 and it works fine. My .htaccess is: Code: RewriteEngine on I took out the / before index.php because I am not serving code igniter at the document root (my index.php is located at http://localhost/something/index.php). Also, your index_page should be blank. Code: $config['index_page'] = "";
[eluser]Mirage[/eluser]
Quote: This has me believe that your mod_rewrite process isn't working right. I think what you're seeing is the Error document. Try - * Removing that directive and see what's going on then * Turn on debugging in your mod_rewrite block and tail the output Let us know what you find. Cheers!
[eluser]louis w[/eluser]
Try downloading and installing MAMP. This is what I use. Out of the box no customization w/ added htaccess.
[eluser]Mirage[/eluser]
Well - that'd be kinda like shooting sparrows with a bazooka. :-)
[eluser]louis w[/eluser]
But it kills em ![]() I guess I just do not like to deal with apache config. I used to do it locally, but find it so much easier to manage w/ MAMP for local dev. It was more of a longterm solution, which would also help out the current problem.
[eluser]TheLoops[/eluser]
[quote author="CI Mirage" date="1211312910"] Quote: This has me believe that your mod_rewrite process isn't working right. I think what you're seeing is the Error document. Try - * Removing that directive and see what's going on then * Turn on debugging in your mod_rewrite block and tail the output Let us know what you find. Cheers![/quote] I removed it and am still getting the same (CI-generated) 404. [quote author="louis w" date="1211313009"]Try downloading and installing MAMP. This is what I use. Out of the box no customization w/ added htaccess.[/quote]I'll try that.
[eluser]TheLoops[/eluser]
Okay, I installed MAMP. Now when accessing my local page without index.php I'm getting this: Code: An Error Was Encountered I assume that MAMP reset my MySQL databases, hence the error. (luckily no serious stuff in there) But at least the htaccess now seems to work properly. Thanks a lot for your help! :coolsmirk:
[eluser]louis w[/eluser]
You need to migrate your db. MAMP uses it's own instance of mysql and apache. Did you do that? It comes pre-installed with phpMyAdmin which you an access from the start page.
[eluser]Chris Newton[/eluser]
I use MAMP pro... oh man was it worth the money. Mamp by itself is fine too, just didn't have the full set of features I needed.
[eluser]TheLoops[/eluser]
[quote author="louis w" date="1211339372"]You need to migrate your db. MAMP uses it's own instance of mysql and apache. Did you do that?[/quote]Nope, how do you do that? (I'm also getting some error for a likely misconfiguration of my mysql socket, which I had solved with my former installation of mysql.) |
Welcome Guest, Not a member yet? Register Sign In |