sapienza / vagrant-php-box Goto Github PK
View Code? Open in Web Editor NEWSet up super fast a PHP5 development box with apache, mysql, phpmyadmin and whatever else that you may need
Set up super fast a PHP5 development box with apache, mysql, phpmyadmin and whatever else that you may need
Hi,
I do all as noted, when i access to localhost:8080 i receive
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
But nothing work inside, i try create file inside sites/index.html but it no work.
Hi,
I have tried to follow instructions on my mac and can't get it to work.
Maybe it's my lack understanding the vagrant yet, though I follow there instructions.
I have clone this rep to home/amir/vagrant-php-box
Go inside the folder and then $ vagrant up.
Then is the sites tilde I have crush a new Drupal site - home/amir/vagrant-php-box/sites/dev
then I go to http://localhost:8080 and see nothing.
Also try http://localhost:8080/dev and nothing.
What am I missing?
Where do I setup my DB?
Thanks!
I get this everytime no matter what I try:
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
puppet apply --modulepath '/tmp/vagrant-puppet-3/modules-0:/etc/puppet/modules' --manifestdir /tmp/vagrant-puppet-3/manifests --detailed-exitcodes /tmp/vagrant-puppet-3/manifests/init.pp
Stdout from the command:
Stderr from the command:
stdin: is not a tty
Could not parse for environment production: Could not match /usr/bin/
, at /tmp/vagrant-puppet-3/manifests/init.pp:2 on node
Especially in this section:
==> default: Notice: /Stage[main]/Mysql/Package[mysql-server]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Base/Exec[apt-get update]/returns: executed successfully
==> default: Notice: /Stage[main]/Php/Package[php5-mysql]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Php/Package[php5-imagick]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Php/Package[php5-mcrypt]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Php/Package[php5-xdebug]/ensure: ensure changed 'purged' to 'present'
vagrant up
takes about 14 minutes 0_o lol
I configured vagrant for speed up but it doesn't help:
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
end
Any idea how i can improve performance for vagrant up
?
Virtualbox is running ok , and all the files are setting ok...but when I try localhost:8080 ....i'm getting this error
"Can't access this website...localhost connection rejected"
HELP PLS !!
I noticed owner of synced directories are not correctly set in vagrant file:
# Sync between the web root of the VM and the 'sites' directory
config.vm.synced_folder "sites/", "/var/www", owner: "www-data", group: "www-data"
It causes permission issues on php scripts.
I can confirm vagrat is working, and the server is responsive.
I could access MySQL on http://33.33.33.10/phpmyadmin
but for some reason, when accessing localhost:8080 it looks like it's empty. Apache is working but doesn't find any files...
I want to configure it to be able to use a number of domains for development. What I have to update in /etc/hosts on my mac and what configuration I need in virtual machine?
I can't login with the new user or the previous one. I have tryed (user: root, password: root) and (user: root, password: )
Hello, thank you for your fantastic VagrantFile. It seems that when I ran it, mysql did not get installed. I resolved that by installing mysql-server in the terminal.
Need to add a line like below for ``vagrant up'' to work
config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
The files put into /sites/
on the host machine are linked into /var/www/
in the VM, but it looks like it's serving files out of the /var/www/html/
directory by default, so you should put your php files into /sites/html/
on the host machine if you want them to appear when you visit localhost:8080. Should that be noted in the Readme.md?
On another note, for some reason on my mac I couldn't access the site at port 8080. I had to change the port to something else (e.g. 8888) in the Vagrantfile to access the VM from my host machine.
Hello, it's possible to custom the localhost url please ? Thanks.
And this error is a problem ?
http://i.imgur.com/m2vYYhU.png
Thanks.
Hi !, i'm trying to add some proyects to the folder html...so I try to copy the htdocs folder and access one proyect on http://localhost:8080/htdocs/proyect ...but I can't because throw me an error forbidden and URL NOT FOUND ....how can I solve this problem ? HELP pls!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.