如何使用 laraval 在 nginx 上设置 phpmyadmin?
有人知道如何使用 laravel
在 nginx
服务器(ubuntu)上设置 phpmyadmin
吗?..
我的网站是用 laravel 构建的并托管在 上>/var/www/mysite/
默认的 nginx-config 已禁用...站点不是托管在默认的 html
目录下,而是托管在 /var/www/mysite
目录中...(因为我计划将来在同一台服务器上再托管一个站点)
Laraval
安装有效,但我无法访问 phpmyadmin.. 我已经尝试过 ln -s /usr/share/phpmyadmin /var/www/mysite/ 方法,但是 laravel 给出了 404 错误,
在互联网上找到的指南没有指定如何安装 phpmyadmin
到 nginx-laravel
组合上..设置与正常的 nginx
仅安装不同..
有人知道使其工作的正确步骤吗?
does anybody know how to setup phpmyadmin
on nginx
server (ubuntu) with laravel
?..
my site is built with laravel and hosted on /var/www/mysite/
the default nginx-config is disabled...site is not hosted under the default html
directory, but on the /var/www/mysite
directory...(because i plan to host one more site on the same server in future)
Laraval
installation works, but i am unable to access phpmyadmin..
i have already tried the ln -s /usr/share/phpmyadmin /var/www/mysite/
approach but laravel gives a 404 error
the guides found on the internet do not specify how to install phpmyadmin
onto a nginx-laravel
combo.. the settings are different than a normal nginx
only installation..
does anybody know the correct steps to make it working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题不是专门使用phpmyadmin,而是如何使用nginx在同一主机下使用多个站点,如果是phpmyadmin也没关系。如果您的网站已位于 /var/www/mysite ,则无法将 phpmyadmin 映射到同一路径(符号链接),您必须将其映射到另一个文件夹,如下所示:
确保 nginx 上的 .conf 文件正确,将它们张贴在这里。
请记住重新加载服务器,并且可能会映射公共 phpmyadmin 文件夹(包含索引文件)(如果存在)。
看看:https://fedingo .com/how-to-host-multiple-domains-on-one-server-in-nginx/
英语不是我的母语,如果您不明白,请再问我。
Your question is not about use specifically phpmyadmin, but how to use more than one site under the same host with nginx, it doesn't matter if it is phpmyadmin. If you already have your website at /var/www/mysite you cannot map the phpmyadmin to the same path (symlink), you have to map it to another folder, like this:
Make sure that your .conf files at nginx are right, post them here.
Remember to reload the server and it could be the case to map the public phpmyadmin folder (that contains index file) if it exists.
Check it out: https://fedingo.com/how-to-host-multiple-domains-on-one-server-in-nginx/
English isn't my first language, ask me again if you didn't understand something.