[SOLVED] Apache/2.2.22 (Ubuntu) Server at localhost Port 80
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80
LAMP is working well since localhost/info.php gives me a page but when I write localhost/phpmyapache/ I get an error shown above. I'm using linux 12.10, I have set all the permissions at /var/www to chmod 777!
Please help asap!
What distro and version are you using? How did you install PhpMyAdmin, using package manager? And don't set your permissions to 777, that's a real bad idea from any point of view, not only security. Depending on what distro you are using you should have a /etc/httpd/conf.d or /etc/apache2/conf.d directory. Do you have a file phpmyadmin.conf in there? Looking forward to your participation in the forums.
Is that error in the title the full error? The line you showed in the title is normally just the 'footer' of the error page and there usually is more info.
Quote:
localhost/phpmyapache/
I doubt that that exists Typo here in the forum or in your url on your machine.
Last edited by Wim Sturkenboom; 01-06-2013 at 07:34 AM.
Is that error in the title the full error? The line you showed in the title is normally just the 'footer' of the error page and there usually is more info.
I doubt that that exists Typo here in the forum or in your url on your machine.
Hi Wim,
Nice catch, didn't even see that one. I assume it's a typo on the user's end, hope he comes back with something.
My distro version is:
Linux francis-PC 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux
When I typed both commands I saw an empty file, what is the full command that will help me see phpmyadmin.conf?
francis@francis-PC:~$ sudo nano /etc/apache2/conf.d
sudo: unable to resolve host francis-PC
francis@francis-PC:~$ sudo nano /etc/httpd/conf.d
sudo: unable to resolve host francis-PC
Why do you think the underlined code gives an error? It's a listing of what's in the /etc/apache2/conf.d directory. Do you have a directory /etc/phpmyadmin? How did you install PhpMyAdmin?
I can see some content.
I installed using sudo/tasksel
first I installed lamp, then I installed phpmyadmin using the command ....sudo apt-get install phpmyadmin and choose apache2. was using a tutorial found in http://www.allaboutlinux.eu/joomla-2-5-3-on-ubuntu/3/
Problem is that the necessary line to include the configuration file for PhpMyAdmin in the Apache configuration, so that Apache can serve your webpages for PhpMyAdmin, is not included. There are a couple of ways to try to fix this, let's take it one by one, starting by the easiest.
Run the following in the terminal:
Code:
sudo dpkg-reconfigure -plow phpmyadmin
That will reconfigure the installation of phpmyadmin and should either include the line in apache.conf or copy the file for PhpMyAdmin to the correct path /etc/apache2/conf.d (or create a symlink. After you did that, if it finishes correctly without throwing an error, check again with the grep command:
Code:
grep phpmyadmin /etc/apache2/apache2.conf
If the line exists, reload apache with the following command:
Code:
sudo /etc/init.d/apache2 reload
and see if you can connect to the PhpMyAdmin page (http://localhost/phpmyadmin. If this is unsuccessful, then run the following:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.