codeigniter

Several time ago, i build my own app or web app with code igniter. There is no error when i build and test my app on server or call it with http://localhost/myapp.

Different case in implementation. I found problem after installed new client and call this web app from client browser. Commonly you can call your web app with http://ip address/myapp. But in my case there is nothing happen after it.

investigate start.

XAMPP or another server emulator check

In older version XAMPP you must edit your configuration for server. This necessary do before your client can load your project.

  1. Open the httpd.conf file in the C: \ xampp \ apache \ conf folder, edit the file using notepad or notepad ++ to make it easier.
  2. Look for the LoadModule text vhost_alias_module modules / mod_vhost_alias.so and remove the # sign in front of it.
  3. Look for the Include text “conf / extra / httpd-vhosts.conf” if in front of it there is a sign # remove the sign.
    Next we need to manage who can access XAMPP on the server computer, the steps are as follows.
  • Open the httpd-xampp.conf file in C: \ xampp \ apache \ conf \ extra.
  • At the bottom there are posts like the following

Order deny,allow  
Deny from all  
Allow from ::1 127.0.0.0/8 \  
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \  
fe80::/10 169.254.0.0/16  
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var  
</locationmatch> 

to add a computer with a specific IP address such as 192.168.1.3 can be done by adding the text as follows.

Allow from 192.168.1.3 
Allow from 192.168.1.4

<locationmatch i:=”” licenses=”” phpmyadmin=”” security=”” server-info=”” server-status=”” webalizer=”” xampp=””>  
Order deny,allow  
Deny from all 
Allow from ::1 127.0.0.0/8 \  
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \  
fe80::/10 169.254.0.0/16  
Allow from 192.168.1.3
Allow from 192.168.1.4  
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var  
</locationmatch> 

To give access to all users in the network can change the code “order deny, allow and Deny from all” to “Allow from all”.

    Restart XAMPP

if your XAMPP is update version do this for your code igniter app

in new version of XAMPP do not change httpd conf. Change this configuration not affected with your app. This happen with my web app to. In my case not XAMPP configuration affected error.

Deep investigate see in configuration in your code igniter file. You can found it in application folder inside config. same thing you can edit with notepad++. Check your code

$config[‘base_url’] = “http://localhost/myapp

Well, the application doesn’t work because the application running on the client side is always redirected to localhost even though there is no problem when running the application on the server.

we need to set it in the url base to:

$config[‘base_url’] = “http://&#8221;.$_SERVER[‘HTTP_HOST’];
$config[‘base_url’] .= preg_replace(‘@/[email protected]’,”,dirname($_SERVER[‘SCRIPT_NAME’])).’/’;

0/5 (0 Reviews)

