Can't access pages from other computer
Posted by: rafael.soteldo (200.8.85.---)
Date: July 09, 2016 04:53PM

Hi there:

I installed wampserver 3.0.4 on a laptop with win 7 64 bits.

I'm studying and I want to test my pages from my other machines at home.

When I try to access from other machine by typing my IP address, I get the following error:
___

Forbidden

You don't have permission to access / on this server.
Apache/2.4.18 (Win32) PHP/5.6.19 Server at <my computer IP address> Port 80
____

I already created an inbound rule on the windows firewall named HTTP, on port 80.

And the content of phpmyadmin.conf is:
___
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.5.5.1/"

<Directory "c:/wamp/apps/phpmyadmin4.5.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
<ifDefine APACHE24>
Require local
</ifDefine>
<ifDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
</ifDefine>

# To import big file you can increase values
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>
___

I also tried tried replacing "Deny from all" with "Allow from all", and things got worse because I wasn't able to access from the machine I'm working on.

Any suggestion, please,

Thanks in advance,

Rafael

Options: ReplyQuote
Re: Can't access pages from other computer
Posted by: Otomatic (Moderator)
Date: July 09, 2016 05:11PM

Hi,

> I also tried tried replacing "Deny from all" with "Allow from all",
This is for Apache 2.2

With Apache 2.4, you have to replace Require local by Require all granted.

For your local sites, you must use VirtualHost The need for Virtual Host then gives access permission for the VirtualHost you want.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can't access pages from other computer
Posted by: rafael.soteldo (200.8.85.---)
Date: July 09, 2016 05:29PM

Did't work.

And I tried again replacing "Deny from all" with "Allow from all" in phpmyadmin.conf, and when I stop the service and started again, it didn't restart.

Options: ReplyQuote
Re: Can't access pages from other computer
Posted by: Otomatic (Moderator)
Date: July 09, 2016 05:38PM

Hi,

> And I tried again replacing "Deny from all" with "Allow from all"
WORKS ONLY WITH APACHE 2.2

See : [httpd.apache.org]

> When I try to access from other machine by typing my IP address
What IP ? LAN or WAN ?
And you believe that simply by IP address the system installed on your laptop guess your thinking and go automatically on phpMyAdmin?

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.