Git Product home page Git Product logo

laravel4-vagrant's Introduction

Laravel 4 w/ Vagrant

A basic Ubuntu 12.04 Vagrant setup with Laravel4 and PHP 5.5. PHP 5.4 w/ Apache 2.2 is available on the php54 branch.

Requirements

Setup

  • Clone this repository git clone http://github.com/bryannielsen/Laravel4-Vagrant.git
  • run vagrant up inside the newly created directory
  • (the first time you run vagrant it will need to fetch the virtual box image which is ~300mb so depending on your download speed this could take some time)
  • Vagrant will then use puppet to provision the base virtual box with our LAMP stack (this could take a few minutes) also note that composer will need to fetch all of the packages defined in the app's composer.json which will add some more time to the first provisioning run
  • You can verify that everything was successful by opening http://localhost:8888 in a browser

Note: You may have to change permissions on the www/app/storage folder to 777 under the host OS

For example: chmod -R 777 www/app/storage/

Usage

Some basic information on interacting with the vagrant box

Port Forwards

  • 8888 - Apache
  • 8889 - MySQL
  • 5433 - PostgreSQL

Default MySQL/PostgreSQL Database

  • User: root
  • Password: (blank)
  • DB Name: database

PHPmyAdmin

Accessible at http://localhost:8888/phpmyadmin using MySQL access credentials above.

PHP XDebug

XDebug is included in the build but disabled by default because of the effect it can have on performance.

To enable XDebug:

  1. Set the variable $use_xdebug = "1" at the beginning of puppet/manifests/phpbase.pp
  2. Then you will need to provision the box either with vagrant up or by running the command vagrant provision if the box is already up
  3. Now you can connect to XDebug on port 9001

XDebug Tools

Note: All XDebug settings can be configured in the php.ini template at puppet/modules/php/templates/php.ini.erb

Vagrant

Vagrant is very well documented but here are a few common commands:

  • vagrant up starts the virtual machine and provisions it
  • vagrant suspend will essentially put the machine to 'sleep' with vagrant resume waking it back up
  • vagrant halt attempts a graceful shutdown of the machine and will need to be brought back with vagrant up
  • vagrant ssh gives you shell access to the virtual machine

Virtual Machine Specifications
  • OS - Ubuntu 12.04
  • Apache - 2.4.6
  • PHP - 5.5.4
  • MySQL - 5.5.32
  • PostgreSQL - 9.1
  • Beanstalkd - 1.4.6
  • Redis - 2.2.12
  • Memcached - 1.4.13

laravel4-vagrant's People

Contributors

bencorlett avatar bertiful avatar bpierre avatar briankiewel avatar bryannielsen avatar codler avatar crynobone avatar cviebrock avatar daylerees avatar ericlbarnes avatar franzliedke avatar hirokws avatar jakobud avatar jasonlewis avatar jesseobrien avatar kapv89 avatar kbanman avatar lancepioch avatar loic-sharma avatar mcintyre94 avatar mikelbring avatar neoascetic avatar pedroborges avatar segfaultx64 avatar sparksp avatar taylorotwell avatar tobsn avatar tommyc81 avatar vespakoen avatar vfragosop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel4-vagrant's Issues

Error when running "php artisan migrate"

Hi bryannielsen,
I used Ubuntu 14.04, latest HHVM , nginx1.6, php 5.5 and mysql 5.5.
When I run "php artisan migrate", I got an error like this image:
https://imageshack.com/i/ipECg4Fpp

So, in Migrations directory I have a file with content:

class CreateUsers extends Migration {

/**
 * Run the migrations.
 *
 * @return void
 */
public function up()
{
    Schema::create('users',function($table){
        $table->increments('id');
        $table->string('username',60);
        $table->string('password',66);
        $table->integer('level')->default(1);
        $table->timestamps();
    });
}

/**
 * Reverse the migrations.
 *
 * @return void
 */
public function down()
{
    Schema::drop('users');
}

}

Not sure if its something i've done wrong but any suggestions would be appreciated!
Kevin

I have got the following errors

I am getting the following errors

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

puppet apply --modulepath '/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' --manifestdir /tmp/vagrant-puppet/manifests --detailed-exitcodes /tmp/vagrant-puppet/manifests/phpbase.pp || [ $? -eq 2 ]

Stdout from the command:

Question: UTC Timezone

I see the Vagrant file has one line with "--rtcuseutc", "on"

Later in the file, the timezone is set to America/NewYork.

lv4_config.vm.provision :shell, :inline => "echo \"America/New_York\" | sudo tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata"

If I delete this line, will all times be interpreted as UTC & would that create any problems with Laravel?

I can't install gems

Hi, first off, thank you for creating this, it's just what I need :)

I'm having a problem, however, in that I want to use Laravel-Guard, which relies on a few different ruby gems.

I'm having some problems trying to get the gems (such as guard, sass, et al.) I need installed, as upon running the relevant command:

gem install guard

