CodeIgniter base_url with port number - php

I built a website in CodeIgniter in my local machine with Apache. The website works fine. Then I moved it to IIS in the same machine and converted the htaccess to web.config, and the website still works fine with no problems. Then I moved my website to an IIS remote server in the same network, created a new site in IIS and set it up on port 81. Then I modified the base_url in the config file in CodeIgniter to http://192.168.1.40:81/.
Now when I try to access my website under that URL, I get 500: Internal server error.
I'm not sure what's causing the problem. The only cause I can think of is the port number in the URL because the website was working in my local IIS, but there was no port number in the URL or base_url. It was just the default 80.
Does anybody have a suggestion for this problem?

Thank you very much for your help. I found the solution. Joachim Isaksson was right about php not installed. when I created the website on iis, I thought php was added to the website automatically, but I was wrong. You need to add php to every new site you create in iis (if i'm wrong, please tell me how to set up php to be added automatically when a new site is created in iis.) Then I installed the url_rewrite in iis. and the problem was solved.
Thank you guys again

Related

DNS_PROBE_FINISHED_NXDOMAIN and domain is resolving

I hosted my PHP website on GoDaddy's Gen 4 VPS. after a while of users using it. The website couldn't be accessed by anyone and all the users received DNS_PROBE_FINISHED_NXDOMAIN. The Nameservers were pointed to the server IP and it was working fine. But when this message appears the domain was resolving, server was working and files could be accessed but when trying to open anything on this domain the users receive DNS_PROBE_FINISHED_NXDOMAIN. When restarting the VPS everything works fine. but this problem happens again and again after users use this website again.
Is there any solution for this or even does anyone faced this problem before or knows the root cause of it??
NOTE: The PHP code was tested before launching and the server specs were more than required.

After deploying wordpress project to server not loading wordpress

I am working on a WordPress project, the job is to deploy everything from the old server to the new server.
So I downloaded everything from the old server.
I deployed a WordPress project to paid hosting, I deployed manually by pushing all the public_html folder to the server.
First, without a database connection, it was showing me a database connection error but after the database connection, it is showing me a hosting page instead of my WordPress project page.
How can I fix it and is there a configuration that needs to be fixed?
Kindly guide me and help me in this matter.
Also is it a domain configuration issue?
The domain is configuration is on the old server and I didn't set it up for the new server yet.
Thanks.
I faced similar issues yesteday when i tried to move my woocommerce exercise from localhost to my domain(live hosting),broken all links,images,routes etc ...There is no way to fix all that whithout paid plugins, maybe someone can go through whole db and change URL-s,i cant,and after that, the question remains whether I have problems elsewhere in the local WP code,who know where in code i also have embed "localhost" URL.
I cant give you solution but i must share my frustration with this tehnology which doesnt allow normall development process like 1)development -> 2)testing -> 3)deployment .

website gives ERR_CONNECTION_REFUSED

My site is pcc.edu.ph domain name is hosted in zoneedit.com, and I am trying to launch my website and make it live on the internet, oh and one more thing I am also using wamp 2.5 as server, and I'm using my computer as a webserver. I have followed the tutorials that was posted over the internet but nothing worked, I think there is something wrong with the apache setup, any suggestions?
here is what my apache httpd.conf
https://www.dropbox.com/s/nig7aro3mfg7cv2/httpd.conf?dl=0
any more suggestions?

Privacy error after Wordpress site migration to local server

I'm still wondering for possible solution to this.
So I tried normal migration procedure for websites.
Copied the entire PHP script into my local server.
Replicated MariaDB database to my local server as well.
Now this thing happened next:
I've searched in the internet for others who encountered the same.
Anyway, the original site is hosted with SSL enabled.
Thank you!
Just go to your wordpress database look for siteurl and home inside wp_options table, change https: to http:
Or
Configured SSL on your local server.

Joomla redirects Application url under IIS

I've installed php support on my IIS7 via FastCGI. Under IIS I've created a new website that host Joomla. Uploaded my site and it works fine.
Now I wanted to add another application under that website so that when someone goes to my url http://www.mysite.com/application_name he will get to the site hosted under that url.
What ends up happening is that on Chrome and Firefox I see the Application site, but on IE it points me to the root of the site (http://www.mysite.com/application_name points me to http://www.mysite.com/).
I've played around with .htaaccess file but had no luck. I even removed it entirely but it still does that and even when removed the entire joomla site keeps on working.
What configuration am I missing?
Thanks
.htaccess works only under Apache servers, it doesn't work on IIS. You should work on the web.config file.

Categories