简体   繁体   English

您无权访问此服务器上的/send.php

[英]You don't have permission to access /send.php on this server

I have a contact form which sends to a php file on the root of my server to send an email, however I receive the following error message: 我有一个联系表单,该表单发送到服务器根目录上的php文件以发送电子邮件,但是我收到以下错误消息:

403 Forbidden 403禁止

You don't have permission to access /send.php on this server. 您无权访问此服务器上的/send.php。

The php file has 755 file permissions. php文件具有755个文件权限。 I tried deleting Deny from all from the .htaccess file in the logs folder too but didn't work. 我也尝试从日志文件夹中的.htaccess文件中删除全部“拒绝”,但没有用。 Any ideas? 有任何想法吗?

Make sure the file is in the public folder (eg, /public_html/). 确保文件位于公用文件夹中(例如,/ public_html /)。 You can't go below that level. 您不能低于该水平。

Also, the .htaccess file in the logs folder is only relevant if your script is in that folder. 另外,仅当您的脚本位于该文件夹中时,logs文件夹中的.htaccess文件才相关。 Based on the name "logs", you probably do want to Deny all . 基于名称“ logs”,您可能确实希望Deny all If there is an .htaccess file in the folder where /send.php is, then you may need to adjust the settings in that file. 如果/send.php所在的文件夹中有一个.htaccess文件,则您可能需要调整该文件中的设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 您无权访问此服务器上的check.php - You don't have permission to access check.php on this server 无权访问此服务器上的/*******.php - Don't have permission to access /*******.php on this server “您无权访问此服务器上的/news.php。”但仅在某些情况下 - “You don't have permission to access /news.php on this server.” But only sometimes 403:您无权访问此服务器上的/index.php - 403:You don't have permission to access /index.php on this server 您无权访问此服务器LAMP上的/ phpmyadmin / - You don't have permission to access /phpmyadmin/ on this server LAMP 使用HTTPS时,您无权访问此服务器上的/ - You don't have permission to access / on this server when using HTTPS 禁止:您无权访问此服务器上的/questions.php - Forbidden : You don't have permission to access /questions.php on this server CentOS + Apache:您无权访问此服务器上的/info.php - CentOS + Apache: You don't have permission to access /info.php on this server 运行Docker PHP-apache:禁止您无权访问此服务器上的/ - Run Docker PHP-apache: Forbidden You don't have permission to access / on this server HTTPS错误-您无权访问此服务器上的/index.php - HTTPS error - You don't have permission to access /index.php on this server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM