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.
- Open the httpd.conf file in the C: \ xampp \ apache \ conf folder, edit the file using notepad or notepad ++ to make it easier.
- Look for the LoadModule text vhost_alias_module modules / mod_vhost_alias.so and remove the # sign in front of it.
- 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://”.$_SERVER[‘HTTP_HOST’];
$config[‘base_url’] .= preg_replace(‘@/[email protected]’,”,dirname($_SERVER[‘SCRIPT_NAME’])).’/’;
I blog frequently and I genuinely appreciate your content. This great article has really peaked my interest. I will bookmark your blog and keep checking for new information about once per week. I subscribed to your RSS feed as well.
Pretty! This was a really wonderful article. Thanks for supplying these details.
This website was… how do I say it? Relevant!! Finally I’ve found something that helped me. Thanks a lot!
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!
This site truly has all of the info I wanted concerning this
subject and didn’t know who to ask.
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!
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.
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!
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!
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.
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.
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.
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?
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!
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!
I know this site gives quality depending content and other material, is there any
other site which provides these information in quality?
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.
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!
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!
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.
This piece of writing is in fact a good one it helps new net visitors,
who are wishing in favor of blogging.
I used to be able to find good info from your content.
It’s difficult to find well-informed people about this
topic, but you sound like you know what you’re talking about!
Thanks
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.
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!
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.
I visited many web pages however the audio quality for audio songs current at this site is in fact marvelous.
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.
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.
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!
What’s up, just wanted to say, I liked this blog post. It was
funny. Keep on posting!
It’s an remarkable paragraph for all the internet viewers; they will obtain advantage from it I am sure.
Yes! Finally someone writes about gnomeit.
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.
Paragraph writing is also a fun, if you be acquainted
with after that you can write otherwise it is complicated
to write.
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!
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!
It’s fantastic that you are getting thoughts from this piece of writing as well as from
our argument made at this time.
excellent issues altogether, you simply received a emblem new
reader. What could you recommend in regards to your publish that you simply made a few days
in the past? Any positive?
Very rapidly this site will be famous among all blog users, due to
it’s good posts
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.
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.
whoah this blog is wonderful i like reading your posts.
Stay up the great work! You realize, lots of
individuals are hunting round for this information, you could help
them greatly.
I constantly emailed this website post page to all my associates, for the reason that if like to read it then my links will too.
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
Since the admin of this site is working, no doubt very
shortly it will be renowned, due to its quality contents.
It is not my first time to pay a quick visit this web site, i am browsing this web site
dailly and get nice facts from here every day.
Heya i’m for the first time here. I found this board and I
to find It truly helpful & it helped me out a lot. I am hoping to offer something again and aid others such as you helped me.
Your mode of describing all in this paragraph is actually nice,
all be capable of without difficulty know it, Thanks a lot.
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.
We stumbled over here coming from a different website and thought I might
check things out. I like what I see so i am just following you.
Look forward to checking out your web page for a second time.
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