Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the IP address in XAMPP for Windows?

Tags:

xampp

I've been trying to figure out how I can change my server config for XAMPP so that it doesn't have a memory fault when both Windows and the server are trying to access localhost at the same time. Basically I want XAMPP to be IP of 127.0.1.1 or something similar so it doesn't interfere with the localhost used by the system so I can browse the web and my websites that I'm developing. What is happening is that if I have XAMPP and Eversoft's first page 2000 v2.0 running at the same time, I'll get a BSOD (blue screen of death) in the middle of editing my sites. This is an intermittent problem, but always happens with these two programs.

like image 480
user1493559 Avatar asked Jun 30 '12 21:06

user1493559


People also ask

What is the IP address of XAMPP server?

In the basic configuration of XAMPP, phpMyAdmin is accessible only from the same host that XAMPP is running on, at http://127.0.0.1 or http://localhost. Before you can access the MySQL server, phpMyAdmin will prompt you for a user name and password.

How can I change my localhost URL in XAMPP?

To change localhost to domain name in Xampp, open the Xampp control panel and click on the Config button next to Apache. Open the httpd. conf file in the text editor and find the line that says "ServerName localhost:80". Change localhost to your domain name and save the file.

How do I access XAMPP control panel?

The XAMPP Control Panel icon. If the XAMPP icon is in your system tray, you can click it to open the Control Panel. If you don't have the icon in your system tray, you can open the Control Panel by choosing Start All Programs Apache Friends XAMPP XAMPP Control Panel.


1 Answers

Hint:
first part=file location --- second part=find in the file --- third part=replace with finded text

How Change "127.0.0.1" in Xampp To "127.0.0.2" (or paste your favorite ip instead 127.0.0.2)

(C:\xampp\apache\conf\httpd.conf) --- Listen 80 --- Listen 127.0.0.2:80
(C:\xampp\apache\conf\extra\httpd-ssl.conf) --- Listen 443 --- Listen 127.0.0.2:443
(C:\xampp\php\php.ini) --- ;xdebug.remote_host = "127.0.0.1" --- ;xdebug.remote_host = "127.0.0.2"
(C:\xampp\phpMyAdmin\config.inc.php) --- $cfg['Servers'][$i]['host'] = '127.0.0.1'; --- $cfg['Servers'][$i]['host'] = '127.0.0.2';

How Change "Localhost" in Xampp To "myhost" (or paste your favorite name instead myhost)

  • xampp control panel admin butoons still open localhost

    (C:\xampp\apache\conf\httpd.conf) --- ServerName localhost:80 --- ServerName myhost:80
    (C:\xampp\php\php.ini) --- ; SMTP = localhost --- ; SMTP = myhost
    (C:\Windows\System32\drivers\etc\HOSTS) --- 127.0.0.1 localhost --- 127.0.0.2 localhost
    127.0.0.2 myhost >>> #(next line after 127.0.0.2 localhost)
like image 188
omidshadbash Avatar answered Sep 23 '22 10:09

omidshadbash