Running Codeigniter on localhost

by Cash37
10 replies
I tried running my codeigniter application on WAMP and it would not work. Im about to try Xampp, but does anyone have any tricks or tips to do this effectively?!
#codeigniter #localhost #running
  • Profile picture of the author limcode
    Does localhost run smoothly? I guess that there is some problem with your localhost , not Codeiginiter. Please try to re-install WAMP or XAMP first to check localhost run well, and test Codeigniter later.
    {{ DiscussionBoard.errors[3331333].message }}
    • Profile picture of the author Cash37
      Originally Posted by limcode View Post

      Does localhost run smoothly? I guess that there is some problem with your localhost , not Codeiginiter. Please try to re-install WAMP or XAMP first to check localhost run well, and test Codeigniter later.
      I had a forum running just fine on my localhost but the codeigniter program wont load at all
      {{ DiscussionBoard.errors[3331529].message }}
  • Profile picture of the author Tim Brownlaw
    Originally Posted by Cash37 View Post

    I tried running my codeigniter application on WAMP and it would not work. Im about to try Xampp, but does anyone have any tricks or tips to do this effectively?!
    It should run "out of the box".
    I've had it running on wamp without an probs but you've mentioned you are trying to access it via "localhost" on your installation...

    Which means it should be installed under c:\wamp\www

    So question time... before you installed CI, when you typed on localhost, did you get the test page?

    Make sure you have WampServer Running via - Start ->Programs -> WampServer -> Start Wampserver.

    When you type in localhost in your browser, what do you see?

    I'll leave it there for now.... Actually I had better go and try it under c:\wamp\www right now just to make sure there are no traps.

    Update: It works for me!

    As I develop with CI under Apache on Linux, I just create virtual hosts, which you can also do under WAMP...

    I've written a "how to" guide on installing WAMP and setting up Virtual hosts, ie, you can just make up domain names and run them locally.

    Oh and I do write a little "fluffy" in my guides, just to warn you!

    If you are interested, let me know.

    It's great fun setting up blogs, test scripts etc on a "local" site to test things out.

    Cheers
    Tim
    Signature

    Great Success is built from many little successes!

    http://www.timbrownlaw.com - My Wee Part of the World.

    http://www.LookingOverMyShoulder.com

    {{ DiscussionBoard.errors[3333091].message }}
  • Profile picture of the author phpbbxpert
    I have CI running in multiple projects on both Wamp and XAMPP
    It runs just fine.

    Besides the server stuff mentioned by Tim above...


    Saying it doesn't work does not give us much to go on.
    What does it do?
    What errors do you get?
    Have you checked your error logs PHP and Apache?
    Do you get any type of response on the CI welcome page, which is what you should see?
    {{ DiscussionBoard.errors[3333380].message }}
  • Profile picture of the author Cash37
    Thanks guys.

    Here is the real issue I am having.

    About a year ago I hired a company to create an app for me. It runs off codeigniter and php/mysql. The front end is the app, but it also has a forum that shares a database with it.

    I downloaded the site on my laptop and installed WAMP (Im now using XAMPP). When I go to http://localhost/mysite nothing happens. It gives me the loading signs but it never loads. When I go to http://localhost/mysite/forum it runs without a problem. So I know the database and everything is installed correctly. Im just trying to figure out how to load the main application.
    {{ DiscussionBoard.errors[3337166].message }}
    • Profile picture of the author Tim Brownlaw
      Ok , so you've got a CI application and trying it out on your own server.

      I could write a wee book on all the things to try and without knowing all the details, the quickest way would be to for me to take a quick peek, depending if we cross paths when we both have our eyes open!

      We can arrange a time and we can hook up in my conference room and I can talk you through it.

      I can give you Desktop Sharing ( it's not remote sharing so you'll have to do the driving ) and we'll see which side is up.

      You are welcome to hunt me down on skype! I'm easy to find.

      Cheers
      Tim
      Signature

      Great Success is built from many little successes!

      http://www.timbrownlaw.com - My Wee Part of the World.

      http://www.LookingOverMyShoulder.com

      {{ DiscussionBoard.errors[3337673].message }}

Trending Topics