{"action":"opened","issue":{"url":"https://api.github.com/repos/puphpet/puphpet/issues/2265","repository_url":"https://api.github.com/repos/puphpet/puphpet","labels_url":"https://api.github.com/repos/puphpet/puphpet/issues/2265/labels{/name}","comments_url":"https://api.github.com/repos/puphpet/puphpet/issues/2265/comments","events_url":"https://api.github.com/repos/puphpet/puphpet/issues/2265/events","html_url":"https://github.com/puphpet/puphpet/issues/2265","id":147697466,"number":2265,"title":"Errors during vagrant up, php5 fails to install","user":{"login":"LittleBigDev","id":6631597,"avatar_url":"https://avatars.githubusercontent.com/u/6631597?v=3","gravatar_id":"","url":"https://api.github.com/users/LittleBigDev","html_url":"https://github.com/LittleBigDev","followers_url":"https://api.github.com/users/LittleBigDev/followers","following_url":"https://api.github.com/users/LittleBigDev/following{/other_user}","gists_url":"https://api.github.com/users/LittleBigDev/gists{/gist_id}","starred_url":"https://api.github.com/users/LittleBigDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LittleBigDev/subscriptions","organizations_url":"https://api.github.com/users/LittleBigDev/orgs","repos_url":"https://api.github.com/users/LittleBigDev/repos","events_url":"https://api.github.com/users/LittleBigDev/events{/privacy}","received_events_url":"https://api.github.com/users/LittleBigDev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-12T09:56:54Z","updated_at":"2016-04-12T09:56:54Z","closed_at":null,"body":"Hello,\r\n\r\nI'm totally lost and have no idea how to troubleshoot this. So, I'll just enumerate facts, and I'll try to help you when you have questions... Any help will be appreciated !\r\n\r\n- Just in case you wonder, I was lauching `vagrant up` from my Git Bash terminal. But I had exactly the same issues via windows cmd.\r\n- `vagrant up` has some warnings and errors. \r\n- **When trying to access my website, php files are not processed (they are downloaded, I can see the files content in the http response)**\r\n- Looks like php5 was not installed (actually, I checked. It's not.)\r\n- config.yaml file is pasted at the end of this post\r\n\r\n- `vagrant up` command ended up with this message :\r\n```\r\nThe SSH command responded with a non-zero exit status. Vagrant\r\nassumes that this means the command failed. The output for this command\r\nshould be in the log above. Please read the output to determine what\r\nwent wrong.\r\n```\r\n- Here are the warning and errors outputted by the initial `vagrant up` :\r\n```\r\nvagrant up > vagrant.log\r\n[...]\r\ncat vagrant.log | grep 'Error\\|Warning'\r\n    boxId: Warning: Remote connection disconnect. Retrying...\r\n==> boxId: Warning: Scope(Apt::Source[d7031.de]): $required_packages is deprecated and will be removed in the next major release, please use package resources instead.\r\n==> boxId: Warning: Scope(Apt::Source[repo.mysql.com-apt]): $required_packages is deprecated and will be removed in the next major release, please use package resources instead.\r\n==> boxId: Warning: Scope(Apt::Source[packages.dotdeb.org-php56-repo.puphpet]): $required_packages is deprecated and will be removed in the next major release, please use package resources instead.\r\n==> boxId: Warning: Scope(Apt::Source[packages.dotdeb.org-repo.puphpet]): $required_packages is deprecated and will be removed in the next major release, please use package resources instead.\r\n==> boxId: Warning: Found multiple default providers for vcsrepo: bzr, cvs, dummy, git, hg, svn; using bzr\r\n==> boxId: Warning: /Apt_key[Add key: 9EB5E8A3DF17D0B3 from Apt::Source d7031.de]: The id should be a full fingerprint (40 characters), see README.\r\n==> boxId: Warning: /Apt_key[Add key: 89DF5277 from Apt::Source packages.dotdeb.org-php56-repo.puphpet]: The id should be a full fingerprint (40 characters), see README.\r\n==> boxId: Notice: /Stage[main]/Locales/Exec[update-locale]/returns: *** update-locale: Error: invalid locale settings:  LANG=\"fr_FR.UTF-8\"\r\n==> boxId: Error: /Stage[main]/Locales/Exec[update-locale]: Failed to call refresh: /usr/sbin/update-locale returned 255 instead of one of [0]\r\n==> boxId: Error: /Stage[main]/Locales/Exec[update-locale]: /usr/sbin/update-locale returned 255 instead of one of [0]\r\n==> boxId: Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-mysql' returned 100: Reading package lists...\r\n==> boxId: Error: /Stage[main]/Puphpet_php/Puphpet::Php::Module[mysql]/Php::Module[mysql]/Package[PhpModule_mysql]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-mysql' returned 100: Reading package lists...\r\n==> boxId: Warning: /Stage[main]/Puphpet_php/Service[php5-fpm]: Skipping because of failed dependencies\r\n```\r\n- You can see the full log in this gist : https://gist.github.com/LittleBigDev/4760eff61f7faf2f8160634180e302ca\r\n- My config.yaml :\r\n```yaml\r\nvagrantfile:\r\n    target: local\r\n    vm:\r\n        provider:\r\n            local:\r\n                box: puphpet/debian75-x64\r\n                box_url: puphpet/debian75-x64\r\n                box_version: '0'\r\n                chosen_virtualizer: virtualbox\r\n                virtualizers:\r\n                    virtualbox:\r\n                        modifyvm:\r\n                            natdnshostresolver1: false\r\n                        showgui: 0\r\n                    vmware:\r\n                        numvcpus: 1\r\n                    parallels:\r\n                        use_linked_clone: 0\r\n                        check_guest_tools: 0\r\n                        update_guest_tools: 0\r\n                machines:\r\n                    vflm_4v8ru4guo3yh:\r\n                        id: boxId\r\n                        network:\r\n                            private_network: 192.168.56.101\r\n                            forwarded_port:\r\n                                vflmnfp_grk9ctv2jszo:\r\n                                    host: '9244'\r\n                                    guest: '22'\r\n                        hostname: boxId\r\n                        memory: '512'\r\n                        cpus: '1'\r\n        provision:\r\n            puppet:\r\n                manifests_path: puphpet/puppet/manifests\r\n                module_path: puphpet/puppet/modules\r\n                options:\r\n                    - '--verbose'\r\n                    - '--hiera_config /vagrant/puphpet/puppet/hiera.yaml'\r\n        synced_folder:\r\n            vflsf_3z1b3ems086l:\r\n                source: 'c:/vagrant/webroot'\r\n                target: /var/www\r\n                sync_type: default\r\n                smb:\r\n                    smb_host: ''\r\n                    smb_username: ''\r\n                    smb_password: ''\r\n                    mount_options:\r\n                        dir_mode: '0775'\r\n                        file_mode: '0664'\r\n                rsync:\r\n                    args:\r\n                        - '--verbose'\r\n                        - '--archive'\r\n                        - '-z'\r\n                    exclude:\r\n                        - .vagrant/\r\n                        - .git/\r\n                    auto: 'true'\r\n                owner: www-data\r\n                group: www-data\r\n        usable_port_range:\r\n            start: 10200\r\n            stop: 10500\r\n        post_up_message: ''\r\n    ssh:\r\n        host: 'false'\r\n        port: 'false'\r\n        private_key_path: 'false'\r\n        username: vagrant\r\n        guest_port: 'false'\r\n        keep_alive: '1'\r\n        forward_agent: 'false'\r\n        forward_x11: 'false'\r\n        shell: 'bash -l'\r\n        insert_key: 'false'\r\n    vagrant:\r\n        host: detect\r\n    proxy:\r\n        http: ''\r\n        https: ''\r\n        ftp: ''\r\n        no_proxy: ''\r\n        enabled: ''\r\nserver:\r\n    install: '1'\r\n    packages:\r\n        - vim\r\n        - htop\r\nusers_groups:\r\n    install: '1'\r\n    groups: {  }\r\n    users:\r\n        - username\r\nlocale:\r\n    install: '1'\r\n    settings:\r\n        default_locale: fr_FR.UTF-8\r\n        locales:\r\n            - en_GB.UTF-8\r\n            - en_US.UTF-8\r\n        timezone: Europe/Paris\r\nfirewall:\r\n    install: '1'\r\n    rules: {  }\r\ncron:\r\n    install: '1'\r\n    jobs: {  }\r\nnginx:\r\n    install: '0'\r\n    settings:\r\n        default_vhost: 1\r\n        proxy_buffer_size: 128k\r\n        proxy_buffers: '4 256k'\r\n        proxy_connect_timeout: 600s\r\n        proxy_send_timeout: 600s\r\n        proxy_read_timeout: 600s\r\n        names_hash_bucket_size: 128\r\n    upstreams: {  }\r\n    vhosts:\r\n        nxv_6b1dnrmxg6jx:\r\n            server_name: awesome.dev\r\n            server_aliases:\r\n                - www.awesome.dev\r\n            www_root: /var/www/awesome\r\n            listen_port: '80'\r\n            index_files:\r\n                - index.html\r\n                - index.htm\r\n                - index.php\r\n            client_max_body_size: 1m\r\n            ssl: '0'\r\n            ssl_cert: ''\r\n            ssl_key: ''\r\n            ssl_port: '443'\r\n            ssl_protocols: ''\r\n            ssl_ciphers: ''\r\n            rewrite_to_https: '1'\r\n            spdy: '1'\r\n            locations:\r\n                nxvl_me87e98rhk73:\r\n                    location: /\r\n                    autoindex: 'off'\r\n                    internal: 'false'\r\n                    try_files:\r\n                        - $uri\r\n                        - $uri/\r\n                        - /index.php$is_args$args\r\n                    fastcgi: ''\r\n                    fastcgi_index: ''\r\n                    fastcgi_split_path: ''\r\n                    proxy: ''\r\n                    proxy_redirect: ''\r\n                nxvl_49bqogdwhp4t:\r\n                    location: '~ \\.php$'\r\n                    autoindex: 'off'\r\n                    internal: 'false'\r\n                    try_files:\r\n                        - $uri\r\n                        - $uri/\r\n                        - /index.php$is_args$args\r\n                    fastcgi: '127.0.0.1:9000'\r\n                    fastcgi_index: index.php\r\n                    fastcgi_split_path: '^(.+\\.php)(/.*)$'\r\n                    fast_cgi_params_extra:\r\n                        - 'SCRIPT_FILENAME $request_filename'\r\n                        - 'APP_ENV dev'\r\n                    set:\r\n                        - '$path_info $fastcgi_path_info'\r\n                    proxy: ''\r\n                    proxy_redirect: ''\r\n    proxies: {  }\r\napache:\r\n    install: '1'\r\n    settings:\r\n        version: 2.4\r\n        user: www-data\r\n        group: www-data\r\n        default_vhost: true\r\n        manage_user: false\r\n        manage_group: false\r\n        sendfile: 0\r\n    modules:\r\n        - rewrite\r\n    vhosts:\r\n        av_2lptqc3et094:\r\n            servername: client.companyName.local\r\n            docroot: /var/www/company-client/app/webroot\r\n            port: '80'\r\n            setenv:\r\n                - 'APP_ENV dev'\r\n            setenvif:\r\n                - 'Authorization \"(.*)\" HTTP_AUTHORIZATION=$1'\r\n            custom_fragment: ''\r\n            ssl: '0'\r\n            ssl_cert: ''\r\n            ssl_key: ''\r\n            ssl_chain: ''\r\n            ssl_certs_dir: ''\r\n            ssl_protocol: ''\r\n            ssl_cipher: ''\r\nphp:\r\n    install: '1'\r\n    settings:\r\n        version: '56'\r\n    modules:\r\n        php:\r\n            - cli\r\n            - intl\r\n            - curl\r\n            - gd\r\n            - gmp\r\n            - imap\r\n            - ldap\r\n            - mbstring\r\n            - mysql\r\n            - mysqli\r\n            - xmlrpc\r\n            - xsl\r\n        pear: {  }\r\n        pecl: {  }\r\n    ini:\r\n        display_errors: 'On'\r\n        error_reporting: '-1'\r\n        session.save_path: /var/lib/php/session\r\n        date.timezone: Europe/Paris\r\n    fpm_ini:\r\n        error_log: /var/log/php-fpm.log\r\n    fpm_pools: {  }\r\n    composer: '1'\r\n    composer_home: ''\r\nxdebug:\r\n    install: '1'\r\n    settings:\r\n        xdebug.default_enable: '1'\r\n        xdebug.remote_connect_back: '1'\r\n        xdebug.remote_enable: '1'\r\n        xdebug.remote_handler: dbgp\r\n        xdebug.remote_port: '9000'\r\n        xdebug.remote_autostart: '1'\r\nblackfire:\r\n    install: '0'\r\n    settings:\r\n        server_id: ''\r\n        server_token: ''\r\n        agent:\r\n            http_proxy: ''\r\n            https_proxy: ''\r\n            log_file: stderr\r\n            log_level: '1'\r\n        php:\r\n            agent_timeout: '0.25'\r\n            log_file: ''\r\n            log_level: '1'\r\nxhprof:\r\n    install: '0'\r\nwpcli:\r\n    install: '0'\r\n    version: v0.21.1\r\ndrush:\r\n    install: '0'\r\n    version: 6.3.0\r\nruby:\r\n    install: '1'\r\n    versions: {  }\r\npython:\r\n    install: '1'\r\n    packages: {  }\r\n    versions: {  }\r\nnodejs:\r\n    install: '0'\r\n    settings:\r\n        version: '5'\r\n    npm_packages: {  }\r\nhhvm:\r\n    install: '0'\r\n    nightly: 0\r\n    composer: '1'\r\n    composer_home: ''\r\n    settings: {  }\r\n    server_ini:\r\n        hhvm.server.host: 127.0.0.1\r\n        hhvm.server.port: '9000'\r\n        hhvm.log.use_log_file: '1'\r\n        hhvm.log.file: /var/log/hhvm/error.log\r\n    php_ini:\r\n        display_errors: 'On'\r\n        error_reporting: '-1'\r\n        date.timezone: UTC\r\nmariadb:\r\n    install: '0'\r\n    settings:\r\n        version: '10.1'\r\n        root_password: '123'\r\n        override_options: {  }\r\n    adminer: 0\r\n    users:\r\n        mariadbnu_dkajqf5ldwnz:\r\n            name: dbuser\r\n            password: '123'\r\n    databases:\r\n        mariadbnd_fqc6z7qe2hpv:\r\n            name: dbname\r\n            sql: ''\r\n    grants:\r\n        mariadbng_6qc1yr5m1rp2:\r\n            user: dbuser\r\n            table: '*.*'\r\n            privileges:\r\n                - ALL\r\nmysql:\r\n    install: '1'\r\n    settings:\r\n        version: '5.6'\r\n        root_password: xxxxxxxx\r\n        override_options: {  }\r\n    adminer: 0\r\n    users:\r\n        mysqlnu_ut3iw6odw8a4:\r\n            name: username\r\n            password: xxxxxxxxxx\r\n    databases:\r\n        mysqlnd_wva4ttowf1ks:\r\n            name: myDbName\r\n            sql: ''\r\n    grants:\r\n        mysqlng_bhiqejuf7dbc:\r\n            user: username\r\n            table: '*.*'\r\n            privileges:\r\n                - ALL\r\npostgresql:\r\n    install: '0'\r\n    settings:\r\n        global:\r\n            encoding: UTF8\r\n            version: '9.4'\r\n        server:\r\n            postgres_password: '123'\r\n    databases: {  }\r\n    users: {  }\r\n    grants: {  }\r\n    adminer: 0\r\nmongodb:\r\n    install: '0'\r\n    settings:\r\n        bind_ip: 127.0.0.1\r\n        port: '27017'\r\n    globals:\r\n        version: 2.6.0\r\n    databases: {  }\r\nredis:\r\n    install: '0'\r\n    settings:\r\n        port: '6379'\r\nsqlite:\r\n    install: '0'\r\n    adminer: 0\r\n    databases: {  }\r\nmailhog:\r\n    install: '0'\r\n    settings:\r\n        smtp_ip: 0.0.0.0\r\n        smtp_port: 1025\r\n        http_ip: 0.0.0.0\r\n        http_port: '8025'\r\n        path: /usr/local/bin/mailhog\r\nbeanstalkd:\r\n    install: '0'\r\n    settings:\r\n        listenaddress: 0.0.0.0\r\n        listenport: '11300'\r\n        maxjobsize: '65535'\r\n        maxconnections: '1024'\r\n        binlogdir: /var/lib/beanstalkd/binlog\r\n        binlogfsync: null\r\n        binlogsize: '10485760'\r\n    beanstalk_console: 0\r\nrabbitmq:\r\n    install: '0'\r\n    settings:\r\n        port: '5672'\r\n    users: {  }\r\n    vhosts: {  }\r\n    plugins: {  }\r\nelastic_search:\r\n    install: '0'\r\n    settings:\r\n        version: 2.1.0\r\n        java_install: true\r\n    instances:\r\n        esi_2h38qjbx4u6f:\r\n            name: es-01\r\nsolr:\r\n    install: '0'\r\n    settings:\r\n        version: 4.10.2\r\n        port: '8984'\r\n```"}}