IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Serveurs (Apache, IIS,...) Discussion :

[Vagrant] acceder depuis une autre pc


Sujet :

Serveurs (Apache, IIS,...)

  1. #1
    Membre régulier
    Homme Profil pro
    Symfony - CMS Wordpress - Zend
    Inscrit en
    Septembre 2011
    Messages
    306
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Symfony - CMS Wordpress - Zend
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 306
    Points : 101
    Points
    101
    Par défaut [Vagrant] acceder depuis une autre pc
    Bonjour,

    J'utilise PUPHPET je demarre ma machine virtuelle

    et je voudrait accéder a mon localhost depuis un smartphone ou autre

    j'ai toujours ce message: ce site est inaccessible

    j'ai modifier mon apache2.conf comme ceci:

    Code apache : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    AccessFileName .htaccess
     <FilesMatch "^\.ht">
         Require all denied
     </FilesMatch>
     
     <Directory /var/www>
       Options FollowSymLinks
       AllowOverride None
       Require all granted
       Allow from 127.0.0.1
       Allow from 192.168.0.128 // ip telephone mobile
       Allow from 192.168.56.1 // ip machine virtuelle
       Allow from local.dev // alias de mon localhost
       Allow from 192.168.0.181 // ip de machine hôte
       Allow from all
     </Directory>
     
     
     HostnameLookups Off
     ErrorLog "/var/log/apache2/error.log"
     LogLevel warn
     /etc/apache2/apache2.conf[RO]


    je met bien l'adresse de ma machine sur mon téléphone mobile et j'ai ajouter l'adresse ip de mon téléphone dans le apache2.conf
    merci pour votre aide

    UPDATE: voici mon erreur quand j'assaie de faire une requete avec retrofit (App Android) vers mon backend php:
    pour rappel je suis sur une machine virtuelle vagrant..
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    : onFailure: failed to connect to /10.0.2.2 (port 80)
    et voici mon fichier conf dans
    /etc/apache2/apache2.conf
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    User www-data
     Group www-data
    
     AccessFileName .htaccess
     <FilesMatch "^\.ht">
         Require all denied
     </FilesMatch>
    
     <Directory /var/www>
       Options FollowSymLinks
       AllowOverride None
       Require all granted
       allow from all
     </Directory>
    
    
     HostnameLookups Off
     ErrorLog "/var/log/apache2/error.log"
     LogLevel warn
     EnableSendfile Off
    personne pour m'aiguiller?

  2. #2
    Membre régulier
    Homme Profil pro
    Symfony - CMS Wordpress - Zend
    Inscrit en
    Septembre 2011
    Messages
    306
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Symfony - CMS Wordpress - Zend
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 306
    Points : 101
    Points
    101
    Par défaut J'ai ouvert mon port 80 sur la vm..
    Bonsoir,

    J'ai ouvert le port 80 sur ma vm dans virtual box

    mais je n'arrive pas a me connecté depuis ma tablette sur ma machine vitrtuelle..

    voici le net stat je suis sur ubuntu:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    tcp        0      0 machine1.puphpet:9000   *:*                     LISTEN
    tcp        0      0 machine1.puphpet:mysql  *:*                     LISTEN
    tcp        0      0 *:ssh                   *:*                     LISTEN
    tcp        0      0 10.0.2.15:ssh           10.0.2.2:51890          ESTABLISHED
    tcp6       0      0 [::]:https              [::]:*                  LISTEN
    tcp6       0      0 machine1.puphpet:9200   [::]:*                  LISTEN
    tcp6       0      0 localhost:9200          [::]:*                  LISTEN
    tcp6       0      0 [::]:http               [::]:*                  LISTEN
    tcp6       0      0 machine1.puphpet:9300   [::]:*                  LISTEN
    tcp6       0      0 localhost:9300          [::]:*                  LISTEN
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
    udp        0      0 *:bootpc                *:*
    udp        0      0 192.168.56.101:ntp      *:*
    udp        0      0 10.0.2.15:ntp           *:*
    udp        0      0 machine1.puphpet:ntp    *:*
    udp        0      0 *:ntp                   *:*
    udp6       0      0 fe80::a00:27ff:fece:ntp [::]:*
    udp6       0      0 fe80::a00:27ff:fe54:ntp [::]:*
    udp6       0      0 localhost:ntp           [::]:*
    udp6       0      0 [::]:ntp                [::]:*
    Active UNIX domain sockets (servers and established)
    et un capture de virtualbox:

    Nom : Capture d’e?cran 2017-08-02 a? 21.34.16.png
Affichages : 795
Taille : 35,9 Ko

    et mon erreur dans vagrant:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     machine1: You are trying to forward to privileged ports (ports <= 1024). Most
    ==> machine1: operating systems restrict this to only privileged process (typically
    ==> machine1: processes running as an administrative user). This is a warning in case
    ==> machine1: the port forwarding doesn't work. If any problems occur, please try a
    ==> machine1: port higher than 1024.

  3. #3
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    74
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 74
    Points : 38
    Points
    38
    Par défaut
    Bonjour,

    Ton problème est peut être réseau. As tu essayé de communiquer avec ta machine virtuel avec un simple ping avant ? Depuis ton tel
    Je vois dans tes configurations que l'adresse IP de ta VM est différente de celle de ton tel.

    Quel type de carte réseau as tu configuré sur le VM ?

  4. #4
    Membre régulier
    Homme Profil pro
    Symfony - CMS Wordpress - Zend
    Inscrit en
    Septembre 2011
    Messages
    306
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Symfony - CMS Wordpress - Zend
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 306
    Points : 101
    Points
    101
    Par défaut réponse à aminlove88
    Bonjour,

    Merci pour ta réaction.

    j'arrive bien a pingé depuis ma machine hôte
    et pas depuis mon tel..

    Mon mode d'accès réseau est en nat(virtual box)

    je comprends te demande:
    Je vois dans tes configurations que l'adresse IP de ta VM est différente de celle de ton tel.
    peut m'en dire plus?

    Merci

  5. #5
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    74
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 74
    Points : 38
    Points
    38
    Par défaut
    Le problème peut venir de là.
    Dans ce mode, les paquets allant vers l'extérieur de la VM, utiliseront comme IP source ta machine Hôte. Pour une utilisation client, c'est suffisant.
    Il me semble que t'a VM ne puisse pas recevoir des requêtes de l'extérieur directement.

    Je te conseillerai donc de le mettre en mode accès par pont.
    Ta machine aura sa propre adresse IP.

  6. #6
    Membre régulier
    Homme Profil pro
    Symfony - CMS Wordpress - Zend
    Inscrit en
    Septembre 2011
    Messages
    306
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Symfony - CMS Wordpress - Zend
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 306
    Points : 101
    Points
    101
    Par défaut Nat -> bridge
    J'ai changé le mode de connexion(VirtualBox) et j'ai cette erreur:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    here was an error while executing `VBoxManage`, a CLI used by Vagrant
    for controlling VirtualBox. The command and stderr is shown below.
    
    Command: ["modifyvm", "7a56eac5-1772-4dd9-994a-c21ad3d664a6", "--natpf1", "tcp6085,tcp,,6085,,22", "--natpf1", "tcp9000,tcp,,9000,,80", "--natpf1", "ssh,tcp,127.0.0.1,2222,,22"]
    
    Stderr: VBoxManage: error: A NAT rule of this name already exists
    VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component NATEngineWrap, interface INATEngine, callee nsISupports
    VBoxManage: error: Context: "AddRedirect(Bstr(strName).raw(), proto, Bstr(strHostIp).raw(), RTStrToUInt16(strHostPort), Bstr(strGuestIp).raw(), RTStrToUInt16(strGuestPort))" at line 1820 of file VBoxManageModifyVM.cpp

  7. #7
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    74
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 74
    Points : 38
    Points
    38
    Par défaut
    Redemarres ta machines virtuelle, ou redemarres les services qui contrôlent ta carte réseau : /etc/init.d/networking restart
    En choisissant le mode accès par pont, il faut que ta machine puisse récupérer l'IP du serveur DHCP de ton reseau.

  8. #8
    Membre régulier
    Homme Profil pro
    Symfony - CMS Wordpress - Zend
    Inscrit en
    Septembre 2011
    Messages
    306
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Symfony - CMS Wordpress - Zend
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 306
    Points : 101
    Points
    101
    Par défaut
    J'ai omis de dire que dans l'adresse ip j'ai laisse celle par défaut.(PUPHPET)

    j'ai effectivement une carte reseau en nat et une autre en bridge(virtualbox)

    impossible de mettre le première en bridge..

    je ping bien ma 2e carte reseaux

    mais pas la première avec l'adresse par défaut je n'arrive pas

    Dans ma machine virtuelle:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    $ ifconfig 
    enp0s3    Link encap:Ethernet  HWaddr 08:00:27:54:8b:1b
              inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:fe54:8b1b/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1130 errors:0 dropped:0 overruns:0 frame:0
              TX packets:898 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:126030 (126.0 KB)  TX bytes:116215 (116.2 KB)
    
    enp0s8    Link encap:Ethernet  HWaddr 08:00:27:71:a3:66
              inet addr:192.168.0.150  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:fe71:a366/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:218 errors:0 dropped:0 overruns:0 frame:0
              TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:38333 (38.3 KB)  TX bytes:3906 (3.9 KB)
    
    enp0s9    Link encap:Ethernet  HWaddr 08:00:27:b8:3d:2d
              inet addr:192.168.56.101  Bcast:192.168.56.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:feb8:3d2d/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:119 errors:0 dropped:0 overruns:0 frame:0
              TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:31650 (31.6 KB)  TX bytes:2168 (2.1 KB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:64 errors:0 dropped:0 overruns:0 frame:0
              TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:6543 (6.5 KB)  TX bytes:6543 (6.5 KB)
    voici mon config.yaml:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    vagrantfile:
        target: local
        vm:
            provider:
                local:
                    box: puphpet/ubuntu1604-x64
                    box_url: 'false'
                    box_version: '0'
                    chosen_virtualizer: virtualbox
                    virtualizers:
                        virtualbox:
                            modifyvm:
                                natdnshostresolver1: false
                            showgui: 0
                        vmware:
                            numvcpus: 1
                        parallels:
                            linked_clone: 0
                            check_guest_tools: 0
                            update_guest_tools: 0
                    machines:
                        vflm_cwnfn8p8zh15:
                            id: machine1
                            hostname: machine1.puphpet
                            network:
                                private_network: 192.168.56.101
                                forwarded_port:
                                    vflmnfp_6uxdkz0wugid:
                                        host: '6942'
                                        guest: '22'
                            memory: '512'
                            cpus: '1'
            provision:
                puppet:
                    manifests_path: puphpet/puppet/manifests
                    module_path:
                        - puphpet/puppet/modules
                        - puphpet/puppet/manifests
                    options:
                        - '--verbose'
                        - '--hiera_config /vagrant/puphpet/puppet/hiera.yaml'
            synced_folder:
                vflsf_ypxdd10fijc3:
                    owner: www-data
                    group: www-data
                    source: ./
                    target: /var/www
                    sync_type: default
                    smb:
                        smb_host: ''
                        smb_username: ''
                        smb_password: ''
                        mount_options:
                            dir_mode: '0775'
                            file_mode: '0664'
                    rsync:
                        args:
                            - '--verbose'
                            - '--archive'
                            - '-z'
                        exclude:
                            - .vagrant/
                            - .git/
                        auto: 'true'
            usable_port_range:
                start: 10200
                stop: 10500
            post_up_message: ''
        ssh:
            host: 'false'
            port: 'false'
            private_key_path: 'false'
            username: vagrant
            guest_port: 'false'
            keep_alive: '1'
            forward_agent: 'false'
            forward_x11: 'false'
            shell: 'bash -l'
            insert_key: 'false'
        vagrant:
            host: detect
        proxy:
            http: ''
            https: ''
            ftp: ''
            no_proxy: ''
    server:
        install: '1'
        packages:
            - vim
            - htop
    users_groups:
        install: '1'
        groups: {  }
        users: {  }
    locale:
        install: '1'
        settings:
            default_locale: en_US.UTF-8
            locales:
                - en_GB.UTF-8
                - en_US.UTF-8
            timezone: UTC
    firewall:
        install: '1'
        rules: {  }
    resolv:
        install: '1'
        nameservers:
            - 8.8.8.8
            - 8.8.4.4
        domainname: ''
        searchpath: {  }
    cron:
        install: '1'
        jobs: {  }
    nginx:
        install: '1'
        settings:
            version: present
            default_vhost: 1
            proxy_buffers: '4 256k'
            proxy_buffer_size: 128k
            proxy_connect_timeout: 600s
            proxy_send_timeout: 600s
            proxy_read_timeout: 600s
            names_hash_bucket_size: 128
        upstreams: {  }
        vhosts:
            nxv_kjzqny841v7c:
                server_name: awesome.dev
                server_aliases:
                    - www.awesome.dev
                www_root: /var/www/awesome
                listen_port: '80'
                client_max_body_size: 1m
                ssl: '0'
                locations:
                    nxvl_x029avn36jdf:
                        www_root: /var/www/awesome/web
                        location: /
                        autoindex: 'off'
                        internal: 'false'
                        index_files:
                            - index.html
                            - index.php
                            - app.php
                        try_files:
                            - $uri
                            - $uri/
                            - /index.php$is_args$args
                            - /app.php$is_args$args
                        fastcgi: ''
                        fastcgi_index: ''
                        fastcgi_split_path: ''
                        proxy: ''
                        proxy_redirect: ''
                    nxvl_eh0y2xb9jfuv:
                        www_root: /var/www/awesome/web
                        location: '~ ^/(app_dev|config)\.php(/|$)'
                        autoindex: 'off'
                        internal: 'false'
                        try_files:
                            - $uri
                            - $uri/
                            - /app_dev.php$is_args$args
                        fastcgi: '127.0.0.1:9000'
                        fastcgi_index: app_dev.php
                        fastcgi_split_path: '^(.+\.php)(/.*)$'
                        fast_cgi_params_extra:
                            - 'SCRIPT_FILENAME $document_root$fastcgi_script_name'
                            - 'APP_ENV dev'
                        set:
                            - '$path_info $fastcgi_path_info'
                        proxy: ''
                        proxy_redirect: ''
                    nxvl_10lo2pyzs3k9:
                        www_root: /var/www/awesome/web
                        location: '~ ^/index\.php(/|$)'
                        autoindex: 'off'
                        internal: 'false'
                        try_files:
                            - $uri
                            - $uri/
                            - /index.php$is_args$args
                        fastcgi: '127.0.0.1:9000'
                        fastcgi_index: index.php
                        fastcgi_split_path: '^(.+\.php)(/.*)$'
                        fast_cgi_params_extra:
                            - 'SCRIPT_FILENAME $document_root$fastcgi_script_name'
                        set:
                            - '$path_info $fastcgi_path_info'
                        proxy: ''
                        proxy_redirect: ''
                    nxvl_6mkg5j9mtcr1:
                        www_root: /var/www/awesome/web
                        location: '~ ^/app\.php(/|$)'
                        autoindex: 'off'
                        internal: 'false'
                        try_files:
                            - $uri
                            - $uri/
                            - /app.php$is_args$args
                        fastcgi: '127.0.0.1:9000'
                        fastcgi_index: app.php
                        fastcgi_split_path: '^(.+\.php)(/.*)$'
                        fast_cgi_params_extra:
                            - 'SCRIPT_FILENAME $document_root$fastcgi_script_name'
                            - 'APP_ENV prod'
                        set:
                            - '$path_info $fastcgi_path_info'
                        proxy: ''
                        proxy_redirect: ''
        proxies: {  }
    apache:
        install: '0'
        settings:
            version: 2.4
            user: www-data
            group: www-data
            default_vhost: true
            manage_user: false
            manage_group: false
            sendfile: 0
        modules:
            - proxy_fcgi
            - rewrite
        vhosts:
            av_h5a4jzu6f15p:
                servername: awesome.dev
                serveraliases:
                    - www.awesome.dev
                docroot: /var/www/awesome/web
                port: '80'
                setenvif:
                    - 'Authorization "(.*)" HTTP_AUTHORIZATION=$1'
                custom_fragment: ''
                ssl: '0'
                ssl_cert: LETSENCRYPT
                ssl_key: LETSENCRYPT
                ssl_chain: LETSENCRYPT
                ssl_certs_dir: LETSENCRYPT
                ssl_protocol: ''
                ssl_cipher: ''
                directories:
                    avd_blhtbkht6tov:
                        path: /var/www/awesome/web
                        directoryindex: 'index.php app.dev'
                        options:
                            - Indexes
                            - FollowSymlinks
                            - MultiViews
                        allow_override:
                            - All
                        require:
                            - 'all granted'
                        custom_fragment: ''
                        provider: directory
                files_match:
                    avfm_5m2dsas6733w:
                        path: (app_dev|config)\.php$
                        sethandler: 'proxy:fcgi://127.0.0.1:9000'
                        setenv:
                            - 'APP_ENV dev'
                        custom_fragment: ''
                        provider: filesmatch
                    avfm_jwg9bgum9sqt:
                        path: app\.php$
                        sethandler: 'proxy:fcgi://127.0.0.1:9000'
                        setenv:
                            - 'APP_ENV prod'
                        custom_fragment: ''
                        provider: filesmatch
                    avfm_hxlqxvt1fham:
                        path: \.php$
                        sethandler: 'proxy:fcgi://127.0.0.1:9000'
                        custom_fragment: ''
                        provider: filesmatch
    letsencrypt:
        install: '1'
        settings:
            email: ''
            webserver_service: ''
        domains: {  }
    php:
        install: '1'
        settings:
            version: '7.1'
        modules:
            php:
                - cli
                - intl
                - xml
            pear: {  }
            pecl: {  }
        ini:
            display_errors: 'On'
            error_reporting: '-1'
            session.save_path: /var/lib/php/session
            date.timezone: UTC
        fpm_ini:
            error_log: /var/log/php-fpm.log
        fpm_pools:
            phpfp_h7r5em6z9fmd:
                ini:
                    prefix: www
                    listen: '127.0.0.1:9000'
                    security.limit_extensions: .php
                    user: www-user
                    group: www-data
        composer: '1'
        composer_home: ''
    xdebug:
        install: '0'
        settings:
            xdebug.default_enable: '1'
            xdebug.remote_autostart: '0'
            xdebug.remote_connect_back: '1'
            xdebug.remote_enable: '1'
            xdebug.remote_handler: dbgp
            xdebug.remote_port: '9000'
    blackfire:
        install: '0'
        settings:
            server_id: ''
            server_token: ''
            agent:
                http_proxy: ''
                https_proxy: ''
                log_file: stderr
                log_level: '1'
            php:
                agent_timeout: '0.25'
                log_file: ''
                log_level: '1'
    xhprof:
        install: '0'
    wpcli:
        install: '0'
        version: v1.1.0
    drush:
        install: '0'
        version: 8.0.5
    ruby:
        install: '1'
        versions:
            rv_53z9ckf9px7y:
                default: '1'
                bundler: '1'
                version: 2.3.1
                gems:
                    - deep_merge@1.0.1
                    - activesupport@4.2.6
                    - vine@0.2
    python:
        install: '1'
        packages: {  }
        versions: {  }
    nodejs:
        install: '0'
        settings:
            version: '6'
        npm_packages: {  }
    mariadb:
        install: '1'
        settings:
            version: '10.1'
            root_password: '123'
            override_options: {  }
        users:
            mariadbnu_djakp36zzz9d:
                name: dbuser
                password: '123'
        databases:
            mariadbnd_d665mqkn1j97:
                name: dbname
                sql: ''
        grants:
            mariadbng_jks47drsw517:
                user: dbuser
                table: '*.*'
                privileges:
                    - ALL
    mysql:
        install: '0'
        settings:
            version: '5.7'
            root_password: '123'
            override_options: {  }
        users:
            mysqlnu_xj9ck8o2s0w2:
                name: dbuser
                password: '123'
        databases:
            mysqlnd_q9iiy626h3zj:
                name: dbname
                sql: ''
        grants:
            mysqlng_ekiz83cq3wfp:
                user: dbuser
                table: '*.*'
                privileges:
                    - ALL
    postgresql:
        install: '0'
        settings:
            global:
                encoding: UTF8
                version: '9.6'
            server:
                postgres_password: '123'
        databases: {  }
        users: {  }
        grants: {  }
    mongodb:
        install: '0'
        settings:
            bind_ip: 127.0.0.1
            port: '27017'
        globals:
            version: 2.6.0
        databases: {  }
    redis:
        install: '0'
        settings:
            port: '6379'
    sqlite:
        install: '0'
        databases: {  }
    mailhog:
        install: '0'
        settings:
            smtp_ip: 0.0.0.0
            smtp_port: 1025
            http_ip: 0.0.0.0
            http_port: '8025'
            path: /usr/local/bin/mailhog
    beanstalkd:
        install: '0'
        settings:
            listenaddress: 0.0.0.0
            listenport: '11300'
            maxjobsize: '65535'
            maxconnections: '1024'
            binlogdir: /var/lib/beanstalkd/binlog
            binlogfsync: null
            binlogsize: '10485760'
        beanstalk_console: 0
    rabbitmq:
        install: '0'
        settings:
            port: '5672'
        users: {  }
        vhosts: {  }
        plugins: {  }
    elastic_search:
        install: '0'
        settings:
            version: 2.3.1
            java_install: true
        instances:
            esi_y2slwjkbn4m3:
                name: es-01
    solr:
        install: '0'
        settings:
            version: 5.5.2
            port: '8984'
    et mon vagrantfile:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    
    dir = File.dirname(File.expand_path(__FILE__))
    
    require 'yaml'
    require "#{dir}/puphpet/ruby/deep_merge.rb"
    require "#{dir}/puphpet/ruby/to_bool.rb"
    require "#{dir}/puphpet/ruby/puppet.rb"
    
    configValues = YAML.load_file("#{dir}/puphpet/config.yaml")
    
    provider = ENV['VAGRANT_DEFAULT_PROVIDER'] ? ENV['VAGRANT_DEFAULT_PROVIDER'] : 'local'
    if File.file?("#{dir}/puphpet/config-#{provider}.yaml")
      custom = YAML.load_file("#{dir}/puphpet/config-#{provider}.yaml")
      configValues.deep_merge!(custom)
    end
    
    if File.file?("#{dir}/puphpet/config-custom.yaml")
      custom = YAML.load_file("#{dir}/puphpet/config-custom.yaml")
      configValues.deep_merge!(custom)
    end
    
    
    data = configValues['vagrantfile']
    
    Vagrant.require_version '>= 1.8.1'
    
    Vagrant.configure('2') do |config|
      eval File.read("#{dir}/puphpet/vagrant/Vagrantfile-#{data['target']}")
    
    
    
    config.vm.network :public_network, :public_network => "en4"
    end
    quand j'essaye d'accéder a l'adresse ip 192.168.0.150 (machine hôte ou smartphone) qui correspond donc a ma machine virtuel j'ai ceci:
    Congratulations! You are pretty awesome.

    You are well on your way to a highly customized server.

    However, if you are seeing this page, it means you are using IP Address, not virtual host!
    This is probably not the page you want.

    This page is being served from /var/www/html/index.html, and is the default vhost (virtual host) that comes with most web servers.

    What you want to do is to add all vhosts that you defined on PuPHPet.com to your hosts file.

    On OSX and Linux, this is located at /etc/hosts, on Windows it is located at C:\Windows\System32\drivers\etc\hosts.

    Add a line with the IP address of this server and all vhosts you chose. For example, if the IP address is 192.168.100.1, and you chose vhost awesome.dev, you will want to enter the following:

    192.168.100.1 awesome.dev www.awesome.dev
    If you forgot the IP address you chose, check the config file at puphpet/config.yaml.

    Still running into problems?
    First, read the instructions here. Seriously, read the instructions first!

    If that does not solve your issue, head over to the PuPHPet Github issue track and create a new ticket. Make sure to include the contents of your puphpet/config.yaml file (and make sure to indent it by 4 spaces to enable Github's code syntax) and any error messages you ran into.

    Good luck, and happy programming!

    Juan Treminio

  9. #9
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    74
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 74
    Points : 38
    Points
    38
    Par défaut
    Tu arrives à présent à accéder à ton serveur web ^^, pour le reste je pense que les expert apache ici pourront t'aider

  10. #10
    Membre régulier
    Homme Profil pro
    Symfony - CMS Wordpress - Zend
    Inscrit en
    Septembre 2011
    Messages
    306
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Symfony - CMS Wordpress - Zend
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 306
    Points : 101
    Points
    101
    Par défaut Expert Apache votre aide..
    Merci pour ton aide aminlove88.

    voici mon souci. j'arrive à faire un ping sur ma machine virtuelle 192.168.56.24 depuis ma machine hôte..

    mais pas depuis mon téléphone..

    voici mon ifconfig:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    enp0s3    Link encap:Ethernet  HWaddr 08:00:27:54:8b:1b
              inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:fe54:8b1b/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2135 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1720 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:225584 (225.5 KB)  TX bytes:186907 (186.9 KB)
    
    enp0s8    Link encap:Ethernet  HWaddr 08:00:27:bd:8a:24
              inet addr:192.168.56.24  Bcast:192.168.56.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:febd:8a24/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:807 errors:0 dropped:0 overruns:0 frame:0
              TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:235365 (235.3 KB)  TX bytes:6907 (6.9 KB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    et mon hosts:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     127.0.0.1   machine1.puphpet    machine1
     127.0.0.1   localhost
     127.0.1.1   vagrant.vm  vagrant
     192.168.56.24 local.dev www.local.dev
     # The following lines are desirable for IPv6 capable hosts
     ::1     localhost ip6-localhost ip6-loopback
     ff02::1 ip6-allnodes
     ff02::2 ip6-allrouters
     ~
    une petite aide serais la bienvenue..

    Un grand merci.

  11. #11
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    74
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 74
    Points : 38
    Points
    38
    Par défaut
    Tu dois modifier l'adresse IP de ta carte pour la passer sur le même réseau (192.168.0.x) que ta machine hôte et du téléphone.

    Soit tu l'a passes en dynamique soit tu lui en donnes une en statique . Fais un p'tit tour vers la configuration IP sur ton système, tu vas vite trouver.

  12. #12
    Membre régulier
    Homme Profil pro
    Symfony - CMS Wordpress - Zend
    Inscrit en
    Septembre 2011
    Messages
    306
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Symfony - CMS Wordpress - Zend
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 306
    Points : 101
    Points
    101
    Par défaut Précision..
    Tu parles bien de ma machine hôte ?

    Pas de mon routeur par hasard..?

    Tu a un lien car je vois pas bien de quoi tu parle

    Je sur Mac..

  13. #13
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    74
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 74
    Points : 38
    Points
    38
    Par défaut
    Je te parle de l'adresse IP de la carte de type accès par pont qu'il faut modifier, donc une des interface de ta VM. De sorte que tu puisses la joindre de l'extérieur, c'est important.

    L'adresse IP 192.168.56.X fait référence à ta carte Nat. Ne t'en préoccupe plus.

    Bonne journée

  14. #14
    Membre régulier
    Homme Profil pro
    Symfony - CMS Wordpress - Zend
    Inscrit en
    Septembre 2011
    Messages
    306
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Symfony - CMS Wordpress - Zend
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 306
    Points : 101
    Points
    101
    Par défaut Congratulation..
    Bonjour,

    Après plusieurs essai,
    Je suis arrivé à installer ma VM avec une adresse IP de mon réseaux.

    J'arrive bien à pinger ma VM.

    Et alors j'ai le message de Juan Treminio

    Congratulations! You are pretty awesome.
    ...
    Je bute a partir de là. j'ai ajouter mon adresse ip et mon alias comme demandé..

    Rien à faire j'arrive pas a voir mes projets..

    PS: comme demander dans les specs de PUPHPET j'ai installer vagrant 1.8.6 - virtualbox 5.0.26

  15. #15
    Membre régulier
    Homme Profil pro
    Symfony - CMS Wordpress - Zend
    Inscrit en
    Septembre 2011
    Messages
    306
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Symfony - CMS Wordpress - Zend
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 306
    Points : 101
    Points
    101
    Par défaut voici mon config.yaml de puphpet
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    vagrantfile:
        target: local
        vm:
            provider:
                local:
                    box: puphpet/ubuntu1604-x64
                    box_url: 'false'
                    box_version: '0'
                    chosen_virtualizer: virtualbox
                    virtualizers:
                        virtualbox:
                            modifyvm:
                                natdnshostresolver1: false
                            showgui: 0
                        vmware:
                            numvcpus: 1
                        parallels:
                            linked_clone: 0
                            check_guest_tools: 0
                            update_guest_tools: 0
                    machines:
                        vflm_hlegyr14tk54:
                            id: machine1
                            hostname: machine1.puphpet
                            network:
                                public_network: 192.168.0.103
                                private_network: 192.168.56.101
                                forwarded_port:
                                    vflmnfp_w0yxx3in669z:
                                        host: '6751'
                                        guest: '22'
                                    vflmnfp_916zh69zrqol:
                                        host: '9000'
                                        guest: '80'
                            memory: '2048'
                            cpus: '1'
            provision:
                puppet:
                    manifests_path: puphpet/puppet/manifests
                    module_path:
                        - puphpet/puppet/modules
                        - puphpet/puppet/manifests
                    options:
                        - '--verbose'
                        - '--hiera_config /vagrant/puphpet/puppet/hiera.yaml'
            synced_folder:
                vflsf_xllx7qrvbptm:
                    owner: www-data
                    group: www-data
                    source: sites
                    target: /var/www/local.dev
                    sync_type: default
                    smb:
                        smb_host: ''
                        smb_username: ''
                        smb_password: ''
                        mount_options:
                            dir_mode: '0775'
                            file_mode: '0664'
                    rsync:
                        args:
                            - '--verbose'
                            - '--archive'
                            - '-z'
                        exclude:
                            - .vagrant/
                            - .git/
                        auto: 'true'
            usable_port_range:
                start: 10200
                stop: 10500
            post_up_message: ''
        ssh:
            host: 'false'
            port: 'false'
            private_key_path: 'false'
            username: vagrant
            guest_port: 'false'
            keep_alive: '1'
            forward_agent: 'false'
            forward_x11: 'false'
            shell: 'bash -l'
            insert_key: 'false'
        vagrant:
            host: detect
        proxy:
            http: ''
            https: ''
            ftp: ''
            no_proxy: ''
    server:
        install: '1'
        packages:
            - vim
            - htop
    users_groups:
        install: '1'
        groups: {  }
        users: {  }
    locale:
        install: '1'
        settings:
            default_locale: fr_BE.UTF-8
            locales:
                - fr_BE.UTF-8
                - nl_BE.UTF-8
            timezone: UTC
    firewall:
        install: '1'
        rules: {  }
    resolv:
        install: '1'
        nameservers:
            - 8.8.8.8
            - 8.8.4.4
        domainname: ''
        searchpath: {  }
    cron:
        install: '1'
        jobs: {  }
    nginx:
        install: '1'
        settings:
            version: present
            default_vhost: 1
            proxy_buffers: '4 256k'
            proxy_buffer_size: 128k
            proxy_connect_timeout: 600s
            proxy_send_timeout: 600s
            proxy_read_timeout: 600s
            names_hash_bucket_size: 128
        upstreams: {  }
        vhosts:
            nxv_qjtsqzno9vmv:
                server_name: local.dev
                server_aliases:
                    - local.dev
                www_root: /var/www/local.dev
                listen_port: '80'
                client_max_body_size: 1m
                ssl: '0'
                locations:
                    nxvl_2uobqzl7vncy:
                        www_root: /var/www/local.dev
                        location: /
                        autoindex: 'off'
                        internal: 'false'
                        index_files:
                            - index.html
                            - index.php
                            - app.php
                        try_files:
                            - $uri
                            - $uri/
                            - /index.php$is_args$args
                            - /app.php$is_args$args
                        fastcgi: ''
                        fastcgi_index: ''
                        fastcgi_split_path: ''
                        proxy: ''
                        proxy_redirect: ''
        proxies: {  }
    apache:
        install: '0'
        settings:
            version: 2.4
            user: www-data
            group: www-data
            default_vhost: true
            manage_user: false
            manage_group: false
            sendfile: 0
        modules:
            - proxy_fcgi
            - rewrite
        vhosts:
            av_4xkiy3k4cavg:
                servername: local.dev
                serveraliases:
                    - local.dev
                docroot: /var/www/local.dev
                port: '80'
                setenvif:
                    - 'Authorization "(.*)" HTTP_AUTHORIZATION=$1'
                custom_fragment: ''
                ssl: '0'
                ssl_cert: LETSENCRYPT
                ssl_key: LETSENCRYPT
                ssl_chain: LETSENCRYPT
                ssl_certs_dir: LETSENCRYPT
                ssl_protocol: ''
                ssl_cipher: ''
                directories:
                    avd_ewjro42vh6wu:
                        path: /var/www/local.dev
                        directoryindex: 'index.php app.dev '
                        options:
                            - Indexes
                            - FollowSymlinks
                            - MultiViews
                        allow_override:
                            - All
                        require:
                            - 'all granted'
                        custom_fragment: ''
                        provider: directory
                files_match:
                    avfm_801oi2pdprsl:
                        path: (app_dev|config)\.php$
                        sethandler: 'proxy:fcgi://127.0.0.1:9000'
                        setenv:
                            - 'APP_ENV dev'
                        custom_fragment: ''
                        provider: filesmatch
                    avfm_d7xjj02d45ap:
                        path: app\.php$
                        sethandler: 'proxy:fcgi://127.0.0.1:9000'
                        setenv:
                            - 'APP_ENV prod'
                        custom_fragment: ''
                        provider: filesmatch
                    avfm_kjgbhniyc84w:
                        path: \.php$
                        sethandler: 'proxy:fcgi://127.0.0.1:9000'
                        custom_fragment: ''
                        provider: filesmatch
    letsencrypt:
        install: '1'
        settings:
            email: ''
            webserver_service: ''
        domains: {  }
    php:
        install: '1'
        settings:
            version: '7.1'
        modules:
            php:
                - cli
                - intl
                - xml
            pear: {  }
            pecl: {  }
        ini:
            display_errors: 'On'
            error_reporting: '-1'
            session.save_path: /var/lib/php/session
            date.timezone: UTC
        fpm_ini:
            error_log: /var/log/php-fpm.log
        fpm_pools:
            phpfp_8o5qeh72g73n:
                ini:
                    prefix: www
                    listen: '127.0.0.1:9000'
                    security.limit_extensions: .php
                    user: www-user
                    group: www-data
        composer: '1'
        composer_home: ''
    xdebug:
        install: '1'
        settings:
            xdebug.default_enable: '1'
            xdebug.remote_autostart: '0'
            xdebug.remote_connect_back: '1'
            xdebug.remote_enable: '1'
            xdebug.remote_handler: dbgp
            xdebug.remote_port: '9000'
    blackfire:
        install: '0'
        settings:
            server_id: ''
            server_token: ''
            agent:
                http_proxy: ''
                https_proxy: ''
                log_file: stderr
                log_level: '1'
            php:
                agent_timeout: '0.25'
                log_file: ''
                log_level: '1'
    xhprof:
        install: '0'
    wpcli:
        install: '0'
        version: v1.1.0
    drush:
        install: '0'
        version: 8.0.5
    ruby:
        install: '1'
        versions:
            rv_wvuv1wc049bm:
                default: '1'
                bundler: '1'
                version: 2.3.1
                gems:
                    - deep_merge@1.0.1
                    - activesupport@4.2.6
                    - vine@0.2
    python:
        install: '1'
        packages: {  }
        versions: {  }
    nodejs:
        install: '1'
        settings:
            version: '6'
        npm_packages: {  }
    mariadb:
        install: '0'
        settings:
            version: '10.1'
            root_password: '123'
            override_options: {  }
        users:
            mariadbnu_b7gaj584oaj6:
                name: dbuser
                password: '123'
        databases:
            mariadbnd_8qog6zb6287e:
                name: dbname
                sql: ''
        grants:
            mariadbng_wilioyh4zhlg:
                user: dbuser
                table: '*.*'
                privileges:
                    - ALL
    mysql:
        install: '1'
        settings:
            version: '5.7'
            root_password: '123'
            override_options: {  }
        users:
            mysqlnu_jrcol85r93ai:
                name: dbuser
                password: '123'
        databases:
            mysqlnd_o0eako5gxgpr:
                name: dbname
                sql: ''
        grants:
            mysqlng_7e9blj0ql96v:
                user: dbuser
                table: '*.*'
                privileges:
                    - ALL
    postgresql:
        install: '0'
        settings:
            global:
                encoding: UTF8
                version: '9.6'
            server:
                postgres_password: '123'
        databases: {  }
        users: {  }
        grants: {  }
    mongodb:
        install: '0'
        settings:
            bind_ip: 127.0.0.1
            port: '27017'
        globals:
            version: 2.6.0
        databases: {  }
    redis:
        install: '0'
        settings:
            port: '6379'
    sqlite:
        install: '0'
        databases: {  }
    mailhog:
        install: '0'
        settings:
            smtp_ip: 0.0.0.0
            smtp_port: 1025
            http_ip: 0.0.0.0
            http_port: '8025'
            path: /usr/local/bin/mailhog
    beanstalkd:
        install: '0'
        settings:
            listenaddress: 0.0.0.0
            listenport: '11300'
            maxjobsize: '65535'
            maxconnections: '1024'
            binlogdir: /var/lib/beanstalkd/binlog
            binlogfsync: null
            binlogsize: '10485760'
        beanstalk_console: 0
    rabbitmq:
        install: '0'
        settings:
            port: '5672'
        users: {  }
        vhosts: {  }
        plugins: {  }
    elastic_search:
        install: '0'
        settings:
            version: 2.3.1
            java_install: true
        instances:
            esi_7wm8inorkrdl:
                name: es-01
    solr:
        install: '0'
        settings:
            version: 5.5.2
            port: '8984'
    et mon Vangrantfile:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    # -*- mode: ruby -*-
    
    dir = File.dirname(File.expand_path(__FILE__))
    
    require 'yaml'
    require "#{dir}/puphpet/ruby/deep_merge.rb"
    require "#{dir}/puphpet/ruby/to_bool.rb"
    require "#{dir}/puphpet/ruby/puppet.rb"
    
    configValues = YAML.load_file("#{dir}/puphpet/config.yaml")
    
    provider = ENV['VAGRANT_DEFAULT_PROVIDER'] ? ENV['VAGRANT_DEFAULT_PROVIDER'] : 'local'
    if File.file?("#{dir}/puphpet/config-#{provider}.yaml")
      custom = YAML.load_file("#{dir}/puphpet/config-#{provider}.yaml")
      configValues.deep_merge!(custom)
    end
    
    if File.file?("#{dir}/puphpet/config-custom.yaml")
      custom = YAML.load_file("#{dir}/puphpet/config-custom.yaml")
      configValues.deep_merge!(custom)
    end
    
    data = configValues['vagrantfile']
    
    Vagrant.require_version '>= 1.8.1'
    
    Vagrant.configure('2') do |config|
      eval File.read("#{dir}/puphpet/vagrant/Vagrantfile-#{data['target']}")
    end

    Merci bien

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo