Reputation: 359
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.
Upvotes: 11
Views: 102215
Reputation: 21
You can follow these steps :
Step 1 : Open Xampp
Step 2 : Click on Config and select and click on Appache(httpd.conf) to open the file in the notepad
Step 3 : Press ( Ctrl/Cmd + f ) and search for listen 80
to change the port and choose a suitable port number for you (between 1024 to 49151)
Step 4 : In the search box again type and search for Localhost and change it's value to the desired ip adress eg. (0.0.0.0:4040) // Your ip adress
You can follow the images down below :
Upvotes: 1
Reputation: 1759
These are the steps to follow when you want your PHP application to be installed on a LAN server (not on web)
Note: If firewall is installed, ensure that you add the http port 80 and 8080 to exceptions and allow to listen. Go to Control Panel>Windows Firewall>Allow a program to communicate through windows firewall>Add another program Name: http Port: 80 Add one more as http - 8080
If IIS (Microsoft .Net Application Internet Information Server) is installed with any Microsoft .Net application already on server, then it would have already occupied 80 port. In that case change the #Listen 192.168.1.193:80 to #Listen 192.168.1.193:8080
Upvotes: 8
Reputation: 359
Just edit c:\xampp\apache\conf\httpd.conf
and change the Listen 80
to Listen 127.0.0.2:80
or whatever ip address you want. Make sure you place :
between the ip address and port number, in this case it was port 80.
Upvotes: 15
Reputation: 61
Hint:
first part=file location --- second part=find in the file ---
third part=replace with finded text
(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';
Upvotes: 3
Reputation: 821
You can point 127.0.1.1 to 127.0.0.1 in your windows hosts file (Windows/system32/driver/etc)
Upvotes: -5