I just installed wamp on my Windows 7 64 bit machine. I previously had IIS installed on this machine so I disabled it. The issue I'm having is I cannot browse localhost I get
Forbidden
You don't have permission to access / on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
Note* I cannot browse to 127.0.0.1 either. Same error.
However, I can browse these directories with no issues.
[PhpMyAdmin](http://localhost/phpmyadmin)
[SqlBuddy](http://localhost/sqlbuddy)
[PhpSysInfo](http://localhost/phpsysinfo)
The hosts file in C:\Windows\System32\drivers\etc\ does contain the following:
127.0.0.1 localhost
Any suggestions on how I can resolve this issue?
A likely cause is that the webserver has no permission to read the root www directory.
Have you tried checking your vhosts.conf file? It should be somewhere in
[your wamp dir]/bin/apache/[apache vers]/conf/extra
There check if there is a default virtual host available. There should be one configured by the default install.
Then check the directory pointed by the DocumentRoot directive exists and is readable/writable.
Related
In a recent study PHP, I installed WampServer WWW, want to change the default root directory, modify the path of the httpd.conf file in the DocumentRoot file and , but it can not run normally, the web page error: The requested URL /test.php was not found on this server.
PHP/5.6.25 (Win32) Server at localhost Port Apache/2.4.23 80
I just installed phpMyAdmin on my Virtual Private Server, but I can't access it from my browser to set it up.
I verified that the folder permissions on /phpmyadmin are the same as my public_html folder.
When I go to url (http://www.testsite.com/phpmyadmin) I get a 403 error
"You don't have permission to access /phpmyadmin on this server. Apache/2.2.15 (CentOS) Server at www.testsite.com Port 80"
I then go to my /var/log/httpd/error.log and see an entry for the denied access (note I partially replaced my IP address with x's)
[Thu Oct 29 19:12:46 2015] [error] [client xx.xxx.68.18] client denied by server configuration: /usr/share/phpMyAdmin
I then edit /etc/httpd/conf.d/phpMyAdmin.conf which has the following lines
<Directory /usr/share/phpMyAdmin/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</Directory>
<Directory /usr/share/phpMyAdmin/setup/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</Directory>
In each section of code listed above, I add just below Allow from ::1
Allow from xx.xxx.68.18
I'm still getting the same 403 error. I would appreciate some insights and direction to fix this issue. Thanks
If you have installed phpMyAdmin in your linux server (centos/RHEL/debian), and tried to access phpMyAdmin in most cases you will get this 403 forbidden error. I have seen this issue very often if you are installing phpmyadmin using yum or by apt-get. By default phpmyadmin installed path is /usr/share/phpmyadmin and the apache configuration file is located in /etc/httpd/conf.d/phpmyadmin.conf.
Forbidden
You don't have permission to access /phpmyadmin/ on this server.
To fix:
nano /etc/httpd/conf.d/phpmyadmin.conf
Remove or comment the first two lines in below.
#Order Allow,Deny
#Deny from all
Allow from 127.0.0.1
Restart the apache server.
service httpd restart
I was running into the same issue with a new install of Fedora 25, Apache, MariaDB and PHP.
The router is on 192.168.1.1 and the Fedora 25 server is sitting at 192.168.1.100 which is a staic address handed out by the router. The laptop was getting a random ip in the range of 192.168.1.101 to 150.
The change I made to the /etc/httpd/conf.d/phpMyAdmin.conf was instances of
Require ip 127.0.0.1
to
Require ip 127.0.0.1 192.168.1.1/24
This worked for me. The idea came from the process of inserting the ip address of the laptop into the .conf file behind the reference to 127.0.0.1 and I was able to get access.
So instead of doing the more secure thing of handing out a static ip address to the laptop I let the phpMyAdmin.conf file open to a range of ip address on the local subnet, if that is the right terminology.
If there are drawbacks to doing this let me know so that I can make the appropriate changes.
Just installed WAMP on a Windows 7 machine.
When I go to localhost / from the localhost, everything works. But when I try to go to the machine from another computer on the local network, I get the following error message:
Forbidden
You don't have permission to access / on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at 192.168.1.13 Port 80
How do I solve this?
See the below question. You have to allow access through port 80 to your Apache server in httpd.conf by making sure you have Listen *:80
How to access site running apache server over lan without internet connection
An additional resource with items to do when you install a fresh copy of WAMP
http://forum.wampserver.com/read.php?2,119754,119754
Click on wamp icon > Apache > Apache modules > rewrite module(enable this module)
I'm using local server where XAMPP is running on. This local server is in the same network as my own computer. Now I want to access different site's running on that server. I had the following in mind.
My local server IP is 10.0.0.2. In my own hosts file I added the following.
10.0.0.2 www.domain.nl
Now when I enter www.domain.nl in my browser, I will be redirected to the server's localhost.
At the server, I added a VirtualHost to the httpd-vhosts.conf file:
<VirtualHost *:80>
DocumentRoot C:/xampp/htdocs/domain
ServerName localhost
</VirtualHost>
So now I will be redirected to the website running in the folder domain.
The problem
The problem now is, I also have a other website running on the local server. This one is on
the local server located in c:/xampp/htdocs/anotherdomain.
Adding another virtualhost does now only work on the local server itself, but not remote, because from remote I will always have the ServerName localhost.
How will I set this up? Hope you all understand my problem and someone knows how to get this working.
I've installed Apache on CentOS and have not enabled SSL, and yet I get the following error.
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please. Hint:
https://192.168.1.50/ Apache/2.2.15 (CentOS) Server at 192.168.1.50
Port 443
The page I was testing it is a simple html page.
I did not make many changes to the fleshly installed Apache. The only things I edited are IPTABLES config file to allow LAN access on port 80 and the httpd.conf file to change document root.
I've installed Apache before(on Fedora), but didn't have this problem.
Thank you.
I managed to find the problem. I found a sll.conf file that contains all of the SSL configuration lines. The SSL was enabled by default, its weird. It is located in /etc/httpd/conf.d/ and a simple
<VirtualHost _default_:443>
SSLEngine off
</VirtualHost>
did the trick.