Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
03-19-2010, 10:36 PM
|
#1
|
Member
Registered: Feb 2010
Posts: 116
Rep:
|
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
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
03-20-2010, 12:02 AM
|
#2
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
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
|
|
2 members found this post helpful.
|
11-27-2010, 09:08 PM
|
#3
|
LQ Newbie
Registered: Nov 2010
Location: Welling, Kent, UK
Distribution: Ubuntu 10.04 LTS
Posts: 1
Rep:
|
phpmyadmin not found - resolved
Smoker,
thanks you so much for your detailed (and working!) explanation.
Regards,
James
|
|
|
03-29-2011, 12:08 AM
|
#4
|
LQ Newbie
Registered: Mar 2011
Posts: 1
Rep:
|
am still getting the error ,not sure what to do now am new to all this, any help would be good thanks
Last edited by twhd; 03-29-2011 at 12:10 AM.
Reason: added txt
|
|
|
06-08-2011, 08:19 AM
|
#5
|
LQ Newbie
Registered: Jun 2011
Posts: 1
Rep: 
|
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.
|
|
|
07-11-2011, 05:06 PM
|
#6
|
LQ Newbie
Registered: Feb 2009
Posts: 3
Rep:
|
Thank you very much worked 1st time.
|
|
|
07-21-2011, 11:45 AM
|
#7
|
LQ Newbie
Registered: Jul 2011
Posts: 1
Rep: 
|
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!!!
|
|
|
07-26-2011, 12:46 AM
|
#8
|
LQ Newbie
Registered: Jul 2011
Posts: 1
Rep: 
|
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! 
|
|
|
08-02-2011, 09:53 AM
|
#9
|
LQ Newbie
Registered: May 2010
Posts: 3
Rep:
|
thanks to @smoker it worked to me as well !!! now enjoyin lamp!
|
|
|
12-01-2011, 01:17 PM
|
#10
|
Member
Registered: Nov 2011
Posts: 197
Rep: 
|
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
|
|
|
12-01-2011, 03:14 PM
|
#11
|
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144
|
Quote:
Originally Posted by agriz
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.
|
|
|
12-01-2011, 03:16 PM
|
#12
|
Member
Registered: Nov 2011
Posts: 197
Rep: 
|
I am using suphp.
Should i make any changes on this ?
|
|
|
12-02-2011, 11:09 AM
|
#13
|
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144
|
Quote:
Originally Posted by agriz
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.
|
|
|
12-02-2011, 01:35 PM
|
#14
|
Member
Registered: Nov 2011
Posts: 197
Rep: 
|
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
|
|
|
|
12-03-2011, 02:54 AM
|
#15
|
Member
Registered: Nov 2011
Posts: 197
Rep: 
|
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 12:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|