Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The requested URL /phpmyadmin was not found on this server

Error is occurring when I am opening 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

I using digitalocean server hosting services.

I have completed the installation of apache2, mysql, php and phpmyadmin.

I have also inserted a link into /etc/apache2/apache2.conf and ServerName localhost into apache2.conf file.

Include /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

my 000-default file is

<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>

Where am I going wrong?

like image 608
Kishan Vadaliya Avatar asked Apr 06 '14 11:04

Kishan Vadaliya


1 Answers

Create a symbolic from the terminal: (it works for me)

sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
like image 153
SparkAndShine Avatar answered Oct 21 '22 04:10

SparkAndShine