Меню Рубрики

Windows xampp access forbidden

New xampp security concept: Access Forbidden Error 403 — Windows 7 — phpMyAdmin

I have downloaded and installed XAMPP 1.8.1 for Windows on Windows 7 Ultimate. I have set up XAMPP to run together with IIS as per these instructions

All good so far, my PHP sites run locally and everything except phpMyAdmin is available from the XAMPP menu.

However when I try to access phpMyAdmin I get this error:

New XAMPP security concept:

Access to the requested directory is only available from the local network.

This setting can be configured in the file «httpd-xampp.conf».

I’ve found several answers via Google and some on this site. However, so far, none of the solutions I’ve tried have resolved the issue.

Here is my httpd-xampp.conf file:

Does anyone have any idea as to what I’m missing?

20 Answers 20

All you have to do is to edit the httpd-xampp.conf

from Require local to Require all granted in the LocationMatch tag.

In New Xampp

All you have to do is to edit the file:

and go to Directory tag as below:

in the Directory tag.

Restart the Xampp. That’s it!

Require all granted seemed a bit to far for me. Looking at the documentation I used: Require ip 192.168 to allow all internal access.

Try to reinstall new version of XAMPP. Find » » and then change to something like this

You will have to edit 2 files — 1. httpd-vhosts.conf & 2. httpd-xampp.conf

NOTE : Make sure u backup files ( httpd-xampp.conf ) and ( httpd-vhosts.conf ) , Both Files are located in Drive:\xampp\apache\conf\extra

Open httpd-vhosts.conf file and in the bottom of the file change it

Here E:/xampp is my project workspace, you can change it as per your settings

and Second Change is on httpd-xampp.conf file and in the bottom of the file change it

Update for XAMPP 7.3.*

If you get into same problem for phpmyadmin in the newest XAMPP, as I had.

The solution is written inside the official documentation located in [XAMPP IP]/dashboard/docs/access-phpmyadmin-remotely.html

To enable remote access to phpMyAdmin from other hosts, follow these steps:

  1. Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.
  1. Ensure that Apache and MySQL services are running in the «Services» tab of the stack manager (or start them as needed).
  1. Open a new terminal from the «General» tab of the stack manager.

Update this block and replace Require local with Require all granted ,

  1. Save the file and restart the Apache service using the stack manager.

Note for section (4) To edit this file make sure you have vim installed.

Note for section (5) Instead of allowing access to all, which is highly insecure, if your computer is connected to a network. A safer approach is to limit the access to only set of IPs as suggested by @Gunnar Bernstein.

Источник

Xampp Access Forbidden php

I’m a windows user. I’ve been using xampp for quite a while but suddenly none of my .php files are working now! I get this error message:

You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

localhost Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.16

I can see the list of my .php files in localhost/Practice (Practice is the folder where I’ve saved my files) The file even opens whenever I click on it. But when I click on any ‘submit’ button inside any of my files, it gives this error. Please help! I updated xampp from 1.8.1 to 1.8.2 but still the same problem persists!

15 Answers 15

Try with this code below, add it in your virtual host config. Add this lines to httpd-vhosts.conf file:

I fixed the same issue by this way. Hope it helps.

Note:

after changes please test it in incognito because you redirected by cache

if used ubuntu operating system then check chmod of /Practice folder change read write permission

Open terminal press shortcut key Ctrl+Alt+T Goto

$ cd /opt/lampp/htdocs/

and change folder read write and execute permission by using chmod command

e.g folder name is practice and path of folder /opt/lampp/htdocs/practice

what is chmod and 777 ? visit this link http://linuxcommand.org/lts0070.php

The way I resolved this was setup error logs correctly, first

After this error are being logged into «D:/websites/test/logs/» make sure to create logs folder yourself. The exact error that was recorded in error log was

AH01630: client denied by server configuration:

Which pointed me to correct solution using this link which said for the above error

is required. My sample sample code above fixes the problem by the way.

The only solution that worked for me after spending hours researching online

I am using xxamp using ubuntu 16.04 — and its working fine for me

NOTE: remember to change ‘myprojectname’ to your actual project name. Also, make sure the project is on the root directory of htdocs or change the path accordingly.

Go in to your Xampp folder xampp/apache/conf/extra/httpd-xampp.c­onf

Edit the last paragraph:

For me it was solved instantly by the following

  1. Going to C:\xampp\apache\conf\extra
  2. Editing inside the file httpd-xampp.conf
  3. Edit the file as follows:

find the following lines by cont+f:

only change local —-> all granted, so it becomes like this

After this the localhost will stop showing the error and will show admin panel. I found this solution in a video here: https://www.youtube.com/watch?v=MvYyEPaNNhE

I had this problem after moving the htdocs folder to outside the xampp folder. If you do this then you need to change the document root in httpd.conf. See https://stackoverflow.com/a/1414/3543329.

I had the same problem. So I got remembere. Yesterday I had commented this code in htttp-xampp.conf

SO I can access my localhost using other system on same network(LAN/WIFI) as it make localhost require local.

So I just make it like

and now its working on my local machine and also localhost is accessible using other systems on same LAN/WIFI.

Did you change any thing on the virtual-host before it stop working ?

Add this line to xampp/apache/conf/extra/httpd-vhosts.conf

Replace with:

I got the same error because somehow deleted the index.php and accessing the folder without index.php gave same error.

following steps might help any one

  1. check error log of apache2
  2. check folder permission is it accessible ? if not set it
  3. add following in vhost file Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all Require all granted
  4. last but might save time like mine check folder name(case sensitive «Pubic» is different form «public») you put in vhosts file and actual name. thanks

In my case I exported Drupal instance from server to localhost on XAMPP. It obviously did not do justice to the file and directory ownership and Apache was throwing the above error.

This is the ownership of files and directories initially:

To give read permissions to my files and execute permission to my directories I could do so that all users can read, write and execute:

but that would not be the ideal solution coz this would be migrated back to server and might end up with a security loophole.

And need to invoke the command:

In my case the user on which Apache is running is ‘daemon’. You can identify the user by just running this php script in a php file through localhost:

Below is the right user with right file permissions for Drupal:

You might have to change it back once it is transported back to server!

Источник

pacesettergraam

Concentrate where you are, Focus where you want to go

Access forbidden! New Xampp security concept

Access forbidden!

New XAMPP security concept:

Access to the requested object is only available from the local network.

This setting can be configured in the file “httpd-xampp.conf”.

If you think this is a server error, please contact the webmaster.

Error 403

New XAMPP security concept:

Access to the requested directory is only available from the local network.

This setting can be configured in the file “httpd-xampp.conf”.

If you think this is a server error, please contact the webmaster.
Error 403

If you are getting a error while using xampp please follow the below instructions

So the solution for this is as follows:
1) Open httpd-xampp.conf which is at /opt/lampp/etc/extra/

Edit the lines which you find at the end which will look like below

# New XAMPP security concept

#
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16

ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

You have to change the code to # New XAMPP security concept

Order deny,allow
Allow from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16

ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

2) Find
3) Now just add Require all granted before
4) So the code will look like this

AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted

4) Now finally Restart the xampp with this command /opt/lampp/lampp restart


Thats it and you are Done!

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Windows x86 32 bit msi installer
  • Windows x32 или x86
  • Windows write iso to flash
  • Windows worms doors cleaner rus
  • Windows workflow foundation основы