Posted by Inderjeet as Ubuntu
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: 1% [?]
2 Responses
matuhin
February 14th, 2010 at 10:50 pm
1I 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 ?
Inderjeet
February 15th, 2010 at 6:55 am
2Try 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.
RSS feed for comments on this post · TrackBack URI
Leave a reply