LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   The requested URL /phpmyadmin was not found on this server. (https://www.linuxquestions.org/questions/linux-newbie-8/the-requested-url-phpmyadmin-was-not-found-on-this-server-755878/)

zodehala 09-17-2009 06:43 AM

The requested URL /phpmyadmin was not found on this server.
 
1- i downloaded phpmyadmin into /home/admin/program/ using following command
Code:

wget -c http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.2.2/phpMyAdmin-3.2.2-all-languages.tar.gz?use_mirror=garr

2- and untared it following command
Code:

tar -xvf phpMyAdmin-3.2.2-all-languages.tar.gz -C /var/www/html/
3- renamed its name following commnand
Code:

mv phpMyAdmin-3.2.2-all-languages phpmyadmin
4- in order to open it 192.168.1.100/phpmyadmin but following error occured


Code:

Not Found

The requested URL /phpmyadmin was not found on this server.
Apache/2.2.3 (CentOS) Server at 192.168.1.100 Port 80


linuxlover.chaitanya 09-17-2009 07:38 AM

Have you configured Apache for phpmyadmin? If you have not there is no way apache know about it.
But I would like to ask why did not you install it using the package manager of your distribution? It would have been much easier. Also you would not have needed to configure anything. Package manager would have done it for you.

prasanta 09-17-2009 08:59 AM

Quote:

1- i downloaded phpmyadmin into /home/admin/program/ using following command
You need to put phpmyadmin in the apache working directory and then configure it. As of now you have downloaded to your home directory. Is your home directory the working directory for apache?

Regards,

--
Prasanta

linuxlover.chaitanya 09-19-2009 01:43 AM

If he has not configured apache, there is very little chance that his /home is working directory for it.

zodehala 09-19-2009 08:36 AM

Quote:

Originally Posted by prasanta (Post 3686992)
You need to put phpmyadmin in the apache working directory and then configure it. As of now you have downloaded to your home directory. Is your home directory the working directory for apache?

Regards,

--
Prasanta

Quote:

renamed its name following commnand
Code:

tar -xvf phpMyAdmin-3.2.2-all-languages.tar.gz -C /var/www/html/

how can i configure apache for it ? (any docs ?)

(i can not install it using yum )

prasanta 09-19-2009 11:05 AM

Quote:

how can i configure apache for it ? (any docs ?)
(i can not install it using yum )
After untaring it, I hope you have done,
Code:

cd /var/www/html
mv phpMyAdmin-3.2.2-all-languages phpmyadmin

as you had done before.

No from the borwser, just browse,
Code:

http://localhost/phpmyadmin
It shall ask for the MySQL root username/password and will let you go through the simple steps. I hope have installed MySQL before.

Regards,

linuxlover.chaitanya 09-23-2009 01:45 AM

Well phpmyadmin is not just static html pages. It is built with php. So you NEED web server to parse the pages.
Create a virtual host in apache configuration and put Directory index to be where phpmyadmin has been untared. And it should have index.php or index.html file. Configure apache to use this file as document root.

warpgeek 08-19-2011 03:17 AM

I know this thread is a little old now, but I came across it via Google.

I had this problem recently on a CentOS machine with VirtualMin installed. Using VirtualMin's installer script, I installed the old version (v2) of PHPMyAdmin into a domain, and then got the same error as described in this thread.

My solution? A bit weird, but basically I edited phpmyadmin/index.php, inserting:

Code:

echo "hello";
in the next line after the opening <?php tag.

This forced the server to send a header and thus the rest of the page, which (I think) may have had the effect of setting a cookie on my machine.

I then removed the echo line and refreshed the page - it still works.

Hope that helps somebody.


All times are GMT -5. The time now is 01:03 AM.