简体   繁体   English

重定向到phpmyadmin时,同一Apache服务器上的phpMyAdmin和Django禁止访问403错误

[英]phpMyAdmin and Django on same Apache server when redirecting to phpmyadmin I get 403 error access forbidden

I'm running a django project on opensuse and working fine and I installed phpMyAdmin before was working fine before django installation, I then configured django and phpMyAdmin to run on same apache server and added this configuration of phpMyAdmin to apache 我在opensuse上运行django项目并运行良好,我在安装django之前运行phpMyAdmin之前工作正常,然后将django和phpMyAdmin配置为在同一apache服务器上运行,并将phpMyAdmin的此配置添加到apache

Alias /phpMyAdmin /srv/www/hotdocs/phpMyAdmin/ <Directory /srv/www/htdocs/phpMyAdmin> Options Indexes FollowSymLinks MultiViews ExecCGI Require all granted </Directory> <Location /phpMyAdmin> SetHandler None </Location>

I get this error when redirecting to url/phpMyAdmin 重定向到url / phpMyAdmin时出现此错误

Access forbidden! 禁止访问!

You don't have permission to access the requested directory. 您无权访问所请求的目录。 There is either no >index document or the directory is read-protected. 没有> index文档,或者目录是受读保护的。

If you think this is a server error, please contact the webmaster. 如果您认为这是服务器错误,请与网站管理员联系。

Error 403 错误403

If Anybody can help me in this error!! 如果有人可以帮助我解决这个错误! Thank you very much 非常感谢你

Probably you dont have access to the htdocs or the phpmyadmin folder. 可能您无权访问htdocs或phpmyadmin文件夹。 You need to assign user read/write access. 您需要分配用户读/写访问权限。 Like this 像这样

sudo chmod -R 666 /opt/path

or any other path. 或其他任何路径。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM