Coder Social home page Coder Social logo

Comments (17)

frastel avatar frastel commented on June 24, 2024

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

from puphpet.

Surreal9 avatar Surreal9 commented on June 24, 2024

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/",
}

from puphpet.

Surreal9 avatar Surreal9 commented on June 24, 2024

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

from puphpet.

jtreminio avatar jtreminio commented on June 24, 2024

We can add a per-vhost checkbox
On May 26, 2013 3:09 PM, "Surreal9" [email protected] 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
.

from puphpet.

Surreal9 avatar Surreal9 commented on June 24, 2024

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.

from puphpet.

frastel avatar frastel commented on June 24, 2024

@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?

from puphpet.

AV4TAr avatar AV4TAr commented on June 24, 2024

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

from puphpet.

frastel avatar frastel commented on June 24, 2024

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.

from puphpet.

AV4TAr avatar AV4TAr commented on June 24, 2024

i did this

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

from puphpet.

frastel avatar frastel commented on June 24, 2024

@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'],
}

from puphpet.

frastel avatar frastel commented on June 24, 2024

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.

from puphpet.

Surreal9 avatar Surreal9 commented on June 24, 2024

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.

from puphpet.

frastel avatar frastel commented on June 24, 2024

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.

from puphpet.

dabernathy89 avatar dabernathy89 commented on June 24, 2024

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.

from puphpet.

scoutman57 avatar scoutman57 commented on June 24, 2024

It does say this somewhere.

On Mon, Aug 19, 2013 at 9:09 AM, dabernathy89 [email protected]:

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
.

from puphpet.

dabernathy89 avatar dabernathy89 commented on June 24, 2024

@w2pc here's what I see:

http://imgur.com/vaRPptQ

from puphpet.

scoutman57 avatar scoutman57 commented on June 24, 2024

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 [email protected]:

@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
.

from puphpet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.