XAMPP on a private 192.168 address,

Problems with the Windows version of XAMPP, questions, comments, and anything related.

XAMPP on a private 192.168 address,

Postby browser » 24. September 2011 00:04

Hi,

I am new to XAMPP but have spent the past two days working on this but unable to overcome the issue

My Objective: To setup up XAMPP on my private server 192.168.1.90 and to allow access from client on the 192.168.1.o/24 network

Process:
1. I installed xampp-win32-1.7.4-VC6-installer
2. I modified c:\xampp\apache\conf\extra\httpd-xampp.conf to change the line

Allow from 127.0.0.0/8
to
Allow from 192.168.1.90
3. I modified line 5 in C:\XAMPP\security\htdocs\xamppsecurity.php to $host = "192.168.1.90"; to allow access to the security options off the XAMPP index page
4. I modified c:\xampp\phpMyAdmin\config.inc to have the follow config (used password=home)

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = '192.168.1.90';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'home';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

5. I set up the same password of "home" in the Mysql using "cookie" as the auth method but not using 192.168.1.90 as the URL (see below)
Issues:

A: When I go to http://192.168.1.90/security/index.php off the page http://192.168.1.90/xampp/index.php, I get the following error FORBIDDEN FOR CLIENT 192.168.1.90 . When I manually change it to http://192.168.1.90/security/index.php it works but the 192.168.1.90 should work. Is this a bug?

B: Mysql is running with no errors. When I connect to http://192.168.1.90/phpmyadmin/, I get the error #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) and Connection for controluser as defined in your configuration failed. When I go to http://127.0.0.1/phpmyadmin/ it bring up the login page but the login fails and give me #1130 Cannot log in to the MySQL server

I have tried a number of installs and re-installs and I did make progress once ( I got access to mysql) if I stick with 127.0.0.1 but this is no good for me as I want to use the 192.168.1.0 range

Can someone assist or point me to a document on this. I cannot understand why there is not a single document for this setup as it is fairly common. I see that most post refer to local host and 127.0.0.1 which is needed (I accept) for developers but I would like to think that XAMPP can be used in a private LAN for test purposes

Thanks in advance for any help provided

Browser
browser
 
Posts: 1
Joined: 23. September 2011 23:36

Re: XAMPP on a private 192.168 address,

Postby Sharley » 24. September 2011 00:47

browser wrote:2. I modified c:\xampp\apache\conf\extra\httpd-xampp.conf to change the line

Allow from 127.0.0.0/8
to
Allow from 192.168.1.90
You only needed to add the line instead of changing it and you could have added this on the next line under the local loop IP address.
Allow from 192.168.0.0/16
Save the file and restart apache.

Remove the home password from the config_inc.php file and access phpMyAdmin without a password for now until it is sorted then add your password from the security menu item in the Welcome page or directly by URL.

That may eliminate an error or two perhaps.

For now delete any .htaccess and .htpasswd files you find in the htdocs\xampp folder and the xampp\security folder.

In line 88 of htdocs\xampp\lang\en.php file there is a link that may be the issue.
Code: Select all
   $TEXT['security-text2'] = "The green marked points are secure; the red marked points are definitively unsecure and the yellow marked points couldn't be checked (for example because the sofware to check isn't running).<p>To fix the problems for mysql, phpmyadmin and the xampp directory simply use</b><p>=> <a href=\"/security/xamppsecurity.php\"><b>http://localhost/security/xamppsecurity.php</b></a> <= &nbsp;&nbsp;[allowed only for localhost]<br>&nbsp;<br>&nbsp;<br>
The language files are needed and extensively used both in the htdocs\xampp folder and in the \xampp\security folder for obvious reasons and so should also be inspected for links along with many of the *.inc files, that may affect certain required changes you may wish to make in XAMPP.

Sorry about documentation but I have nothing to do with XAMPP development and if you realize that the project is run and developed by just 2 people who are developing in any spare time they can find, then perhaps you could find in your heart to excuse them for documentation a low priority. :)

Anyway see if my suggestions above help and allow you to move forward and please let us know how it all pans out so it may help others.

Thanks and good luck :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 155 guests