尝试从网络访问XAMPP时出错
尝试从网络尝试从网络访问XAMPP时出错,xampp,lan,local-network,Xampp,Lan,Local Network,尝试从网络访问Xampp时出现以下错误我尝试过,但不知道如何解决。有什么帮助吗?我真的很困惑 禁止进入: 只能从本地网络访问请求的对象。可以在文件“httpd xampp.conf”中配置此设置 在你的 xampppath\apache\conf\extra打开文件httpd xampp.conf并找到以下标记: # Close XAMPP sites here <LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|ser
访问Xampp时出现以下错误
我尝试过,但不知道如何解决。有什么帮助吗?我真的很困惑
禁止进入:
只能从本地网络访问请求的对象。可以在文件“httpd xampp.conf”中配置此设置
在你的
xampppath\apache\conf\extra打开文件httpd xampp.conf并找到以下标记:
# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
在Allow from::1 127.0.0.0/8{line}之后
重新启动xampp,您就完成了
在Xampp的更高版本中
…您只需删除此部分即可
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
#
#新的XAMPP安全概念
#
要求本地
ErrorDocument 403/error/XAMPP_probled.html.var
来自同一个文件,它应该可以通过本地网络工作。此解决方案对我很有效: 编辑/opt/lampp/etc/extra/httpd-xampp.conf并添加要求块底部的所有授权行
具有以下代码:
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>
AllowOverride授权配置限制
命令允许,拒绝
通融
要求所有授权
这个答案适用于Ubuntu上的XAMPP
安装和下载手册位于(现场官方)
启动XAMPP后,只需调用以下命令:
sudo /opt/lampp/lampp start
您现在应该可以在屏幕上看到如下内容:
Starting XAMPP 1.8.1...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
如果你有这个
Starting XAMPP for Linux 1.8.1...
XAMPP: Another web server daemon is already running.
XAMPP: Another MySQL daemon is already running.
XAMPP: Starting ProFTPD...
XAMPP for Linux started
。解决办法是
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/mysql stop
使用sudo//opt/lampp/lampp restart
要修复大多数安全漏洞,只需调用以下命令:
/opt/lampp/lampp security
更改此文件后
sudo kate //opt/lampp/etc/extra/httpd-xampp.conf
在上查找并替换
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8
Allow from all
#\
# 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
</LocationMatch>
#
#新的XAMPP安全概念
#
命令拒绝,允许
全盘否定
允许来自::1 127.0.0.0/8
通融
#\
#fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16\
#fe80::/10169.254.0.0/16
ErrorDocument 403/error/XAMPP_probled.html.var
这个错误似乎不言自明。你试过编辑httpd xampp.conf
文件吗?是的,但不知道该在那里做什么。按照链接清晰简洁@ChrisSalij:不,这不是很容易解释的。它没有说文件是什么。尝试查找我的建议:在httpd-xampp.conf的末尾,删除'xampp',这样您就可以得到:Require local ErrorDocument 403/error/xampp_probidden.html.var而不是###Require local#ErrorDocument 403/error/xampp_probidden.html.var#现在只有您的web/php页面可见,而不是管理员页面,但在添加后,它会将我带到XAMPP主页,而不是我提供的任何IP。我尝试访问我的DLink路由器,但在将Allow from all行添加到文件后,我登陆了XAMPP主页。我无法让您提供详细信息仅供某人参考:添加此字符串后,我还必须在“/opt/lampp/lampp security”中设置密码。谢谢。只有在/opt/lampp/lampp security中设置密码时才有效必须重新启动计算机或XAMPP/opt/lampp/lampp security
在安装XAMPP后非常有用!它将解决几个默认的安全问题:FTP帐户、PHPAdmin、Sqlite帐户我尝试了这两种解决方案,但都没有解决错误。在将更改写入远程服务器上的文件后,是否还需要执行其他操作?重新启动xampp?您现在遇到的新错误是什么?不要忘记使用以下命令重新启动LAMPP服务:sudo/opt/LAMPP/LAMPP restart
此答案适用于最新版本-Apache 2.4
sudo kate //opt/lampp/etc/extra/httpd-xampp.conf
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8
Allow from all
#\
# 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
</LocationMatch>