51 COMMENTS

  1. Good day! I could have sworn I’ve been to this
    site before but after checking through some of the post I realized it’s new to
    me. Anyways, I’m definitely glad I found it and I’ll be book-marking and checking back often!

    Feel free to visit my webpage: cloud hosting

  2. Awesome blog! Is your theme custom made or did you download
    it from somewhere? A theme like yours with a few simple adjustements would really
    make my blog shine. Please let me know where you got your design. Appreciate it

    My web page … йога онлайн

  3. you’re in point of fact a good webmaster. The site loading pace is amazing.
    It seems that you’re doing any distinctive trick. Also,
    The contents are masterpiece. you’ve performed a fantastic job on this topic!

  4. great put up, very informative. I ponder why the other experts of this sector don’t understand
    this. You should proceed your writing. I am confident, you’ve a great readers’
    base already!

  5. Your style is so unique compared to other people I have read stuff from.
    Thank you for posting when you’ve got the opportunity, Guess I’ll just book mark this
    page.

  6. great put up, very informative. I wonder why
    the other specialists of this sector don’t understand this.
    You should proceed your writing. I’m confident, you’ve a
    huge readers’ base already!

  7. Spot on with this write-up, I seriously believe
    that this amazing site needs a lot more attention. I’ll probably be back again to read through more, thanks
    for the information!

  8. Hello, every time i used to check webpage posts here in the early hours in the break of day, because i love to
    find out more and more.

  9. I blog quite often and I truly appreciate your content.
    Your article has truly peaked my interest. I’m going to bookmark your website
    and keep checking for new information about once a week. I opted
    in for your Feed too.

  10. Ahaa, its nice conversation regarding this post at this place at
    this weblog, I have read all that, so at this time me also commenting at
    this place.

  11. Write more, thats all I have to say. Literally, it seems as though you
    relied on the video to make your point. You definitely know what youre talking about, why waste your intelligence on just posting videos to your weblog when you could
    be giving us something enlightening to read?

  12. This is really interesting, You’re a very skilled
    blogger. I’ve joined your rss feed and look forward to seeking more of your fantastic post.
    Also, I have shared your website in my social networks!

  13. Greetings! This is my 1st comment here so I just wanted to give a quick shout out and say I truly enjoy reading
    through your articles. Can you recommend any other blogs/websites/forums
    that deal with the same subjects? Thank you!

  14. I know this site gives quality depending content and other material, is there any
    other site which provides these information in quality?

  15. You could certainly see your skills in the work you write. The sector hopes for
    even more passionate writers such as you who aren’t afraid to say how
    they believe. All the time follow your heart.

  16. I was suggested this web site by my cousin. I am not sure whether this post is written by him as nobody else know
    such detailed about my trouble. You’re incredible!

    Thanks!

  17. Magnificent website. Lots of helpful information here.

    I am sending it to several friends ans also
    sharing in delicious. And obviously, thank you for your effort!

  18. Thanks for every other great article. Where else could anyone get
    that kind of info in such an ideal method of writing? I have a presentation subsequent week, and I’m on the look for such information.

  19. It’s difficult to find well-informed people about this
    topic, but you sound like you know what you’re talking about!
    Thanks

  20. Good post. I learn something new and challenging on websites I stumbleupon every day.
    It will always be interesting to read through content from
    other authors and use something from other sites.

  21. I was recommended this web site through my cousin. I
    am not sure whether or not this post is written through
    him as nobody else recognise such exact approximately my
    trouble. You’re amazing! Thanks!

  22. Usually I don’t read article on blogs, but I would like to say
    that this write-up very compelled me to check out and
    do so! Your writing style has been surprised me. Thanks, very nice post.

  23. naturally like your web site but you need to take
    a look at the spelling on several of your posts. Many of them
    are rife with spelling problems and I in finding it very bothersome
    to tell the reality however I will definitely come back again.

  24. Hello, Neat post. There is a problem together with your site in web explorer,
    could test this? IE still is the marketplace
    leader and a big portion of people will omit your wonderful writing because of this problem.

  25. Very nice post. I just stumbled upon your weblog and wanted to say that I have
    truly loved browsing your blog posts. In any case I will
    be subscribing to your rss feed and I’m hoping you write again very soon!

  26. Excellent way of telling, and good post to obtain information on the topic of my presentation topic, which i am going to present in academy.

  27. Wow, superb weblog format! How long have you ever been running a blog for?
    you made blogging look easy. The total look of your website is
    excellent, let alone the content!

  28. Pretty nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts.
    After all I will be subscribing to your feed and I hope you write again very soon!

  29. Thanks for any other informative web site. Where else may I get that kind of info
    written in such a perfect manner? I’ve a mission that I’m
    simply now running on, and I have been on the look out for such information.

  30. certainly like your web site however you need to check the
    spelling on several of your posts. Many of them are rife with spelling issues and I find it very
    troublesome to tell the truth then again I will certainly come again again.

  31. That is very interesting, You are an overly skilled blogger.
    I’ve joined your rss feed and look forward to
    searching for extra of your great post. Also, I have shared
    your website in my social networks

  32. Its like you read my mind! You seem to know so much about this,
    like you wrote the book in it or something.
    I think that you could do with some pics to drive
    the message home a little bit, but instead of that, this is magnificent blog.

    An excellent read. I will certainly be back.

  33. Great beat ! I would like to apprentice even as you amend your web site, how could i subscribe for a weblog
    website? The account aided me a acceptable deal. I were a little bit acquainted of this your
    broadcast offered shiny transparent concept

LEAVE A REPLY

Please enter your comment!
Please enter your name here