mysql - 在此服务器上找不到请求的 URL/phpmyadmin

标签 mysql ubuntu phpmyadmin apache2

打开时发生错误 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

我使用 digitalocean 服务器托管服务。

我已经完成了apache2、mysql、php和phpmyadmin的安装。

我还在/etc/apache2/apache2.conf 和 ServerName localhost 中插入了一个链接到 apache2.conf 文件中。

Include /etc/phpmyadmin/apache.conf

但还是不行。

我的主机文件是

127.0.0.1 localhost

12.23.53.342 mysite.com

我的 000-默认文件是

<VirtualHost *:80>
    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>

</VirtualHost>

我哪里错了?

最佳答案

从终端创建符号:(对我有用)

sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

关于mysql - 在此服务器上找不到请求的 URL/phpmyadmin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22893702/

相关文章:

mysql - 查询计数分组依据

php - 为什么 PHPMyAdmin 无法写入我的 AWS Ubuntu 12.04 LTS 实例上的配置目录?

php - 使用 PHP while 循环创建 HTML 表以显示数据并允许用户提交到特定行

mysql - 从 MYSQL 上的 DATA 文件夹恢复函数和存储过程

mongodb - 如何在谷歌云 ubuntu vm 中将 transparent_hugepage 更改为 "never"?

ubuntu - Pylint 不能在 Jenkins 内部运行

ubuntu - 带有 Ubuntu 的 Raspberry Pi 4 B 上带有 MCP2515 的 CAN 屏蔽

php - 在 PhpMyAdmin 面板中运行但不在 Php 脚本中运行的 SQL 查询

php - 所有字段未填写后更新表单

python - 需要将csv文件合并成一个然后将csv导入到mysql中的表中