Forums

Even
Even
Offline
Resolved
1 votes
Not Found

The requested URL /mysql was not found on this server.


:S
Wednesday, April 25 2012, 07:00 PM
Share this post:
Responses (27)
  • Accepted Answer

    Sunday, January 11 2015, 11:40 PM - #Permalink
    Resolved
    0 votes
    well Ive been having this issue in Beta 6.6.0 (beta 2)
    I have looked around for a solution to the same problem.
    what i have noticed is the following:
    yum clean all && yum upgrade
    reported no updates
    yum install phpmyadmin
    reported already installed
    after setting up an alias in the httpd.conf file as sugested i natuarly restarted the HTTPD service
    [root@demo conf.d]# service httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: [Sun Jan 11 16:31:45 2015] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 1009 will probably never match because it overlaps an earlier Alias.
    [ OK ]

    now this looked pretty odd since i just added an alias whent to my browser and tried to access the webpage and sure enough
    Forbidden

    You don't have permission to access /phpmyadmin on this server.

    now that to me sounds like a permission problem and as the Alias was ALREADY in place (at the time of install im guessing)
    i figured id look around and found a few interesting things in side of this file
    /etc/httpd/conf.d/phpMyadmin.conf

    seems like by defualt it ONLY allows localhost as stated in the comments section at the top of the file (i'll attach it here if any one would like to see the file)
    now i havent yet adjusted any settings yet but when i do and get some results i'll post back and provide the changes

    EDIT: forgot the attached file
    # phpMyAdmin - Web based MySQL browser written in php
    #
    # Allows only localhost by default
    #
    # But allowing phpMyAdmin to anyone other than localhost should be considered
    # dangerous unless properly secured by SSL

    Alias /phpMyAdmin /usr/share/phpMyAdmin
    Alias /phpmyadmin /usr/share/phpMyAdmin

    <Directory /usr/share/phpMyAdmin/>
    AddDefaultCharset UTF-8

    <IfModule mod_authz_core.c>
    # Apache 2.4
    Require local
    </IfModule>
    <IfModule !mod_authz_core.c>
    # Apache 2.2
    Order Deny,Allow
    Deny from All
    Allow from 127.0.0.1
    Allow from ::1
    </IfModule>
    </Directory>

    <Directory /usr/share/phpMyAdmin/setup/>
    <IfModule mod_authz_core.c>
    # Apache 2.4
    Require local
    </IfModule>
    <IfModule !mod_authz_core.c>
    # Apache 2.2
    Order Deny,Allow
    Deny from All
    Allow from 127.0.0.1
    Allow from ::1
    </IfModule>
    </Directory>

    # These directories do not require access over HTTP - taken from the original
    # phpMyAdmin upstream tarball
    #
    <Directory /usr/share/phpMyAdmin/libraries/>
    Order Deny,Allow
    Deny from All
    Allow from None
    </Directory>

    <Directory /usr/share/phpMyAdmin/setup/lib/>
    Order Deny,Allow
    Deny from All
    Allow from None
    </Directory>

    <Directory /usr/share/phpMyAdmin/setup/frames/>
    Order Deny,Allow
    Deny from All
    Allow from None
    </Directory>

    # This configuration prevents mod_security at phpMyAdmin directories from
    # filtering SQL etc. This may break your mod_security implementation.
    #
    #<IfModule mod_security.c>
    # <Directory /usr/share/phpMyAdmin/>
    # SecRuleInheritance Off
    # </Directory>
    #</IfModule>
    The reply is currently minimized Show
  • Accepted Answer

    tthecyborg
    tthecyborg
    Offline
    Saturday, September 27 2014, 02:06 PM - #Permalink
    Resolved
    0 votes
    I had the problem aswell. The code in the picture ALex gave fixed my problem.

    I did not have the config in the folder and when i created it and typed the code displayed on the image it suddenly worked.

    But now it says that the login is incorrect, altho the login via putty works good....

    Any ideas?
    The reply is currently minimized Show
  • Accepted Answer

    zaf
    zaf
    Offline
    Saturday, April 06 2013, 10:02 AM - #Permalink
    Resolved
    0 votes
    thank you, had exactly same problem on 6.3 with a clean install, this solved my problem.
    The reply is currently minimized Show
  • Accepted Answer

    evhol tea
    evhol tea
    Offline
    Sunday, September 09 2012, 12:06 PM - #Permalink
    Resolved
    0 votes
    Tim Burgess wrote:
    Strange! is it installed?
    yum install phpMyAdmin --enablerepo=clearos-updates-testing

    I use the command above and then
    service webconfig restart

    yess..!! now PhpMyAdmin on my server is back... thanks
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 07 2012, 08:42 PM - #Permalink
    Resolved
    0 votes
    Yum is telling phpMyAdmin 3.5.2.2-1.el6.noarch is already installed

    I think you just solved the other mystery! That 3.5.2.2-1.el6 version is an EPEL build of phpMyAdmin - it doesn't have the little hooks to make it ClearOS-friendly. If you run an upgrade with the EPEL repository enabled, you may end up installing the EPEL version instead of the custom version intended for ClearOS. You can upgrade to the ClearOS version today by running:

    # yum --enablerepo=clearos-updates-testing upgrade phpMyAdmin

    I just added a tracker item to blacklist the phpMyAdmin package from EPEL.
    The reply is currently minimized Show
  • Accepted Answer

    arobinson
    arobinson
    Offline
    Friday, September 07 2012, 01:47 PM - #Permalink
    Resolved
    0 votes
    I got it working now. I restarted httpd instead of webconfig after creating Alexis missing file. Everything works now.
    The reply is currently minimized Show
  • Accepted Answer

    arobinson
    arobinson
    Offline
    Friday, September 07 2012, 01:45 PM - #Permalink
    Resolved
    0 votes
    Hi,

    I to am having this problem. I have tried restarting webconfig, tried restarting mysqld, did yum clean all && yum upgrade, tried yum install phpMyAdmin, nothing seemed to make a difference. Yum is telling phpMyAdmin 3.5.2.2-1.el6.noarch is already installed. I tried reinstalling phpMyAdmin and then restarting webconfig but still no luck.

    I tried Alexis C suggestion, however the phpMyAdmin.conf did not exist, so I created it with the contents from his attached picture. This gave me a certificate error, but when I attempted to continue I got the 404 error again.

    Any further suggestions?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 27 2012, 04:16 PM - #Permalink
    Resolved
    0 votes
    Thanks for the feedback. At this point, we'll just push out the "restart webconfig after install" fix. Hopefully, that's all that it was.
    The reply is currently minimized Show
  • Accepted Answer

    Kenan
    Kenan
    Offline
    Saturday, August 25 2012, 09:41 PM - #Permalink
    Resolved
    0 votes
    it's strange, it works now.
    thank you.

    Best regards
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 23 2012, 10:19 PM - #Permalink
    Resolved
    0 votes
    Just to clarify, does the following command resolve the issue:

    service webconfig restart

    The reason I'm asking: I can duplicate the issue but then fix it with the above restart command. It sounds like there might be more to it for some installs.
    The reply is currently minimized Show
  • Accepted Answer

    Kenan
    Kenan
    Offline
    Thursday, August 23 2012, 08:58 PM - #Permalink
    Resolved
    0 votes
    No change...the same...
    Installed 6.3 Final version.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, August 21 2012, 08:22 PM - #Permalink
    Resolved
    0 votes
    Did the restart work?
    The reply is currently minimized Show
  • Accepted Answer

    Kenan
    Kenan
    Offline
    Monday, August 20 2012, 10:17 AM - #Permalink
    Resolved
    0 votes
    still Investigating... ?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 09 2012, 09:09 PM - #Permalink
    Resolved
    0 votes
    Can you try the following from the command line?
    service webconfig restart
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 09 2012, 06:42 PM - #Permalink
    Resolved
    0 votes
    have same problem

    developer can remote my server if necessary

    regards
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, August 01 2012, 10:36 PM - #Permalink
    Resolved
    0 votes
    Investigating...
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, July 31 2012, 11:47 PM - #Permalink
    Resolved
    0 votes
    Hmmm fresh install 6.3.0 beta...and I have this problem. I have two boxes, both would appear to be configured the same - but one presents this problem and the other doesn't! its late but there is the following log snippet...

    /var/log/webconfig/error.log
    [Tue Jul 31 23:46:02 2012] [error] [client 192.168.1.5] File does not exist: /usr/clearos/framework/htdocs/mysql, referer: https://192.168.1.100:81/app/mysql
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 28 2012, 08:28 PM - #Permalink
    Resolved
    0 votes
    Weird, I don't need that line for it to work here
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 26 2012, 01:49 PM - #Permalink
    Resolved
    0 votes
    I had the same problem running COS Enterprise 6.2.0 (trial), unable to access phpMyAdmin.

    Followed the post of Alexis C and edited phpMyAdmin adding the indicated lines and was able to access phpMyAdmin, after a reboot, and create the database I required for Concrete5 instalation successfully.
    The reply is currently minimized Show
  • Accepted Answer

    Alexis C
    Alexis C
    Offline
    Wednesday, May 23 2012, 04:58 PM - #Permalink
    Resolved
    0 votes
    Hello, I think i might help you on this problem.

    I had the same issue (404 error when browsing to server/mysql) and after a while I resolved it by doing this :

     vim /usr/clearos/sandbox/etc/httpd/conf.d/phpMyAdmin.conf 


    After, you have to add the line "Allow from localhost" on both directories :
    http://img837.imageshack.us/img837/8620/mysqlfix.png

    After a restart of httpd service (edit : or a reboot) it should work (at least it worked for me).
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 23 2012, 06:12 AM - #Permalink
    Resolved
    0 votes
    Same problem here, clean install from "clearos-professional-6.2-x86_64.iso" and "Go To MySQL Management Tool" link gives 404 error. (mysql, web apps installed)

    Tried all the suggestions mentioned in this thread, but they did not work.

    What did work was this: http://www.linuxquestions.org/questions/linux-software-2/how-to-fix-the-requested-url-phpmyadmin-was-not-found-on-this-server-796610/#post4539480

    phpmyadmin quick intstall quide
    The reply is currently minimized Show
  • Accepted Answer

    Mierdin
    Mierdin
    Offline
    Saturday, May 12 2012, 05:00 AM - #Permalink
    Resolved
    0 votes
    Latest updates, fresh install. Same result here.

    Anyone have the fix?
    The reply is currently minimized Show
  • Accepted Answer

    Don Lafont
    Don Lafont
    Offline
    Wednesday, May 09 2012, 01:53 AM - #Permalink
    Resolved
    0 votes
    Yup... I just tried your install and still has the same problem.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 08 2012, 11:07 PM - #Permalink
    Resolved
    0 votes
    Strange! is it installed?
    yum install phpMyAdmin --enablerepo=clearos-updates-testing
    The reply is currently minimized Show
  • Accepted Answer

    Don Lafont
    Don Lafont
    Offline
    Tuesday, May 08 2012, 02:29 PM - #Permalink
    Resolved
    0 votes
    Even wrote:
    Hi :)

    It is a fresh install, phpMyadmin was not installed, i installed it and added the database, so now its "working" but database management /mysql link does not work. I have not tested yum clean all && yum upgrade, i installed 6.2 final .iso


    Same problem here! phpMyadmin link does not appear to work on the MySQL Database management tab. When I press the link button "Go To MySQL managemnt Tool" it says:

    The requested URL /mysql was not found on this server.

    Does something else need to be installed?
    The reply is currently minimized Show
  • Accepted Answer

    Even
    Even
    Offline
    Wednesday, April 25 2012, 09:58 PM - #Permalink
    Resolved
    0 votes
    Hi :)

    It is a fresh install, phpMyadmin was not installed, i installed it and added the database, so now its "working" but database management /mysql link does not work. I have not tested yum clean all && yum upgrade, i installed 6.2 final .iso
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 25 2012, 09:52 PM - #Permalink
    Resolved
    0 votes
    Odd - works OK here, have you applied the latest updates?

    is phpMyAdmin installed? is the mysql service running?

    Is this a fresh install from the ISO or an upgrade from beta?
    yum clean all && yum upgrade
    The reply is currently minimized Show
Your Reply