AAChibilyaev
@AAChibilyaev
Разработка

Как починить apache2 vagrant?

Вчера работал, а сегодня нет(
# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
  # The most common configuration options are documented and commented below.
  # For a complete reference, please see the online documentation at
  # https://docs.vagrantup.com.

  # Every Vagrant development environment requires a box. You can search for
  # boxes at https://atlas.hashicorp.com/search.
  config.vm.box = "ubuntu/trusty64"

  # Disable automatic box update checking. If you disable this, then
  # boxes will only be checked for updates when the user runs
  # `vagrant box outdated`. This is not recommended.
  # config.vm.box_check_update = false

  # Create a forwarded port mapping which allows access to a specific port
  # within the machine from a port on the host machine. In the example below,
  # accessing "localhost:8080" will access port 80 on the guest machine.
  #config.vm.network "forwarded_port", guest: 80, host: 8080
  # пробывал раскоментировать vm.network - не помогает

  # Create a private network, which allows host-only access to the machine
  # using a specific IP.
  config.vm.network "private_network", ip: "192.168.20.3"

  # Create a public network, which generally matched to bridged network.
  # Bridged networks make the machine appear as another physical device on
  # your network.
  # config.vm.network "public_network"

  # Share an additional folder to the guest VM. The first argument is
  # the path on the host to the actual folder. The second argument is
  # the path on the guest to mount the folder. And the optional third
  # argument is a set of non-required options.
  config.vm.synced_folder ".", "/var/www"

  # Provider-specific configuration so you can fine-tune various
  # backing providers for Vagrant. These expose provider-specific options.
  # Example for VirtualBox:
  #
  # config.vm.provider "virtualbox" do |vb|
  #   # Display the VirtualBox GUI when booting the machine
  #   vb.gui = true
  #
  #   # Customize the amount of memory on the VM:
  #   vb.memory = "1024"
  # end
  #
  # View the documentation for the provider you are using for more
  # information on available options.

  # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
  # such as FTP and Heroku are also available. See the documentation at
  # https://docs.vagrantup.com/v2/push/atlas.html for more information.
  # config.push.define "atlas" do |push|
  #   push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
  # end

  # Enable provisioning with a shell script. Additional provisioners such as
  # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  # documentation for more information about their specific syntax and use.
  # config.vm.provision "shell", inline: <<-SHELL
  #   sudo apt-get update
  #   sudo apt-get install -y apache2
  # SHELL
end


D:\Work\Projects\Web\st-ochag.ru>ping 192.168.20.3

Обмен пакетами с 192.168.20.3 по с 32 байтами данных:
Превышен интервал ожидания для запроса.
Превышен интервал ожидания для запроса.

Статистика Ping для 192.168.20.3:
    Пакетов: отправлено = 2, получено = 0, потеряно = 2
    (100% потерь)
Control-C

root@vagrant-ubuntu-trusty-64:~# cat /var/log/apache2/error.log 

[Thu Nov 19 06:29:16.898780 2015] [mpm_prefork:notice] [pid 1571] AH00169: caught SIGTERM, shutting down
[Thu Nov 19 06:29:18.071916 2015] [mpm_prefork:notice] [pid 2027] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 configured -- resuming normal operations
[Thu Nov 19 06:29:18.071983 2015] [core:notice] [pid 2027] AH00094: Command line: '/usr/sbin/apache2'
[Thu Nov 19 06:31:55.985414 2015] [mpm_prefork:notice] [pid 2027] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.2.15. Set the 'ServerName' directive globally to suppress this message
[Thu Nov 19 06:31:56.038361 2015] [mpm_prefork:notice] [pid 2027] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 configured -- resuming normal operations
[Thu Nov 19 06:31:56.038379 2015] [core:notice] [pid 2027] AH00094: Command line: '/usr/sbin/apache2'
[Thu Nov 19 06:34:07.429045 2015] [mpm_prefork:notice] [pid 2027] AH00169: caught SIGTERM, shutting down
[Thu Nov 19 06:34:08.544540 2015] [mpm_prefork:notice] [pid 2166] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 configured -- resuming normal operations
[Thu Nov 19 06:34:08.544592 2015] [core:notice] [pid 2166] AH00094: Command line: '/usr/sbin/apache2'
[Thu Nov 19 06:35:50.518773 2015] [mpm_prefork:notice] [pid 2166] AH00169: caught SIGTERM, shutting down
[Thu Nov 19 06:35:51.644351 2015] [mpm_prefork:notice] [pid 2238] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 configured -- resuming normal operations
[Thu Nov 19 06:35:51.644396 2015] [core:notice] [pid 2238] AH00094: Command line: '/usr/sbin/apache2'


root@vagrant-ubuntu-trusty-64:~# ifconfig 
eth0      Link encap:Ethernet  HWaddr 08:00:27:f8:cf:9e  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fef8:cf9e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3728 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2187 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:323942 (323.9 KB)  TX bytes:329594 (329.5 KB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:bb:ba:3e  
          inet addr:192.168.20.3  Bcast:192.168.20.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:febb:ba3e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39 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:3588 (3.5 KB)  TX bytes:1704 (1.7 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:40 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4120 (4.1 KB)  TX bytes:4120 (4.1 KB)


root@vagrant-ubuntu-trusty-64:~# cat /etc/apache2/sites-available/000-default.conf 
<VirtualHost *:80>
        #ServerName www.example.com

        <Directory /var/www/www/>
                AllowOverride All
        </Directory>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/www

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Лазил на форумах, ничего не помогло. Прошу Вашего совета
  • Вопрос задан
  • 971 просмотр
Пригласить эксперта
Ответы на вопрос 1
@newobj
покажите
/etc/apache2/apache2.conf
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы