Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Any way to have PHPMyAdmin included in the vm? #31

Closed
Surreal9 opened this issue May 25, 2013 · 17 comments · Fixed by #51
Closed

Any way to have PHPMyAdmin included in the vm? #31

Surreal9 opened this issue May 25, 2013 · 17 comments · Fixed by #51
Assignees

Comments

@Surreal9
Copy link

I can add the 'phpmyadmin' package to be installed, and it is, but the alias isn't made in the apache config to serve it. Any suggestions how this could be done?

@frastel
Copy link
Contributor

frastel commented May 26, 2013

Do you have any requirements for the installation or is a default installation enough?

@Surreal9
Copy link
Author

Default would be fine, I just want a nice GUI for working with mysql from the vm :)

I ended up getting it working by adding this to the end of my manifests/default.pp file:

exec { "phpmyadmin apache conf":
command => "echo 'Include /etc/phpmyadmin/apache.conf' >> /etc/apache2/apache2.conf",
path => "/usr/local/bin/:/bin/",
}

@Surreal9
Copy link
Author

Not sure if that is the recommended way but it seems to work under my 12.04.02 LTS vm; that was after adding 'phpmyadmin' to the packages-to-be-installed section

@jtreminio
Copy link
Member

We can add a per-vhost checkbox
On May 26, 2013 3:09 PM, "Surreal9" notifications@github.com wrote:

Not sure if that is the recommended way but it seems to work under my
12.04.02 LTS vm.


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-18468909
.

@Surreal9
Copy link
Author

I think it's the only thing missing from an otherwise perfect setup :) This is a really neat project!

I probably wouldn't be the only one who would look to use phpmyadmin out of the gate.

@frastel
Copy link
Contributor

frastel commented May 29, 2013

@jtreminio I would work on this issue after the current PRs are merged for avoiding merge conflicts or did you already work on this issue?

@AV4TAr
Copy link

AV4TAr commented May 30, 2013

i did like @Surreal9 i was first a bit lost about installing phpmyadmin and not finding it in host/phpmyadmin je.

@ghost ghost assigned frastel May 30, 2013
@frastel
Copy link
Contributor

frastel commented Jun 3, 2013

I have to change the used nginx puppet module as we currently are not able to define the vhost for phpmyadmin as we want :/
I'll try this module https://github.com/example42/puppet-nginx which was a fork from the current used repository.
There is no problem for the apache part.

@AV4TAr
Copy link

AV4TAr commented Jun 3, 2013

i did this

exec { "phpmyadmin apache conf":
command => "cat /etc/phpmyadmin/apache.conf > /etc/apache2/sites-enabled/phpmyadmin",
path => "/usr/local/bin/:/bin/",
}

@frastel
Copy link
Contributor

frastel commented Jun 3, 2013

@AV4TAr That means that you have already phpMyAdmin installed and configured properly on your machine. But this however is currently not possible with puPHPet. As I mentioned there is no problem with the apache part.
However you may have a look at the file type and the link option. This would be a better approach:

file { 'phpmyadmin.conf':
    ensure  => link,
    path    => '/etc/apache2/sites-enabled/50-phpmyadmin.conf',
    target  => '/etc/phpmyadmin/apache.conf',
    require => Class['phpmyadmin'],
    notify  => Service['apache2'],
}

@frastel
Copy link
Contributor

frastel commented Jun 4, 2013

Luckily nginx module did not have to be replaced. phpMyAdmin will be reachable under http://phpmyadmin (new entry in your hosts file is needed) when the PR passes.

jtreminio added a commit that referenced this issue Jun 5, 2013
Added phpMyAdmin integration fixes #31
@Surreal9
Copy link
Author

Surreal9 commented Jun 6, 2013

Hey guys, thanks for adding this in. I don't know if the current implementation of using a vhost is preferable to the default config which creates an alias.. I actually prefer the alias since it doesn't force me to use a hostname for a given VM's phpmyadmin, I can just go to mybox/phpmyadmin, easier to work with multiple vm's if required..

anyway just my 2 cents; either way thanks for looking at it. I'll probably just look to adjust my manifest again.

@frastel
Copy link
Contributor

frastel commented Jun 7, 2013

The aliasing is also my prefered way. However I had a lot of problems defining an according location for nginx (no problem at all with apache). Therefore we decided to skip aliasing in the first step.

@dabernathy89
Copy link

It'd be great if the puphpet homepage mentioned that the hosts file needed to be edited to access phpmyadmin - took me a while to nail down this thread to find that info.

@scoutman57
Copy link
Contributor

It does say this somewhere.

On Mon, Aug 19, 2013 at 9:09 AM, dabernathy89 notifications@github.comwrote:

It'd be great if the puphpet homepage mentioned that the hosts file needed
to be edited to access phpmyadmin - took me a while to nail down this
thread to find that info.


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-22874228
.

@dabernathy89
Copy link

@w2pc here's what I see:

http://imgur.com/vaRPptQ

@scoutman57
Copy link
Contributor

You're right I don't see it on there. I am pretty sure it talked about this
before somewhere, maybe it was just on github stuff. A note should be added
for this and XHProf. Althought it's pretty self explanatory since you have
to map all your virtualhost names in your hosts file as well.

On Mon, Aug 19, 2013 at 9:19 AM, dabernathy89 notifications@github.comwrote:

@w2pc https://github.com/w2pc here's what I see:

http://imgur.com/vaRPptQ


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-22874993
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants