Ubuntu: Localhost is working but PHPmyadmin isn't even though all server software installed

I am very new to Linux and feel bad because all my failures trying to fix it… I use Ubuntu 15.10 and I’ve installed a LAMP installment manually via terminal … I basically includes everything my WAMP installation includes on Win10…

When I navigate with the browser to localhost I land at the Apache2 welcome screen, but when I navigate to localhost\phpmyadmin as I always did with WAMP, I get this:

PHPmyadmin not found

Since I’m very new to Ubuntu I don’t know if there is any data chart I should attach (will glad to do so in an edit) but in any case, these are the steps I followed when I installed LAMP on my Ubuntu 15.10:

  1. Install PHP5 or later, LAMP, curl, and composer:

sudo apt-get install php5 mysql-server apache2 phpmyadmin curl
php5-xdebug openssh-server -y

  1. Install Composer:

curl -sS https://getcomposer.org/installer | php sudo mv composer.phar
/usr/local/bin/composer

sudo service apache2 restart

  1. Install Drush master-branch:

sudo composer global require drush/drush:dev-master geany ~/.bashrc

Add this following line to the end of the .bashrc file you just
oepend:

export PATH=“$HOME/.composer/vendor/bin:$PATH”

  1. Edit http.conf and php.ini - Expend memory limit and Xdebug to
    256mb limit.

sudo service apache2 restart

  1. Add a user to OpenSSH (SFTP):

Clone the general the two general commands below and rewrite their
username & Password and run it:

sudo useradd -g www-data -d /var/www/html YOUR_USERNAME sudo passwd
-g www-data -d /var/www/html YOUR_PASSWORD

sudo service apache2 restart

Thank you dearly for your help,

From that list of commands, it looks like you just haven’t installed phpmyadmin.

Try following a guide for that (like https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04) and let us know what the results are, after?

1 Like

You should also note if you manually install PHPMyAdmin, you have to create a symbolic link and put it in /var/www. If you don’t do this, you will still see the 404 error page.

2 Likes

Are you on a Windows machine using a Linux VM?

VM - Anyway now it works. It seems that as mentioned by oddz, I was missing a symbolic link.

A friend showed me how to do so and I wrote in the desktop but mistakenly deleted the file with the explanation … Can you please explain how you would do so? BTW I later discovered my server root is /var/www/html/

I’m assuming you got this problem solved?

Yes, in Linux or Ubuntu (in general), your web development area is always located in /var/www/html/. With Windows, you specify your location. In XAMPP, it’s default in /::xampp_folder::/htdocs/, but you can actually change the location to point to whatever you want. I’m not sure about WAMP or MAMP. I don’t use either. I only use XAMPP because I use the portable version so I can carry my work with me when ever I’m not home.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.