Can't access wamp server 2.0 server on LAN

We have installed wampserver2.5 and configured wampserver on my system, we can access through the local system but cannot access through my local network. The following error will appear

php server

phpmyadmin

Please help me to solve this problem.

+3


source to share


1 answer


You have to remember that the WAMPServer is configured on the assumption that you are going to use it to develop php based sites on your local machine on the same PC, and therefore everything is set up so that a newbie will not get his system compromised by any access without using boxes.

If you want to allow other computers on your network to access the sites you are developing, you will have to make some changes to tell Apache that it is allowed to access connections from IP addresses that do not belong to this PC IP address.

Firstly, if your network is closed, i.e. not accessible from any other network or from the internet, you can simply use the wampmanager menu like this: -

wampmanager -> Put Online

      

This will be the httpd.conf file from

Require local

      

For

Require all granted

      

And restart Apache so it can see the change.

If you just want to open your WAMPServer on your local network or if you are protected from security in any way, then it is better to edit the httpd.conf file manually again using the wampmanager menu to make sure you are editing the correct file.

wampmanager -> Apache -> httpd.conf

      



Find the line

#   onlineoffline tag - don't remove
Require local

      

And add this

#   onlineoffline tag - don't remove
Require local
Require ip 192.168.1

      

To resolve any IP on your local subnet i.e. any ip starting with 192.168.1

Or only for individual ip counters

#   onlineoffline tag - don't remove
Require local
Require ip 192.168.1.41

      

Now, if you want to allow this other access to the phpMyAdmin ip, you need to edit this file: \wamp\alias\phpmyadmin.conf

Here you will also see the commands that tell Apache who is allowed to access this alias. And change it like this: -

Alias /phpmyadmin "d:/wamp/apps/phpmyadmin4.1.14/"

<Directory "d:/wamp/apps/phpmyadmin4.1.14/">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
  <IfDefine APACHE24>
    Require local
    Require ip 192.168.1               <-- this line added
  </IfDefine>
  <IfDefine !APACHE24>
    Order Deny,Allow
      Deny from all
      Allow from localhost ::1 127.0.0.1
    </IfDefine>
  php_admin_value upload_max_filesize 128M
  php_admin_value post_max_size 128M
  php_admin_value max_execution_time 360
  php_admin_value max_input_time 360
</Directory>

      

+5


source







All Articles