I get the following error:

Fetching: ffi-1.9.0.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /opt/vagrant_ruby/lib/ruby/gems/1.8 directory.

To try and fix this problem I've tried running it using sudo, but that just gives me this:

Building native extensions.  This could take a while...
ERROR:  Error installing guard:
        ERROR: Failed to build gem native extension.

        /opt/vagrant_ruby/bin/ruby extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... no
checking for rb_thread_call_without_gvl()... no
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

make
sh: 1: make: not found


Gem files will remain installed in /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/ffi-1.9.0 for inspection.
Results logged to /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/ffi-1.9.0/ext/ffi_c/gem_make.out

Any ideas?

Setting up vhosts not working

in /etc/hosts I added:

127.0.0.1       localhost laralaunch.dev
127.0.1.1       laravel laravel precise32 laralaunch.dev

and in /etc/apache2/sites-enabled/000-default.conf, I have:

<VirtualHost *:80>
        ServerName   laralaunch.dev
        DocumentRoot /var/www/public

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>

        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
</VirtualHost>

But when I restart apache, the domain just does not catch. What am I doing wrong? How do I fix this?

Initial database configured incorrectly

The password for mysql is root but the one configured in app/config/database.php is empty. Wouldn't it be best to have it pre-configured with the correct password?

EDIT: probably solved [Exception] date.timezone not set in php.ini

[EDIT]
Looks like it has been solved with the #33 fix
[/EDIT]

I get this error in my php_error.log:
Exception: DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.

Since in the vagrantfile i can see this:
lv4_config.vm.provision :shell, :inline => "echo "America/New_York" | sudo tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata"

i will see if there's a way to put the same setting in php.ini

[get laravel packages] breaks during the Puppet initialization

Firstly, thanks for setting up this Vagrantbox.
After cloning your github repository, and running 'vagrant up', Puppet appears to start initializing stuff. But at a certain point, it hits an error (possibly related to "get laravel packages") I've included the end of the Puppet initialization run:

notice: /Stage[main]/Apache/Service[apache2]: Triggered 'refresh' from 4 events
notice: /Stage[main]/Laravel_app/Exec[install composer]/returns: executed successfully
notice: /Stage[main]/Laravel_app/Exec[global composer]/returns: executed successfully

err: /Stage[main]/Laravel_app/Exec[get laravel packages]/returns: change from notrun to 0 failed: /bin/sh -c 'cd /var/www/ && composer install' returned 1 instead of one of [0] at /tmp/vagrant-puppet/modules-0/laravel_app/manifests/init.pp:29

notice: /Stage[main]/Laravel_app/Exec[get laravel updates]: Dependency Exec[get laravel packages] has failures: true

warning: /Stage[main]/Laravel_app/Exec[get laravel updates]: Skipping because of failed dependencies

notice: /Stage[main]/Php/Package[php5-dev]/ensure: ensure changed 'purged' to 'latest'
notice: Finished catalog run in 486.18 seconds

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

cd /tmp/vagrant-puppet/manifests && puppet apply --modulepath '/tmp/vagrant-puppet/modules-0' /tmp/vagrant-puppet/manifests/phpbase.pp --detailed-exitcodes || [ $? -eq 2 ]

Then it kicks me back out to my commandline. Any clues for how to fix this?

Errors with new installation on Mavericks

Hello! I updated my system (new install, not upgrade) to Mavericks and there are something wrong when provisioning the box. It takes 2179.28 seconds to provisioning and I think that the problem is here:

err: /Stage[main]/Laravel_app/Exec[create laravel project]/returns: change from notrun to 0 failed: Command exceeded timeout at /tmp/vagrant-puppet/modules-0/laravel_app/manifests/init.pp:35 (at this point stops during 10 minutes or more)

When i go to localhost:8888 i see a white page

I paste the last log lines:

notice: /Stage[main]/Apache/File[/etc/apache2/mods-enabled/rewrite.load]/ensure: created
notice: /Stage[main]/Laravel_app/Exec[clean www directory]/returns: executed successfully
notice: /Stage[main]/Phpmyadmin/File[/etc/apache2/conf-enabled/phpmyadmin.conf]/ensure: created
err: /Stage[main]/Laravel_app/Exec[create laravel project]/returns: change from notrun to 0 failed: Command exceeded timeout at /tmp/vagrant-puppet/modules-0/laravel_app/manifests/init.pp:35
notice: /Stage[main]/Phpmyadmin/Package[phpmyadmin]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Phpmyadmin/File[/etc/phpmyadmin/config.inc.php]/content: content changed '{md5}f5201f1a5c501d2f0bacc551d9bfedce' to '{md5}fcaa8a6ea29ab87b15c2b588c95ba943'
notice: /Stage[main]/Phpmyadmin/File[/etc/phpmyadmin/config.inc.php]/mode: mode changed '0644' to '0775'
notice: /Stage[main]/Apache/Exec[echo "ServerName localhost" | sudo tee /etc/apache2/conf-enabled/fqdn.conf]/returns: executed successfully
notice: /Stage[main]/Apache/File[/etc/apache2/sites-available/000-default.conf]/content: content changed '{md5}7aca057d3c02f05f0188896e563edd4a' to '{md5}82abd1ac0be7335363e705538a4627f5'
notice: /Stage[main]/Apache/Service[apache2]: Triggered 'refresh' from 8 events
notice: Finished catalog run in 2179.28 seconds

p.d. After, I had installed Lion. I see the same behaviour with a workmate with mountain lion and he desist to use vagrant for this. Before install Mavericks i cannot use this box and my old boxes

Strategy for using git on laravel project when using git to manage Laravel4-Vagrant

My plan is to manage the changes I make to laravel4-vagrant using git, but I also want to manage my laravel changes using git. I am not quite sure how to set this up as /var/www is ignored and that is where my work would be. Can I start a git repo there somehow so that way outside of the VM I can use git to then manage a specific laravel project? e.g., I want to be able to vagrant up, do some work, manage my work in git, have my laravel project saved outside of the vm, and be able to redeploy via vagrant and then load up my laravel git repo. How is the best way to go about doing this, or should I be following a different game plan?

Install Memcached, not memcache

Hi!

I testing memcached on laravel but i can not configure it properly.

I think that there is a module missing. Provision install memcache but not memcached (this is which laravel works)

In my laravel project I added this in cache.php inside the app folder
'driver' => 'memcached',

'memcached' => array(
array('host' => '127.0.0.1', 'port' => 11212, 'weight' => 100),
),

in my vagrant file I added a new port forwading
lv4_config.vm.forward_port 11211, 11212

and I added in /puppet/modules/php/manifests/init.pp memcached

$packages = [
    "php5", 
    "php5-cli", 
    "php5-mysql", 
    "php-pear", 
    "php5-dev", 
    "php-apc", 
    "php5-mcrypt", 
    "php5-gd", 
    "php5-curl",
    "libapache2-mod-php5",
    "php5-xdebug",
    "php5-memcache",
    "php5-memcached",
    "php5-pgsql",
    "php5-sqlite"
]

And then I provisioning my box and see with php -v that all are correct installed

Are you able sometime to work with memcacheD with laravel?

working with docker & vagrant in windows

after clone using command "git clone https://github.com/dotcloud/docker.git"
"cd docker"
following issues are not resolved.... please any one fix the issue....
"vagrant up" command is not working
issues as follows:

D:\docker>vagrant up
Vagrant failed to initialize at a very early stage:

The home directory you specified is not accessible. The home
directory that Vagrant uses must be both readable and writable.

You specified: C:/Users/Acer/.vagrant.d

Request: `php artisan` alias

I would submit a pull request for this one, if I knew how to do it - but I don't.. sorry.

Anyway, I think it would be worth adding a .bashrc alias which maps php artisan to art. This would save our keyboards and keyboards a little bit of wear and tear :)

change "extra" to "mount_options"

in vagrantfile I had to change "extra" tag to
mount_options => ["dmode=777","fmode=777"])

so line will be as follow

lv4_config.vm.share_folder("www", "/var/www", "./www", :mount_options => ["dmode=777","fmode=777"])

Chrome Failed to Load Resource

Occasionally I'm seeing a bunch of "Failed to Load Resource" errors in the chrome web inspector, they usually appear 3-5 seconds after the page has loaded successfully.

It doesn't seem to affect the page rendering and the last activity in the network pane indicates the page loaded with a 200 status.

This only happens with PHP files (straight HTML are fine) so it must be an issue with the php5 apache module. Haven't seen this happen in Firefox or Safari.

PHP XDebug Not working

Following:

"To enable XDebug:

Set the variable $use_xdebug = "1" at the beginning of puppet/manifests/phpbase.pp
Then you will need to provision the box either with vagrant up or by running the command vagrant provision if the box is already up
Now you can connect to XDebug on port 9001"

Instructions doesn't result in being able to connect to xdebug on port 9001. In both cases of a fresh vagrant up, or a vagrant up and then vagrant provision, telnet to port 9001 in the vagrant itself results in "Unable to connect to remote house: Connection refused"

root@laravel:~# telnet localhost 9001
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

Laravel4-Vagrant on Windows

I dont know why, but for some reason, this line never gets executed on my Windows maschine:

lv4_config.vm.provision :shell, :path => "puppet/scripts/enable_remote_mysql_access.sh"

If I put it right behind the other provision line: "lv4_config.vm.provision" it works though.

Can anybody explain this behaviour?

Puppet Issues

We had some errors crop up today on a few boxes based on Laravel4-Vagrant - my best guess is that the php versions in the repo got bumped from 5.4.x to 5.5.x, which in turn changed a bunch of other dependencies (requiring Apache 2.4 for example) - I don't know puppet well enough to know how to limit the php version to 5.4.x, but I'm guessing that's what has to be done.

Any guidance you could provide would be great. below is a dump of the errors:

[laravel4] Running provisioner: puppet...
Running Puppet with phpbase.pp...
stdin: is not a tty
err: /Stage[main]/Laravel_app/Exec[get laravel updates]/returns: change from notrun to 0 failed: /bin/sh -c 'cd /var/www/ && composer update' returned 255 instead of one of [0] at /tmp/vagrant-puppet/modules-0/laravel_app/manifests/init.pp:41
notice: /Stage[main]/Php54/Exec[php54 apt update]/returns: executed successfully
notice: /Stage[main]/Php54/Exec[add php54 apt-repo]/returns: executed successfully
notice: /Stage[main]//Exec[apt-get update]/returns: executed successfully
notice: /Stage[main]/Php/Package[php5-mysql]/ensure: ensure changed '5.4.17-1~precise+1' to '5.5.1+dfsg-1~precise+1'
notice: /Stage[main]/Php/Package[php5-gd]/ensure: ensure changed '5.4.17-1~precise+1' to '5.5.1+dfsg-1~precise+1'
notice: /Stage[main]/Php/Package[php-apc]/ensure: ensure changed '3.1.13-1~precise+1' to '4.0.1-4~precise+1'
notice: /Stage[main]/Php/Package[php5-mcrypt]/ensure: ensure changed '5.4.17-1~precise+1' to '5.5.1+dfsg-1~precise+1'
notice: /Stage[main]/Php/Package[php5-xdebug]/ensure: ensure changed '2.2.1-1~precise+1' to '2.2.3-1~precise+2'
notice: /Stage[main]/Php/Package[php5-memcache]/ensure: ensure changed '3.0.6-5~precise+1' to '3.0.8-1~precise+2'
notice: /Stage[main]/Php/Package[php5]/ensure: ensure changed '5.4.17-1~precise+1' to '5.5.1+dfsg-1~precise+1'
notice: /Stage[main]/Php/Package[php-pear]/ensure: ensure changed '5.4.17-1~precise+1' to '5.5.1+dfsg-1~precise+1'
notice: /Stage[main]/Php/Package[php5-pgsql]/ensure: ensure changed '5.4.17-1~precise+1' to '5.5.1+dfsg-1~precise+1'
notice: /Stage[main]/Php/Package[php5-curl]/ensure: ensure changed '5.4.17-1~precise+1' to '5.5.1+dfsg-1~precise+1'
err: /Stage[main]/Php/Package[libapache2-mod-php5]/ensure: change from 5.4.17-1~precise+1 to 5.5.1+dfsg-1~precise+1 failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libapache2-mod-php5' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libapache2-mod-php5 : Depends: apache2-api-20120211 but it is not installable
                       PreDepends: apache2 (>= 2.4)
E: Unable to correct problems, you have held broken packages.
 at /tmp/vagrant-puppet/modules-0/php/manifests/init.pp:25

Lost connection to MySQL server

Hi I have two projects using this vagrant setup. It's great thanks.

for some reason one project I can't connect with Navicat or a desktop sql client. The other connects no problem. The most recent vagrant setup is the one causing the sql desktop connection problems, the other one i setup earlier in the summer.

on the problem vagrant setup i get this error from navicat: Lost connection to MySQL server at 'reading initial communication packe…

Has anything changed in this vagrant setup in the last couple months that would prevent sql clients from connecting? Change to firewall settings for example?

Vagrant fails to initialize

After cloning the repo and running vagrant up in the directory it creates, I'm immediately getting an error:

➜  Laravel4-Vagrant git:(master) vagrant up
Vagrant failed to initialize at a very early stage:

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /Users/casey/Build/Laravel4-Vagrant/Vagrantfile
Message: cannot load such file -- vagrant/command

Request: HHVM

Do you think you can bake some support for HHVM into the box?

I'm not sure that it is a suitable alternative to PHP for anything accessed via the web interface/apache - but I've heard that it is really fast for running CLI stuff.

It could be good to have as an alternative to the php command via the CLI, allowing for commands to be run via hhvm artisan migrate (or whatever)

Just a thought :)

Doesn't work on Windows 7

Hey, I just tried running this, but there is no response on localhost:8888 . I had the "DL is depraced, use Fiddle" messages. So I tried to install Ruby 1.9.3 and have added it to system path. I was also able to "vagrant ssh". I tried this with Vagrant 1.4.3 at the beginning and then I tried Vagrant 1.3.5, but with that, installation finished, but there were many failed dependencies errors.

I was also getting "Could not retrieve fact fqdn" warning and "Stderr from the command: stdin: is not a tty". No clue here.

Is there anybody running this on Windows? It looks really great, but as a Vagrant newcomer, it's quite hard to figure out where is a problem.

Artisan commands from host

Setup a vagrant command to pass artisan commands through to the laravel setup. Something like vagrant artisan migrate would be nice. Currently the closest way to do this currently is vagrant ssh -c "php /var/www/artisan list"

Nginx varient

Would be super cool to have an Nginx varient as aposed to Apache. Don't know whether I should just fork and change myself, or if you could just add it in alongside Apache (different port)?

Migrate error [ErrorException] Undefined variable: table

Hey,

Getting an error when running php artisan migrate:

[ErrorException]
Undefined variable: table

migrate [--bench[="..."]] [--database[="..."]] [--path[="..."]] [--package[="..."]] [--pretend] [--seed]

Not sure if its something i've done wrong but any suggestions would be appreciated!

Joe

config.vm.customize calls are VirtualBox-specific

I'm pretty new to vagrant / virtualbox but i'm getting this error message when I run vagrant up

There were warnings and/or errors while loading your Vagrantfile.
Your Vagrantfile was written for an earlier version of Vagrant,
and while Vagrant does the best it can to remain backwards
compatible, there are some cases where things have changed
significantly enough to warrant a message. These messages are
shown below.

Warnings:
* `config.vm.customize` calls are VirtualBox-specific. If you're
using any other provider, you'll have to use config.vm.provider in a
v2 configuration block.

Forward SSH Agent

Need to do this so that we can install private composer packages to which the host machine has public key access.

Can't connect to postgresql from my local machine

Hello,
I just installed the Laravel4-Vagrant box !
All is running well but I can't connect to the postgresql database from my local machine (I'm using Pgadmin3).
This is the information that I'm using :
host : localhost
port : 5433
user : root
password : I can't use no password as described in the doc so I use "root" again

Pgadmin3 tells me that "Server doesn't listen".

Thanks in advance !

sqlite PDO driver missing

Hi, me again, sorry about this.

Just a quick one, but the box doesn't have the PDO drivers for sqlite installed by default. This can be easily fixed by running sudo apt-get install php5-sqlite on the command line (or the puppet equivalent).

This wouldn't normally bother me (I've never used sqlite), but I'm reading Laravel Testing Decided by Jeffrey Way (very good book) and he talks about using an sqlite database in memory for testing purposes, which seems like a very good idea.

(I would submit a pull request for this, but, alas, I have no idea how to achieve this).

xdebug port

why not leave the xdebug port at 9000. There will be no conflict because the vagrant server is using that port to contact the host. Right?

Laravel directory not mapped correctly to /var/www

It seems that local edits to Laravel code (ie routes.php edits) dont get mirrored to host /var/www? The initial setup is accurate, but future changes dont seem to work correctly.

I have tried to perform a symlink but doesn't work?

ln -fs /vagrant /var/www

Any recommendations here?

In short, apache2 is using /var/www as the home directory, but edits performed locally are shared to /vagrant directory (which is correct as far as I can tell) So, how can I get /vagrant to point to /var/www (again the link I have created doesnt work)

I have also tried:

rm -rf /var/www
ln -fs /vagrant /var/www

But, when restart apache sudo service apache2 restart it gives an error starting access denied to '/public' directory?

Should composer be part of its own manifest instead of the laravel one?

I really like the look of this vagrant box and am going to use it myself for projects (laravel and other non-laravel ones).

I've never really used puppet before but being it seems like installing laravel and installing composer should be 2 seperate steps (especially considering its a global installation of composer).

So something like puppet/modules/composer/manifests/init.pp

class composer
{

    package { 'git-core':
        ensure => present,
    }

    exec { 'install composer':
        command => 'curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin',
        require => Package['php5-cli'],
        unless => "[ -f /usr/local/bin/composer ]"
    }

    exec { 'global composer':
        command => "sudo mv /usr/local/bin/composer.phar /usr/local/bin/composer",
        require => Exec['install composer'],
        unless => "[ -f /usr/local/bin/composer ]"
    }
}

I wanted to get others thoughts on this before submitting a PR

Lack of default mysql password prevents access via phpMyAdmin

As stated in the title, because the default settings for mysql don't include a password for the root user, you're unable to log into phpmyadmin because it's config is set to prevent passwordless logins.

I can see three ways off solving this issue:

  • Set-up a default password for the root user.
  • Change the default config for phpmyadmin to allow passwordless logins.
  • Provide some instructions on how to set your own password for the root user.

Personally, in this instance, I went for the 3rd option, following these instructions, which worked - although I'm sure there is no-doubt a far batter way of doing this.

Install Laravel 4 throught Composer

Wouldn't it better now to install Laravel 4 using this command:

composer create-project laravel/laravel

instead of duplicating Laravel's source code in this repo?

Laravel directory not mapped correctly to /var/www

It seems that local edits to Laravel code (ie routes.php edits) dont get mirrored to host /var/www? The initial setup is accurate, but future changes dont seem to work correctly.

I have tried to perform a symlink but doesn't work?

ln -fs /vagrant /var/www

Any recommendations here?

Vagrant don't initialize

This is what happen when I do vagrant up

$ vagrant up
Bringing machine 'laravel4' up with 'virtualbox' provider...
[laravel4] Importing base box 'precise32'...
←[0K[laravel4] Matching MAC address for NAT networking...
[laravel4] Setting the name of the VM...
[laravel4] Clearing any previously set forwarded ports...
[laravel4] Fixed port collision for 22 => 2222. Now on port 2200.
[laravel4] Creating shared folders metadata...
[laravel4] Clearing any previously set network interfaces...
[laravel4] Preparing network interfaces based on configuration...
[laravel4] Forwarding ports...
[laravel4] -- 22 => 2200 (adapter 1)
[laravel4] -- 80 => 8888 (adapter 1)
[laravel4] -- 3306 => 8889 (adapter 1)
[laravel4] -- 5432 => 5433 (adapter 1)
[laravel4] Booting VM...
[laravel4] Waiting for VM to boot. This can take a few minutes.
[laravel4] VM booted and ready for use!
[laravel4] Setting hostname...
[laravel4] Configuring and enabling network interfaces...
[laravel4] Mounting shared folders...
[laravel4] -- /vagrant
[laravel4] -- /var/www
[laravel4] -- /tmp/vagrant-puppet/manifests
[laravel4] -- /tmp/vagrant-puppet/modules-0
[laravel4] Running provisioner: shell...
[laravel4] Running: inline script
stdin: is not a tty
America/New_York

Current default time zone: 'America/New_York'
Local time is now:      Tue May  7 12:03:15 EDT 2013.
Universal Time is now:  Tue May  7 16:03:15 UTC 2013.

[laravel4] Running provisioner: puppet...
Running Puppet with phpbase.pp...
stdin: is not a tty
←[0;36mnotice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat]/ensure: created←[0m
←[0;36mnotice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin]/ensure: created←[0m
←[0;36mnotice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin/concatfragments.sh]/ensure: defined content as '{md5}256169ee61115a6b717b2844d2ea3
128'←[0m
←[0;36mnotice: /Stage[main]/Laravel_app/Exec[remove optimized class loader]/returns: executed successfully←[0m
←[0;36mnotice: /Stage[main]/Laravel_app/Package[git-core]/ensure: ensure changed 'purged' to 'present'←[0m
←[1;35merr: /Stage[main]/Postgresql::Server/Package[postgresql-server]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o
 DPkg::Options::=--force-confold install postgresql-9.1' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libpq5 postgresql-client-9.1 postgresql-client-common postgresql-common
  ssl-cert
Suggested packages:
  oidentd ident-server locales-all postgresql-doc-9.1 openssl-blacklist
The following NEW packages will be installed:
  libpq5 postgresql-9.1 postgresql-client-9.1 postgresql-client-common
  postgresql-common ssl-cert
0 upgraded, 6 newly installed, 0 to remove and 66 not upgraded.
Need to get 5503 kB of archives.
After this operation, 15.7 MB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libpq5 i386 9.1.5-0ubuntu12.04
  404  Not Found [IP: 91.189.91.14 80]
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main postgresql-client-common all 129 [25.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main ssl-cert all 1.0.28ubuntu0.1 [12.3 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main postgresql-common all 129 [95.4 kB]
Err http://security.ubuntu.com/ubuntu/ precise-security/main libpq5 i386 9.1.5-0ubuntu12.04
  404  Not Found [IP: 91.189.92.202 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main postgresql-client-9.1 i386 9.1.5-0ubuntu12.04
  404  Not Found [IP: 91.189.92.202 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main postgresql-9.1 i386 9.1.5-0ubuntu12.04
  404  Not Found [IP: 91.189.92.202 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/postgresql-9.1/libpq5_9.1.5-0ubuntu12.04_i386.deb  404  Not Found [IP: 91.189.92.202 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/postgresql-9.1/postgresql-client-9.1_9.1.5-0ubuntu12.04_i386.deb  404  Not Found [IP: 91.189.9
2.202 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/postgresql-9.1/postgresql-9.1_9.1.5-0ubuntu12.04_i386.deb  404  Not Found [IP: 91.189.92.202 8
0]
Fetched 133 kB in 3min 7s (710 B/s)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Exec[create_postgresql_conf_path]: Dependency Package[postgresql-server] has failures: true←[0
m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Exec[create_postgresql_conf_path]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/File_line[postgresql.conf#include]: Dependency Package[postgresql-server] has failures: true←[
0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/File_line[postgresql.conf#include]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Php54/Exec[php54 apt update]/returns: executed successfully←[0m
←[0;36mnotice: /Stage[main]/Php54/Package[python-software-properties]/ensure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[main]/Php54/Exec[add php54 apt-repo]/returns: executed successfully←[0m
←[0;36mnotice: /Stage[main]//Exec[apt-get update]/returns: executed successfully←[0m
←[0;36mnotice: /Stage[main]/Php/Package[php5-mysql]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Php/Package[php5-gd]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Memcached/Package[memcached]/ensure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[main]/Php/Package[php-apc]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Php/Package[php5-mcrypt]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Php/Package[php5-xdebug]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Php/Package[php5-memcache]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Php/Package[php5]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Redis/Package[redis-server]/ensure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[main]/Php/Package[php-pear]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Php/Package[php5-pgsql]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Mysql/Package[mysql-server]/ensure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[main]/Php/Package[php5-curl]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Other/Package[curl]/ensure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[main]/Beanstalkd/Package[beanstalkd]/ensure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[main]/Php/Package[libapache2-mod-php5]/ensure: ensure changed 'purged' to 'latest'←[0m
←[0;36mnotice: /Stage[main]/Mysql/Exec[set-mysql-password]/returns: executed successfully←[0m
←[0;36mnotice: /Stage[main]/Mysql/Exec[create-default-db]/returns: executed successfully←[0m
←[0;36mnotice: /Stage[main]/Mysql/Exec[grant-default-db]/returns: executed successfully←[0m
←[0;36mnotice: /Stage[main]/Apache/Package[apache2]/ensure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[main]/Php/File[/etc/php5/apache2/php.ini]/content: content changed '{md5}a199da053cb070fcd15210120e49cd20' to '{md5}22ce8f7f24988f065d
e0afe0fcb157bd'←[0m
←[0;36mnotice: /Stage[main]/Apache/File[/etc/apache2/mods-enabled/rewrite.load]/ensure: created←[0m
←[0;36mnotice: /Stage[main]/Phpmyadmin/File[/etc/apache2/conf.d/phpmyadmin.conf]/ensure: created←[0m
←[0;36mnotice: /Stage[main]/Phpmyadmin/Package[phpmyadmin]/ensure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[main]/Apache/Exec[echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn]/returns: executed successfully←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/con
cat/_etc_postgresql_9.1_main_pg_hba.conf]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/co
ncat/_etc_postgresql_9.1_main_pg_hba.conf]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/con
cat/_etc_postgresql_9.1_main_pg_hba.conf/fragments.concat]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/co
ncat/_etc_postgresql_9.1_main_pg_hba.conf/fragments.concat]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/con
cat/_etc_postgresql_9.1_main_pg_hba.conf/fragments.concat.out]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/co
ncat/_etc_postgresql_9.1_main_pg_hba.conf/fragments.concat.out]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/File_line[postgresql.conf#listen_addresses]: Dependency Package[postgresql-server] has failure
s: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/File_line[postgresql.conf#listen_addresses]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Apache/File[/etc/apache2/sites-available/default]/content: content changed '{md5}b38ca5a963f52930ede3f4e1958f3275' to '{md5}82ab
d1ac0be7335363e705538a4627f5'←[0m
←[0;36mnotice: /Stage[main]/Apache/File[/etc/apache2/sites-available/default]/mode: mode changed '0644' to '0777'←[0m
←[0;36mnotice: /Stage[main]/Apache/Service[apache2]: Triggered 'refresh' from 6 events←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/con
cat/_etc_postgresql_9.1_main_pg_hba.conf/fragments]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/co
ncat/_etc_postgresql_9.1_main_pg_hba.conf/fragments]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Laravel_app/Exec[install composer]/returns: executed successfully←[0m
←[0;36mnotice: /Stage[main]/Laravel_app/Exec[global composer]/returns: executed successfully←[0m
←[1;35merr: /Stage[main]/Laravel_app/Exec[get laravel updates]/returns: change from notrun to 0 failed: Command exceeded timeout at /tmp/vagrant-puppet/modules-0/laravel_app/manifests/init.pp:41←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba_rule[allow access to all users]/Concat::Fragment[pg_hba_rule_allow access to all users]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/100_pg_hba_rule_allow access to all users]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba_rule[allow access to all users]/Concat::Fragment[pg_hba_rule_allow access to all users]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/100_pg_hba_rule_allow access to all users]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba_rule[local access as postgres user]/Concat::Fragment[pg_hba_rule_local access as postgres user]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/001_pg_hba_rule_local access as postgres user]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba_rule[local access as postgres user]/Concat::Fragment[pg_hba_rule_local access as postgres user]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/001_pg_hba_rule_local access as postgres user]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba_rule[local access to database with same name]/Concat::Fragment[pg_hba_rule_local access to database with same name]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/002_pg_hba_rule_local access to database with same name]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba_rule[local access to database with same name]/Concat::Fragment[pg_hba_rule_local access to database with same name]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/002_pg_hba_rule_local access to database with same name]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba_rule[deny access to postgresql user]/Concat::Fragment[pg_hba_rule_deny access to postgresql user]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/003_pg_hba_rule_deny access to postgresql user]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba_rule[deny access to postgresql user]/Concat::Fragment[pg_hba_rule_deny access to postgresql user]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/003_pg_hba_rule_deny access to postgresql user]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba_rule[allow access to ipv6 localhost]/Concat::Fragment[pg_hba_rule_allow access to ipv6 localhost]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/101_pg_hba_rule_allow access to ipv6 localhost]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba_rule[allow access to ipv6 localhost]/Concat::Fragment[pg_hba_rule_allow access to ipv6 localhost]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/101_pg_hba_rule_allow access to ipv6 localhost]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/Exec[concat_/etc/postgresql/9.1/main/pg_hba.conf]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/Exec[concat_/etc/postgresql/9.1/main/pg_hba.conf]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/etc/postgresql/9.1/main/pg_hba.conf]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Beforeservice/Postgresql::Pg_hba[main]/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/etc/postgresql/9.1/main/pg_hba.conf]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Server/Exec[reload_postgresql]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Server/Exec[reload_postgresql]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Server/Service[postgresqld]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Server/Service[postgresqld]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]//Postgresql::Db[database]/Postgresql::Database[database]/Postgresql_psql[Check for existence of db 'database']: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Postgresql::Db[database]/Postgresql::Database[database]/Postgresql_psql[Check for existence of db 'database']: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]//Postgresql::Db[database]/Postgresql::Database[database]/Exec[/usr/lib/postgresql/9.1/bin/createdb --template=template0 --encoding 'UTF8'
 'database']: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Postgresql::Db[database]/Postgresql::Database[database]/Exec[/usr/lib/postgresql/9.1/bin/createdb --template=template0 --encoding 'UTF8'  'database']: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Postgresql::Config::Afterservice/Exec[set_postgres_postgrespw]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Postgresql::Config::Afterservice/Exec[set_postgres_postgrespw]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]//Postgresql::Db[database]/Postgresql::Database[database]/Postgresql_psql[REVOKE CONNECT ON DATABASE "database" FROM public]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Postgresql::Db[database]/Postgresql::Database[database]/Postgresql_psql[REVOKE CONNECT ON DATABASE "database" FROM public]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]//Postgresql::Db[database]/Postgresql::Database_user[root]/Postgresql::Role[root]/Postgresql_psql[CREATE ROLE "root" ENCRYPTED PASSWORD 'root' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Postgresql::Db[database]/Postgresql::Database_user[root]/Postgresql::Role[root]/Postgresql_psql[CREATE ROLE "root" ENCRYPTED PASSWORD 'root' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]//Postgresql::Db[database]/Postgresql::Database_grant[GRANT root - ALL - database]/Postgresql_psql[GRANT ALL ON database "database" TO "root"]: Dependency Package[postgresql-server] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Postgresql::Db[database]/Postgresql::Database_grant[GRANT root - ALL - database]/Postgresql_psql[GRANT ALL ON database "database" TO "root"]: Skipping because of failed dependencies←[0m
←[1;35merr: /Stage[main]/Php/Package[php5-dev]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-dev' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  autoconf automake autotools-dev libltdl-dev libltdl7 libtool m4 shtool
Suggested packages:
  autoconf2.13 autoconf-archive gnu-standards autoconf-doc gettext libtool-doc
  automaken gfortran fortran95-compiler gcj
The following NEW packages will be installed:
  autoconf automake autotools-dev libltdl-dev libltdl7 libtool m4 php5-dev
  shtool
0 upgraded, 9 newly installed, 0 to remove and 129 not upgraded.
Need to get 2559 kB of archives.
After this operation, 10.7 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php5/ubuntu/ precise/main php5-dev i386 5.4.14-1~precise+1 [498 kB]
Err http://us.archive.ubuntu.com/ubuntu/ precise/main libltdl7 i386 2.4.2-1ubuntu1
  Connection failed [IP: 91.189.91.13 80]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main m4 i386 1.4.16-2ubuntu1 [195 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main autoconf all 2.68-1ubuntu2 [560 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main autotools-dev all 20120210.1ubuntu1 [42.4 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main automake all 1:1.11.3-1ubuntu2 [571 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise/main libltdl-dev i386 2.4.2-1ubuntu1 [203 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise/main libtool i386 2.4.2-1ubuntu1 [302 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main shtool all 2.0.8-6 [149 kB]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libt/libtool/libltdl7_2.4.2-1ubuntu1_i386.deb  Connection failed [IP: 91.189.91.13 80]
Fetched 2521 kB in 3min 16s (12.8 kB/s)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
 at /tmp/vagrant-puppet/modules-0/php/manifests/init.pp:25←[0m
←[0;36mnotice: Finished catalog run in 2124.35 seconds←[0m
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

cd /tmp/vagrant-puppet/manifests && puppet apply --modulepath '/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' phpbase.pp --detailed-exitcodes || [ $? -eq 2 ]

phpMyAdmin is not working

Hi, php sessions and therefore phpMyAdmin are not working. I was getting this phpMyAdmin error: "Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly." .
Currently, session.save_path is pointing to "/var/lib/php5" not to "/var/lib/php5/sessions". (I am not sure if it is necessary to change the folder permission)

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.