Koozali.org: home of the SME Server

[SOLVED] phpMyAdmin installation

Offline mealogav

  • *
  • 27
  • +0/-0
[SOLVED] phpMyAdmin installation
« on: July 04, 2013, 10:51:22 AM »
I've installed phpMyAdmin on a newly installed and updated sme8 server, but I can't get the login page to appear.

I've read all the forum entries that seem to offer pointers - but still have the same problem.

yum reports that it's installed :

Quote
[root@databox2 phpMyAdmin]# yum list installed smeserver-phpmyadmin
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.ox.ac.uk
 * smeaddons: mirror.chiropratique.org
 * smeextras: mirror.chiropratique.org
 * smeos: mirror.chiropratique.org
 * smeupdates: mirror.chiropratique.org
 * updates: mirror.sov.uk.goscomb.net
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Installed Packages
smeserver-phpmyadmin.noarch                             3.5.2.2-6.el5.sme                                                            installed

There are many php files in the /usr/share/phpMyAdmin  folder.

The access configuration shows as private with admin access enabled :
Quote
[root@databox2 phpMyAdmin]# config show phpmyadmin
phpmyadmin=configuration
    access=private
    adminaccess=enabled
    multiaccess=disabled

/etc/httpd/conf.d/  contains a  phpMyAdmin.conf   file.
Near the top of this file are the alias entries
Quote
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

All this looks correct to me, but when I browse to  https://databox2/phpMyAdmin   (databox2 being my hostname) from the local network all I get is a "404 Not found" error.

At the top of the  /etc/httpd/conf.d/phpMyAdmin.conf  file are the comments :
Quote
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL

Surely this can't mean that by default only a browser running on the sme server can access phpMyAdmin - can it?
I'm on WinXP PC connected to the local network of the sme server.  I should be able to access phpMyAdmin from that shouldn't I?

Thanks for any help ...  Gavin
« Last Edit: July 09, 2013, 08:55:37 PM by mealogav »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: phpMyAdmin installation
« Reply #1 on: July 04, 2013, 11:50:43 AM »
mealogav

Try using
https://yourdomain.com/phpMyAdmin
https://yourdomain.com/phpmyadmin
I just installed that contrib & the login & pw screen opens OK in a browser from a workstation on the LAN when using the above styled URL.
The admin user login works OK too, by default.
« Last Edit: July 05, 2013, 02:48:09 PM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mealogav

  • *
  • 27
  • +0/-0
Re: phpMyAdmin installation
« Reply #2 on: July 05, 2013, 08:56:10 AM »
Thanks for your reply Janet,

Quote
but when I browse to  https://databox2/phpMyAdmin

It would appear that only /phpmyadmin works  (all lower case)  /phpMyAdmin  doesn't work.  Even though there is an apache alias for this and everywhere else on the internet it is refered to as phpMyAdmin!!

I can't believe that I haven't tried that before - but provided I use all lower case it just works now.

Thanks for prompting me in the right direction ...  Just got to get a procedure for installation of updates and contribs without internet access now on the production server - but that's a different thread!!

Thanks Gavin

Offline mealogav

  • *
  • 27
  • +0/-0
Re: phpMyAdmin installation
« Reply #3 on: July 05, 2013, 09:00:55 AM »
Although I notice you said you used
Quote
https://yourdomain.com/phpMyAdmin

That doesn't work for me.  Only  https://yourdomain.com/phpmyadmin  works.

If I use http://   it will redirect to https://  on port 443

but only lower case works - did /phpMyAdmin really work for you or did you actually use /phpmyadmin  ??

Thanks Gavin

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: phpMyAdmin installation
« Reply #4 on: July 05, 2013, 02:47:07 PM »
mealogav

Quote
Only  https://yourdomain.com/phpmyadmin  works.

Sorry my original reply was not correct, I meant to say the above.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mealogav

  • *
  • 27
  • +0/-0
Re: phpMyAdmin installation
« Reply #5 on: July 05, 2013, 04:07:32 PM »
No worries.

I still can't see why  /phpMyAdmin   doesn't work ....  But at least I've got it working now!

Thanks,  Gavin

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: phpMyAdmin installation
« Reply #6 on: July 09, 2013, 05:27:35 PM »
You should change the Title to SOLVED:
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline mealogav

  • *
  • 27
  • +0/-0
Re: [SOLVED] phpMyAdmin installation
« Reply #7 on: July 09, 2013, 08:59:11 PM »
Hmmm ... well ok - I have, but I'm not sure that it is totally solved!  It works with lower case /phpmyadmin but no one confirmed that it is not supposed to work with /phpMyAdmin and the reason why.

Anyhow as it's working maybe life's too short to worry much about it.

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: [SOLVED] phpMyAdmin installation
« Reply #8 on: July 09, 2013, 09:05:06 PM »
Via the Apache website
http://httpd.apache.org/docs/current/mod/mod_alias.html#page-header
Quote
The Alias directive allows documents to be stored in the local filesystem other than under the DocumentRoot. URLs with a (%-decoded) path beginning with URL-path will be mapped to local files beginning with directory-path. The URL-path is case-sensitive, even on case-insensitive file system

The alias is set in
Code: [Select]
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminAlias
Code: [Select]
rpm -ql smeserver-phpmyadmin shows the location for the templates.
Code: [Select]
nano /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminAlias to see the alias
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: [SOLVED] phpMyAdmin installation
« Reply #9 on: July 09, 2013, 09:24:29 PM »
If you really need the capability of using any verions of /PhPMyAdMiN

Then you may want to look into the
Code: [Select]
AliasMatch SyntaxAlso referenced in the same Apache webpage

Quote
The full range of regular expression power is available. For example, it is possible to construct an alias with case-insensitive matching of the URL-path:
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: [SOLVED] phpMyAdmin installation
« Reply #10 on: July 13, 2013, 04:45:09 PM »
please refer to the contrib wiki page  when installing a contrib everything is explained there


plus do not modify any template file, as they will be erased on update. copy them in the approriate place in templates-cutom before attempting any modification.

Please consider also that these will overule any new updates done to the original template.