[英]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.