Comments (17)
Do you have any requirements for the installation or is a default installation enough?
from puphpet.
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.
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.
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.
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.
@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.
i did like @Surreal9 i was first a bit lost about installing phpmyadmin and not finding it in host/phpmyadmin je.
from puphpet.
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.
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.
@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.
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.
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.
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.
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.
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.
@w2pc here's what I see:
from puphpet.
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:
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-22874993
.
from puphpet.
Related Issues (20)
- Failed to start The PHP 5.6 FastCGI Process Manager
- Windows 10 provision error
- Error: While executing gem ... invalid option: --no-rdoc HOT 5
- Error: Evaluation Error: Error while evaluating a Resource Statement
- Can't start vagrant box: "gpg: keyserver receive failed: keyserver error" HOT 1
- Apache redirects to https HOT 2
- Centos7 partial failure HOT 1
- elasticsearch version is wrong
- Mariadb install failed HOT 1
- elasticsearch 2.4.6 not installed
- rsync auto not work
- synced_folder: few projects
- Failed to create the host-only adapter HOT 3
- r
- PGAdmin 4 - not able to connect through SSH Tunneling HOT 1
- Do not have permissions to write to a file HOT 1
- PHP not working in fresh bento/ubuntu-16.04 box HOT 5
- Finite number of databases allowed
- puphpet.com is offline HOT 16
- Install Puphpet site en development computer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puphpet.