I just installed the LAMP (Linux+Apache+MySQL+PHP) structure on my Ubuntu machine. Installing the structure is pretty easy. But getting it all running seamlessly is the another thing. After installing the things I typed http://127.0.0.1 (http://localhost/) on my Browser and it said “It Works”. But when I tried to open the phpmyadmin (http://localhost/phpmyadmin/) which is used to manage your MySQL backend and tables it shows the 404 Not Found error.
By Default your www directory is created here /var/www and the phpmyadmin configuration files are stored in /usr/share/phpmyadmin. So the trick involved here is to point your the later location or directory from your former directory. To do this open your terminal and run the following command.
sudo ln -s /usr/share/phpmyadmin /var/www
This will create the pointer to /usr/share/phpmyadmin in /var/www
Now open the http://localhost/phpmyadmin/ and you are good to go. If you still face any problems feel free to ask and comment.
Popularity: 2% [?]


I wonder if it's the best way to solve the problem…
I've examined the apache.conf in etc/phpmyadmin, there is alias for /phpmyadmin/ to /usr/share/phpmyadmin. Can't understand why alias doesn't work
Your method worked, but maybe there will be problems in future
)) I don't know ) Do you ?
Try setting the alias to /var/www/phpmyadmin in apache.conf. May be the absolute path works for you.
I don't think getting the PHPmyadmin work by pointing will create any problems in future.
Best of lucks.
hello,
I followed your instructions exactly and all i get is a directory listing – can't get phpmyadmin to open. any help – ubuntu 10
Thanks
Thank you! This was driving me crazy!
didnt work for me, tried doing the same thing, and it is asking me to save a file. open or save a phtml file type ….
while saving the file in php i get the following error how to correct it…error as follows "Could not save the file /var/www/hello.php.You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again."
Thanks for this!! Well done!
thanks man really it's workes
lmao that seems a tad hacky. it tricks your system to think that the pma folder is copied to www
thank you. you solved my problem. i m a rookie Ubuntu user…
Thank you!!
not working for me,
( please help me,
ubuntu 10