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