I have a problem accessing my XAMP server on an HP SERVER DL360G7 that has 4 IP address. Here are the networks.
172.22.46.x
and
172.22.7.x
I managed to access my site using the 172.22.7.x network. However, when I try to browse using any computer under the 172.22.46.x network, the server doesn't reply anything.
Here is my APACHE config
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
Require ip 172.22.46
Check if apache is bound against any address instead of just 1 server IP. When you execute the function netstat -tupl in the console and search for httpd, does it bind to * or to a specific IP?
Else check your httpd.conf for the Listen command. There shouldn't be any specific IP if you want it to listen to all interfaces.
More info here
Related
I am trying to open my phpMyAdmin through wamp server but I am getting an error:
Forbidden
You don't have permission to access /phpmyadmin/ on this server.
I have changed the phpMyAdmin.conf file to
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.5.1/"
# to give access to phpmyadmin from outside # replace the lines # # Order Deny,Allow # Deny from all
# Allow from 127.0.0.1
#
# by
#
# Order Allow,Deny
# Allow from all
# <Directory "c:/wamp/apps/phpmyadmin3.4.5/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
still facing the same error .
Uncomment this line
# <Directory "c:/wamp/apps/phpmyadmin3.4.5/">
by removing the #
and change the version number to match
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
That version of phpMyAdmin is not one that was released with any version of WAMPServer I can remember, so are you trying to manually upgrade phpMyAdmin
Also it is safer assuming you are not actually wanting the universe to be allowed into your server not to use Allow from all
You could try changeing that to
Allow from localhost, 127.0.0.1
And if I remember correctly Apache 2.2.22 was IPV6 aware so you could also add
Allow from ::1
Then the server would only allow connections from the PC running WAMPServer, very relevant as we are talking about phpMyAdmin.
If you want it to be accessible from other PC's on your network you can also add
Allow from 192.168.1
For example, assuming you are on that subnet, any ip on that subnet would be allowed access
Once you make any of these changes, remember you must restart Apache for them to take effect.
wampmanager->Apache->Service->Restart service
I need to access my wamp for a moment thru my global IP address. But I can't. I'm using the latest WAMP 2.5 for 32-bit.
It has worked before when I've had earlier versions of wamp. Just go to tray icon > Put Online and voila. Seems like they changed something.
Even if I put it online I cant access it. It says wamp is online.
I don't get any "access denied" which you used in earlier versions of wamp, it just keeps loading until timeout and then I get browser can't reach website error message. "This website is not available" google chrome.
I have DMZ set up on the comp so the ports are not a problem.
In httpd.conf I found this (this is default):
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require all granted
</Directory>
Any ideas?
I've installed wampserver 2.5 on Windows Server 2008 R2 64 bit and made necessary changes in apache httpd.conf as bellow :
<Directory "cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Also, inbound rule to allow 80 port is added in windows firewall. Still it is not visible to other on LAN. I'm not regular user of windows server so I googled for quick solution, please your suggestions to this problem is appreciated.
That is not actually a change and only effects the cgi-bin directory and not the DocumentRoot folder.
Locate this section of your httpd.conf file
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require local
Now lets assume your internal subnet ip address's are 192.168.1.*
You now have to add the instruction to tell Apache that it is allowed to accept connections from ip's in that range, like so
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require local
Require ip 192.168.1
Note the use of just 3 of the 4 quartiles of the ip address.
This will allow any ip address in the range 192.168.1.0 to 192.168.1.255 i.e. the whole subnet. Change the subnet to match your actual ip address in use at your site.
If you want you can be more specific like so if you actually need to be.
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require local
Require ip 192.168.1.10 192.168.1.11 192.168.1.12
Is it possible to access phpmyadmin from outside the network?
Where do I set it? I tried editing httpd.conf, and restarted all services from wampserver but it doesn't work
<Directory />
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
Go to C:\wamp\alias and edit the file phpmyadmin
# to give access to phpmyadmin from outside
# replace the lines
#
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#
# by
#
# Order Allow,Deny
# Allow from all
# Edit C:\wamp\alias\phpmyadmin.conf
# Below is v3.5.1 - the current version is 4.0.4.1
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.5.1/"
# to give access to phpMyAdmin from outside
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
</Directory>
Are you on Unix or Windows? If on Unix, check the owner/permissions for the directory that phpMyAdmin is installed under - that might have something to do with it.
It looks to me as if you're trying to access a private address from a remote network. You can't. You will have to configure a webserver on your machine and use a ddns (in case you don't have a fixed public ip) service on your server. You will probablly have to redirect port 80 incoming traffic on your router pointing to the webserver machine also.
just for reference of other users who will encounter this kind of issue I would like to remind everyone that aside from changing directories, you must also have to check your firewall settings.
It happened to me, I've changed everything (all config in xampp) but still cannot connect. I almost gave up and then I remembered firewall. After I changed my settings it all works fine.
just sharing
Did you try like this ? Maybe you shuld add directory name in your network ?
<Directory "/Documents and Settings/All Users/Documents/xampp/phpMyAdmin">
...
...
...
...
</Directory>
Put below code in file
D:\wamp\alias\phpmyadmin.conf
< Directory "D:/wamp/apps/phpmyadmin3.2.0.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
< /Directory>
I am running a server on Windows XP SP2 computer using EasyPhp. Lets call it computer_1.
The ip address of computer is 192.168.1.2
Now I have another computer ( computer_2) on the lan with ip address 192.168.1.3
I want to access the site on computer_1 from computer_2.
comupter_2 can ping computer_1 (ping 192.168.1.2 works)
But when I type http://192.168.1.2 in the browser of computer_2, nothing happens.
I want to access the site on comupter_1 from computer_2.
In your httpd.conf make sure you have:
Listen *:80
And if you are using VirtualHosts then set them as given below:
NameVirtualHost *
<VirtualHost *>
...
</VirtualHost>
Open httpd.conf of Apache server (backup first)
Look for the the following : Listen
Change the line to
Listen *:80
Still in httpd.conf, look for the following (or similar):
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Deny from all
</Directory>
Change this block to :
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
#Deny from all
</Directory>
Save httpd.conf and restart apache
Open port 80 of the server such that everyone can access your server.
Open Control Panel >> System and Security >> Windows Firewall then click on “Advance Setting” and then select “Inbound Rules” from the left panel and then click on “Add Rule…”. Select “PORT” as an option from the list and then in the next screen select “TCP” protocol and enter port number “80” under “Specific local port” then click on the ”Next” button and select “Allow the Connection” and then give the general name and description to this port and click Done.
Restart WAMP and access your machine in LAN or WAN.
* Don't change anything to Listen : keep it as it is..
1) Open httpd.conf of Apache server (backup first) Look for the the following :
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
#Deny from all
</Directory>
and also this
<Directory "cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
2) Now From taskbar :
Click on wamp icon > Apache > Apache modules > apache_rewrite (enable
this module)
And Ya Also Activate "Put Online" From same taskbar icon
You need to allow port request from windows firewall setting.
(Windows 7)
Go to control panel > windows firewall > advance setting (on left
sidebar)
then
Right click on inbound rules -> add new rule -> port -> TCP (Specific
port 80 - if your localhost wok on this port) -> Allow the connections
-> Give a profile name -> ok
Now Restart all the services of Apache server & you are done..
if you did change the httpd.conf file located under conf_files folder, don't use windows notepad, you need a unix text editor, try TED pad, after making any changes to your httpd.conf file save it.
ps: if you use a dos/windows editor you will end up with an "Error in Apache file changed" message. so do be careful....
Salam
nothing to be done for running your wamp sites to another computer.
1. first turn off the firewall.
2. Set Put Online in wamp by clcking in wamp icon at near to clock.
Finally run your browser in another computer and type http:\ip address or computer name e.g. http:\192.168.1.100
Your firewall does not allow any new connection to share information without your consent. ONLY thing to do is give your consent to your firewall.
Go to Firewall settings in Control Panel
Click on Advanced Settings
Click on Inbound Rules and Add a new rule.
Choose 'Type Of Rule' to Port.
Allow this for All Programs.
Allow this rule to be applied on all Profiles i.e. Domain, Private, Public.
Give this rule any name.
That's it. Now another PC and mobiles connected on the same network can access the local sites. Lets Start Development.
You might also want to check your server configuration - sometimes the default for development type servers is to only accept connections from localhost.
Please reformulate your question. Your first sentence does not make sense.
.
To address your question:
http://ip.of.server/ should work in principle. However, depending on configuration (virtual hosting) only using the correct host name may work.
At any rate, if you have a network, you should properly configure DNS, otherwise all kinds of problems (such as this) may occur.
Open the "internet protocol properties" section on computer_2.
Enter the ip address (192.168.1.2) of computer_1 in "Preferred DNS server" text box and click ok and close the dialog box.
Now try to open the website again on computer_2.
navigate to C:\wamp\alias.
make file with project name and like phpmyadmin.conf
add the following section and change :
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
change directory to your directory path like c:\wamp\www\projectfolder
make sure you make the same in httpd.conf for all directory like
first directory:
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
second directory:
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all
</Directory>
<Directory "icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I was trying to access my localhost website (on my pc) from my mobile (andriod).
The configuration is like Windows 10, WAMP 2.4.23, PHP Website and my mobile was running on andriod. Both my mobile and pc are connected to same wifi.
I was able to open my website on my pc by using url http://localhost/mysite or http://127.0.0.1/mysite. My pc ip was 192.168.0.1 (say) and my mobile ip was 192.168.0.2 (say) and both connected on same wifi.
I tried all the setting like changing the httpd.conf, httpd-vhosts.conf only to find that all I need was to disable my firewall. Of course, disabling the firewall completely is not a good idea. I have avast antivirus running on my pc. If I check the firewall log for last one hour (or so) I can see that attempt has been made by my mobile ip to connect to website running on my pc. All it required was to add an exception by creating a new rule in avast UI which will allow connections from my mobile ip.
Hope this helps someone.