LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   HOW TO FIX ""The requested URL /phpMyAdmin was not found on this server."" (https://www.linuxquestions.org/questions/linux-software-2/how-to-fix-the-requested-url-phpmyadmin-was-not-found-on-this-server-796610/)

amritpalpathak 03-19-2010 10:36 PM

HOW TO FIX ""The requested URL /phpMyAdmin was not found on this server.""
 
i have install apache,php,mysql and then I have installed the phpmyadmin by issueing the command in terminal
sudo apt-get install phpmyadmin
after this ,in my web brower i type... localhost/phpmyadmin ,it give the error message

"Not Found

The requested URL /phpMyAdmin was not found on this server.
Apache/2.2.12 (Ubuntu) Server at localhost Port 80"


Please help me to solve it

smoker 03-20-2010 12:02 AM

Quote:

Should you get a 404 "Not Found" error when you point your browser to the location of phpMyAdmin (such as: http://localhost/phpmyadmin) this is likely caused by not checking the 'Apache 2' selection during installation. To redo the installation run the following:

Code:

sudo dpkg-reconfigure -plow phpmyadmin
Then select Apache 2 for the webserver you wish to configure.

If this does not work, then you can do the following to include the phpMyadmin-shipped Apache configuration into Apache:

Code:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload


https://help.ubuntu.com/community/phpMyAdmin

james_noob 11-27-2010 09:08 PM

phpmyadmin not found - resolved
 
Smoker,

thanks you so much for your detailed (and working!) explanation.

Regards,

James

twhd 03-29-2011 12:08 AM

am still getting the error ,not sure what to do now am new to all this, any help would be good thanks

shorebizgal 06-08-2011 08:19 AM

Just wanted to thank you for the help. After numerous purges and reinstalls with the same results your fix worked. The first code gave no change, but the second code gave me the results I needed. Again, Thanks to Smoker for the help.

donadoni 07-11-2011 05:06 PM

Thank you very much worked 1st time.

lixzzy 07-21-2011 11:45 AM

Thread: HOW TO FIX ""The requested URL /phpMyAdmin was not found on this server.
 
thanks for the help. worked great.

I have to say that what I have to do first was to edit the file /etc/phpmyadmin/apache.config

in the bottom part of the doc there is this:

# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>

# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Require valid-user--------------------here there was as Deny from All---------------
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Require valid-user--------------------same as above--------------------------------
</Directory>


with this change when I access the localhost/phpmyadmin it prompts a username password field that was setup at the phpadmin install process.

thanks again!!!

enrishi 07-26-2011 12:46 AM

My thanks also go to smoker.

I had the same problem and while the first suggestion didn't work, the second suggestion worked immediately. Voila! :)

mselema 08-02-2011 09:53 AM

thanks to @smoker it worked to me as well !!! now enjoyin lamp!

agriz 12-01-2011 01:17 PM

I am getting the same error. But I am using CentOS

I installed with yum command.
yum install phpmyadmin

The above solutions are not working for me

lithos 12-01-2011 03:14 PM

Quote:

Originally Posted by agriz (Post 4539388)
I am getting the same error. But I am using CentOS

I installed with yum command.
yum install phpmyadmin

The above solutions are not working for me

Because you don't need to install it with yum.

Create a directory on your server, like /var/www/html/phpmyadmin
and download and unpack phpMyAdmin, let's say v2.11.11.3 (d/l with wget ....)

then all you need to do is create an alias in Apache /etc/httpd/conf/httpd.conf
for phpmyadmin under some virtual host or other nameserver directive:
Code:

Alias /phpmyadmin "/var/www/html/phpmyadmin/"

<Directory /var/www/html/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php

<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>

</Directory>

then restart apache/httpd and try :
Code:

http://www.yourdomain.net/phpmyadmin
you should see something.

agriz 12-01-2011 03:16 PM

I am using suphp.

Quote:

<IfModule mod_php5.c>
Should i make any changes on this ?

lithos 12-02-2011 11:09 AM

Quote:

Originally Posted by agriz (Post 4539481)
I am using suphp.

Should i make any changes on this ?

I don't know what changes would be needed,
but here it states that
Quote:

suPHP does not support the php_value/php_admin_value directive known by mod_php to parse configuration options
Try it, you can't lose anything.

agriz 12-02-2011 01:35 PM

Quote:

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
I can see this error.
It seems SELinux is doing something. Not sure.

Quote:

SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0

agriz 12-03-2011 02:54 AM

Quote:

Alias /phpmyadmin "/var/www/html/phpmyadmin/"

<Directory "/var/www/html/phpmyadmin">
Options FollowSymLinks
DirectoryIndex index.php
Order allow,deny
Allow from all
<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>

</Directory>
Quote:

Forbidden
You don't have permission to access /phpmyadmin/index.php on this server.
In error log, I found this.
I tried to disable comment <IfModule mod_php5.c>, But still same error.
SuPHP is configured.

I gave chown to the suphp user and group
I changed the files to 644 and folder to 755

ERROR LOG

Quote:

[Sat Dec 03 14:20:57 2011] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Sat Dec 03 14:20:57 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Dec 03 14:20:57 2011] [notice] Digest: generating secret for digest authentication ...
[Sat Dec 03 14:20:57 2011] [notice] Digest: done
[Sat Dec 03 14:20:57 2011] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.2 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
[Sat Dec 03 14:21:00 2011] [error] [client 117.193.66.141] (13)Permission denied: access to /phpmyadmin/index.php denied


All times are GMT -5. The time now is 11:21 PM.