MySQL 在此服务器上找不到请求的 URL /phpmyadmin
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22893702/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The requested URL /phpmyadmin was not found on this server
提问by Kishan Vadaliya
Error is occurring when i am opening www.mysite.com/phpmyadmin
当我打开 www.mysite.com/phpmyadmin 时发生错误
Not Found
The requested URL /phpmyadmin was not found on this server.
Apache/2.2.22 (Ubuntu) Server at myclassbook.in Port 80
未找到
在此服务器上找不到请求的 URL /phpmyadmin。
Apache/2.2.22 (Ubuntu) 服务器在 myclassbook.in 端口 80
I using digitalocean server hosting services.
我使用 digitalocean 服务器托管服务。
I have completed the installation of apache2, mysql, php and phpmyadmin.
我已经完成了apache2、mysql、php和phpmyadmin的安装。
I have also inserted a link into /etc/apache2/apache2.conf and ServerName localhost into apache2.conf file.
我还在 /etc/apache2/apache2.conf 和 ServerName localhost 中插入了一个链接到 apache2.conf 文件中。
Include /etc/phpmyadmin/apache.conf
包括 /etc/phpmyadmin/apache.conf
but still it is not working.
但它仍然不起作用。
my hosts file is
我的主机文件是
127.0.0.1 localhost
12.23.53.342 mysite.com
127.0.0.1 本地主机
12.23.53.342 mysite.com
my 000-default file is
我的 000-default 文件是
ServerAdmin webmaster@localhost ServerName mysite.com
ServerAdmin webmaster@localhost ServerName mysite.com
DocumentRoot /var/www/mcb/public
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/mcb/public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
Please help!!!! where am i going wrong???
请帮忙!!!!我哪里错了???
thanks friend...
谢谢你,朋友...
回答by SparkAndShine
Create a symbolic from the terminal: (it works for me)
从终端创建一个符号:(它对我有用)
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
回答by Kishan Vadaliya
Your problem will solve after Re-install phpmyadmin.
您的问题将在重新安装 phpmyadmin 后解决。
Enjoy...
享受...
回答by ackuser
If not
如果不
echo 'Include /etc/phpmyadmin/apache.conf' >> /etc/apache2/apache2.conf
Hope this help
希望这有帮助
回答by Bhagirath sheela
delete your cookies and try again in my case it worked
删除您的 cookie 并重试在我的情况下它有效