Задать вопрос
  • Yii2. Как работает pjax (или это просто AJAX) при data-pjax="0" и наличии data-method и data-confirm?

    @xskif Автор вопроса
    Это свой метод. Можно создать его в базовом контроллере и указывать модель в каждом дочернем, с которой он будет работать, в данном примере он возвращает массив [model, provider] который как раз раскрывает функция list
  • CentOS php-imagick выдает ошибку компиляции при установке. Что делать?

    @xskif Автор вопроса
    dmesg:
    [ 0.000000] NX (Execute Disable) protection: active
    [ 0.000000] SMBIOS 2.4 present.
    [ 0.000000] DMI: Bochs Bochs, BIOS Bochs 01/01/2011
    [ 0.000000] Hypervisor detected: KVM
    [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
    [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
    [ 0.000000] No AGP bridge found
    [ 0.000000] e820: last_pfn = 0x1fffe max_arch_pfn = 0x400000000
    [ 0.000000] MTRR default type: write-back
    [ 0.000000] MTRR fixed ranges enabled:
    [ 0.000000] 00000-9FFFF write-back
    [ 0.000000] A0000-BFFFF uncachable
    [ 0.000000] C0000-FFFFF write-protect
    [ 0.000000] MTRR variable ranges enabled:
    [ 0.000000] 0 base 0080000000 mask FF80000000 uncachable
    [ 0.000000] 1 disabled
    [ 0.000000] 2 disabled
    [ 0.000000] 3 disabled
    [ 0.000000] 4 disabled
    [ 0.000000] 5 disabled
    [ 0.000000] 6 disabled
    [ 0.000000] 7 disabled
    [ 0.000000] x86 PAT enabled: cpu 0, old 0x70406, new 0x7010600070106
    [ 0.000000] found SMP MP-table at [mem 0x000f1af0-0x000f1aff] mapped at [ffff8800000f1af0]
    [ 0.000000] Base memory trampoline at [ffff880000099000] 99000 size 24576
    [ 0.000000] Using GB pages for direct mapping
    [ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
    [ 0.000000] [mem 0x00000000-0x000fffff] page 4k
    [ 0.000000] BRK [0x01e20000, 0x01e20fff] PGTABLE
    [ 0.000000] BRK [0x01e21000, 0x01e21fff] PGTABLE
    [ 0.000000] BRK [0x01e22000, 0x01e22fff] PGTABLE
    [ 0.000000] init_memory_mapping: [mem 0x1f400000-0x1f5fffff]
    [ 0.000000] [mem 0x1f400000-0x1f5fffff] page 2M
    [ 0.000000] init_memory_mapping: [mem 0x1c000000-0x1f3fffff]
    [ 0.000000] [mem 0x1c000000-0x1f3fffff] page 2M
    [ 0.000000] init_memory_mapping: [mem 0x00100000-0x1bffffff]
    [ 0.000000] [mem 0x00100000-0x001fffff] page 4k
    [ 0.000000] [mem 0x00200000-0x1bffffff] page 2M
    [ 0.000000] init_memory_mapping: [mem 0x1f600000-0x1fffdfff]
    [ 0.000000] [mem 0x1f600000-0x1fdfffff] page 2M
    [ 0.000000] [mem 0x1fe00000-0x1fffdfff] page 4k
    [ 0.000000] BRK [0x01e23000, 0x01e23fff] PGTABLE
    [ 0.000000] RAMDISK: [mem 0x1f73d000-0x1ffeffff]
    [ 0.000000] ACPI: RSDP 00000000000f1990 00014 (v00 BOCHS )
    [ 0.000000] ACPI: RSDT 000000001fffe450 00034 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)
    [ 0.000000] ACPI: FACP 000000001fffff80 00074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)
    [ 0.000000] ACPI: DSDT 000000001fffe490 01137 (v01 BOCHS BXPCDSDT 00000001 BXPC 00000001)
    [ 0.000000] ACPI: FACS 000000001fffff40 00040
    [ 0.000000] ACPI: SSDT 000000001ffff700 00838 (v01 BOCHS BXPCSSDT 00000001 BXPC 00000001)
    [ 0.000000] ACPI: APIC 000000001ffff610 00078 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)
    [ 0.000000] ACPI: HPET 000000001ffff5d0 00038 (v01 BOCHS BXPCHPET 00000001 BXPC 00000001)
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] No NUMA configuration found
    [ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000001fffdfff]
    [ 0.000000] Initmem setup node 0 [mem 0x00000000-0x1fffdfff]
    [ 0.000000] NODE_DATA [mem 0x1f716000-0x1f73cfff]
    [ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
    [ 0.000000] kvm-clock: cpu 0, msr 0:1f6c6001, boot clock
    [ 0.000000] [ffffea0000000000-ffffea00007fffff] PMD -> [ffff88001e600000-ffff88001edfffff] on node 0
    [ 0.000000] Zone ranges:
    [ 0.000000] DMA [mem 0x00001000-0x00ffffff]
    [ 0.000000] DMA32 [mem 0x01000000-0xffffffff]
    [ 0.000000] Normal empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x00001000-0x0009efff]
    [ 0.000000] node 0: [mem 0x00100000-0x1fffdfff]
    [ 0.000000] On node 0 totalpages: 130972
    [ 0.000000] DMA zone: 64 pages used for memmap
    [ 0.000000] DMA zone: 21 pages reserved
    [ 0.000000] DMA zone: 3998 pages, LIFO batch:0
    [ 0.000000] DMA32 zone: 1984 pages used for memmap
    [ 0.000000] DMA32 zone: 126974 pages, LIFO batch:31
    [ 0.000000] ACPI: PM-Timer IO Port: 0xb008
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
    [ 0.000000] ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0])
    [ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
    [ 0.000000] ACPI: IRQ0 used by override.
    [ 0.000000] ACPI: IRQ2 used by override.
    [ 0.000000] ACPI: IRQ5 used by override.
    [ 0.000000] ACPI: IRQ9 used by override.
    [ 0.000000] ACPI: IRQ10 used by override.
    [ 0.000000] ACPI: IRQ11 used by override.
    [ 0.000000] Using ACPI (MADT) for SMP configuration information
    [ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
    [ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
    [ 0.000000] nr_irqs_gsi: 40
    [ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
    [ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
    [ 0.000000] e820: [mem 0x20000000-0xfeffbfff] available for PCI devices
    [ 0.000000] Booting paravirtualized kernel on KVM
    [ 0.000000] setup_percpu: NR_CPUS:5120 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
    [ 0.000000] PERCPU: Embedded 29 pages/cpu @ffff88001f400000 s86656 r8192 d23936 u2097152
    [ 0.000000] pcpu-alloc: s86656 r8192 d23936 u2097152 alloc=1*2097152
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] kvm-clock: cpu 0, msr 0:1f6c6001, primary cpu clock
    [ 0.000000] KVM setup async PF for cpu 0
    [ 0.000000] kvm-stealtime: cpu 0, msr 1f40dfc0
    [ 0.000000] KVM setup paravirtual spinlock
    [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 128903
    [ 0.000000] Policy zone: DMA32
    [ 0.000000] Kernel command line: root=LABEL=DOROOT ro
    [ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
    [ 0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340
    [ 0.000000] Checking aperture...
    [ 0.000000] No AGP bridge found
    [ 0.000000] Memory: 491392k/524280k available (6108k kernel code, 392k absent, 32496k reserved, 4071k data, 1584k init)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Hierarchical RCU implementation.
    [ 0.000000] RCU restricting CPUs from NR_CPUS=5120 to nr_cpu_ids=1.
    [ 0.000000] Experimental no-CBs for all CPUs
    [ 0.000000] Experimental no-CBs CPUs: 0.
    [ 0.000000] NR_IRQS:327936 nr_irqs:256 16
    [ 0.000000] Console: colour VGA+ 80x25
    [ 0.000000] console [tty0] enabled
    [ 0.000000] allocated 2097152 bytes of page_cgroup
    [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
    [ 0.000000] hpet clockevent registered
    [ 0.000000] tsc: Detected 2399.998 MHz processor
    [ 0.002000] Calibrating delay loop (skipped) preset value.. 4799.99 BogoMIPS (lpj=2399998)
    [ 0.003008] pid_max: default: 32768 minimum: 301
    [ 0.003743] Security Framework initialized
    [ 0.004015] SELinux: Initializing.
    [ 0.005024] SELinux: Starting in permissive mode
    [ 0.005143] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
    [ 0.006202] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
    [ 0.007092] Mount-cache hash table entries: 4096
    [ 0.008369] Initializing cgroup subsys memory
    [ 0.009019] Initializing cgroup subsys devices
    [ 0.010008] Initializing cgroup subsys freezer
    [ 0.010689] Initializing cgroup subsys net_cls
    [ 0.011009] Initializing cgroup subsys blkio
    [ 0.012008] Initializing cgroup subsys perf_event
    [ 0.013009] Initializing cgroup subsys hugetlb
    [ 0.015176] mce: CPU supports 10 MCE banks
    [ 0.015935] Last level iTLB entries: 4KB 512, 2MB 0, 4MB 0
    Last level dTLB entries: 4KB 512, 2MB 0, 4MB 0
    tlb_flushall_shift: 6
    [ 0.043424] Freeing SMP alternatives: 24k freed
    [ 0.051662] ACPI: Core revision 20130517
    [ 0.053774] ACPI: All ACPI Tables successfully acquired
    [ 0.055039] ftrace: allocating 23393 entries in 92 pages
    [ 0.064651] Enabling x2apic
    [ 0.065000] Enabled x2apic
    [ 0.065028] Switched APIC routing to physical x2apic.
    [ 0.068513] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
    [ 0.069007] smpboot: CPU0: Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz (fam: 06, model: 3e, stepping: 04)
    [ 0.071112] TSC deadline timer enabled
    [ 0.071250] Performance Events: 16-deep LBR, IvyBridge events, Intel PMU driver.
    [ 0.073021] ... version: 2
    [ 0.073947] ... bit width: 48
    [ 0.074007] ... generic registers: 4
    [ 0.074930] ... value mask: 0000ffffffffffff
    [ 0.075008] ... max period: 000000007fffffff
    [ 0.075979] ... fixed-purpose events: 3
    [ 0.076007] ... event mask: 000000070000000f
    [ 0.078981] Brought up 1 CPUs
    [ 0.079012] smpboot: Total of 1 processors activated (4799.99 BogoMIPS)
    [ 0.080925] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.
    [ 0.081261] devtmpfs: initialized
    [ 0.082849] EVM: security.selinux
    [ 0.083008] EVM: security.ima
    [ 0.083962] EVM: security.capability
    [ 0.085300] atomic64 test passed for x86-64 platform with CX8 and with SSE
    [ 0.086082] NET: Registered protocol family 16
    [ 0.087202] ACPI: bus type PCI registered
    [ 0.088009] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
    [ 0.089214] PCI: Using configuration type 1 for base access
    [ 0.091207] bio: create slab at 0
    [ 0.092206] ACPI: Added _OSI(Module Device)
    [ 0.093009] ACPI: Added _OSI(Processor Device)
    [ 0.094000] ACPI: Added _OSI(3.0 _SCP Extensions)
    [ 0.094022] ACPI: Added _OSI(Processor Aggregator Device)
    [ 0.095788] ACPI: EC: Look up EC in DSDT
    [ 0.097620] ACPI: Interpreter enabled
    [ 0.098013] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20130517/hwxface-571)
    [ 0.099935] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20130517/hwxface-571)
    [ 0.101021] ACPI: (supports S0 S3 S4 S5)
    [ 0.101982] ACPI: Using IOAPIC for interrupt routing
    [ 0.102031] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
    [ 0.103342] ACPI: No dock devices found.
    [ 0.107658] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
    [ 0.108017] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
    [ 0.109014] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
    [ 0.110106] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
    [ 0.111354] acpiphp: Slot [3] registered
    [ 0.112050] acpiphp: Slot [4] registered
    [ 0.113025] acpiphp: Slot [5] registered
    [ 0.114070] acpiphp: Slot [6] registered
    [ 0.115042] acpiphp: Slot [7] registered
    [ 0.116014] acpiphp: Slot [8] registered
    [ 0.117008] acpiphp: Slot [9] registered
    [ 0.118020] acpiphp: Slot [10] registered
    [ 0.118987] acpiphp: Slot [11] registered
    [ 0.119041] acpiphp: Slot [12] registered
    [ 0.120011] acpiphp: Slot [13] registered
    [ 0.121021] acpiphp: Slot [14] registered
    [ 0.121988] acpiphp: Slot [15] registered
    [ 0.122069] acpiphp: Slot [16] registered
    [ 0.123041] acpiphp: Slot [17] registered
    [ 0.124044] acpiphp: Slot [18] registered
    [ 0.125020] acpiphp: Slot [19] registered
    [ 0.125992] acpiphp: Slot [20] registered
    [ 0.126040] acpiphp: Slot [21] registered
    [ 0.127015] acpiphp: Slot [22] registered
    [ 0.128038] acpiphp: Slot [23] registered
    [ 0.129011] acpiphp: Slot [24] registered
    [ 0.129983] acpiphp: Slot [25] registered
    [ 0.130054] acpiphp: Slot [26] registered
    [ 0.131024] acpiphp: Slot [27] registered
    [ 0.131989] acpiphp: Slot [28] registered
    [ 0.132061] acpiphp: Slot [29] registered
    [ 0.133081] acpiphp: Slot [30] registered
    [ 0.134043] acpiphp: Slot [31] registered
    [ 0.134999] PCI host bridge to bus 0000:00
    [ 0.135013] pci_bus 0000:00: root bus resource [bus 00-ff]
    [ 0.136015] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7]
    [ 0.137016] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff]
    [ 0.138010] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]
    [ 0.139008] pci_bus 0000:00: root bus resource [mem 0x80000000-0xfebfffff]
    [ 0.140081] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
    [ 0.140720] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
    [ 0.141606] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
    [ 0.146578] pci 0000:00:01.1: reg 0x20: [io 0xc0a0-0xc0af]
    [ 0.148861] pci 0000:00:01.2: [8086:7020] type 00 class 0x0c0300
    [ 0.153578] pci 0000:00:01.2: reg 0x20: [io 0xc040-0xc05f]
    [ 0.155845] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000
    [ 0.156526] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI
    [ 0.157031] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB
    [ 0.158452] pci 0000:00:02.0: [1013:00b8] type 00 class 0x030000
    [ 0.160076] pci 0000:00:02.0: reg 0x10: [mem 0xfc000000-0xfdffffff pref]
    [ 0.162070] pci 0000:00:02.0: reg 0x14: [mem 0xfebf0000-0xfebf0fff]
    [ 0.172076] pci 0000:00:02.0: reg 0x30: [mem 0xfebe0000-0xfebeffff pref]
    [ 0.172849] pci 0000:00:03.0: [1af4:1000] type 00 class 0x020000
    [ 0.174019] pci 0000:00:03.0: reg 0x10: [io 0xc060-0xc07f]
    [ 0.176000] pci 0000:00:03.0: reg 0x14: [mem 0xfebf1000-0xfebf1fff]
    [ 0.184674] pci 0000:00:04.0: [1af4:1001] type 00 class 0x010000
    [ 0.186011] pci 0000:00:04.0: reg 0x10: [io 0xc000-0xc03f]
    [ 0.188011] pci 0000:00:04.0: reg 0x14: [mem 0xfebf2000-0xfebf2fff]
    [ 0.197573] pci 0000:00:05.0: [1af4:1002] type 00 class 0x00ff00
    [ 0.198592] pci 0000:00:05.0: reg 0x10: [io 0xc080-0xc09f]
    [ 0.205890] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
    [ 0.207178] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
    [ 0.209035] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
    [ 0.210161] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
    [ 0.211102] ACPI: PCI Interrupt Link [LNKS] (IRQs *9)
    [ 0.212679] ACPI: Enabled 16 GPEs in block 00 to 0F
    [ 0.213022] ACPI: \_SB_.PCI0: notify handler is installed
    [ 0.213046] Found 1 acpi root devices
    [ 0.213698] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
    [ 0.214010] vgaarb: loaded
    [ 0.214897] vgaarb: bridge control possible 0000:00:02.0
    [ 0.215297] SCSI subsystem initialized
    [ 0.216066] ACPI: bus type USB registered
    [ 0.217076] usbcore: registered new interface driver usbfs
    [ 0.218032] usbcore: registered new interface driver hub
    [ 0.219545] usbcore: registered new device driver usb
    [ 0.220363] PCI: Using ACPI for IRQ routing
    [ 0.221034] PCI: pci_cache_line_size set to 64 bytes
    [ 0.221459] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
    [ 0.221470] e820: reserve RAM buffer [mem 0x1fffe000-0x1fffffff]
    [ 0.221948] NetLabel: Initializing
    [ 0.222018] NetLabel: domain hash size = 128
    [ 0.223011] NetLabel: protocols = UNLABELED CIPSOv4
    [ 0.224179] NetLabel: unlabeled traffic allowed by default
    [ 0.225229] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
    [ 0.226064] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
    [ 0.228010] hpet0: 3 comparators, 64-bit 100.000000 MHz counter
    [ 0.232202] Switching to clocksource kvm-clock
    [ 0.252178] pnp: PnP ACPI init
    [ 0.254407] ACPI: bus type PNP registered
    [ 0.257421] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active)
    [ 0.257619] pnp 00:01: Plug and Play ACPI device, IDs PNP0303 (active)
    [ 0.257752] pnp 00:02: Plug and Play ACPI device, IDs PNP0f13 (active)
    [ 0.257883] pnp 00:03: [dma 2]
    [ 0.257923] pnp 00:03: Plug and Play ACPI device, IDs PNP0700 (active)
    [ 0.258256] pnp 00:04: Plug and Play ACPI device, IDs PNP0501 (active)
    [ 0.258705] pnp 00:05: Plug and Play ACPI device, IDs PNP0103 (active)
    [ 0.259076] pnp: PnP ACPI: found 6 devices
    [ 0.261274] ACPI: bus type PNP unregistered
    [ 0.271902] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7]
    [ 0.271909] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff]
    [ 0.271913] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff]
    [ 0.271916] pci_bus 0000:00: resource 7 [mem 0x80000000-0xfebfffff]
    [ 0.272043] NET: Registered protocol family 2
    [ 0.274033] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [ 0.275620] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
    [ 0.277260] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.279118] TCP: reno registered
    [ 0.281196] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.282672] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.284426] NET: Registered protocol family 1
    [ 0.285867] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
    [ 0.287361] pci 0000:00:01.0: PIIX3: Enabling Passive Release
    [ 0.288857] pci 0000:00:01.0: Activating ISA DMA hang workarounds
    [ 0.291043] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
    [ 0.293798] pci 0000:00:02.0: Boot video device
    [ 0.293887] PCI: CLS 0 bytes, default 64
    [ 0.294149] Unpacking initramfs...
    [ 0.536211] Freeing initrd memory: 8908k freed
    [ 0.540466] microcode: CPU0 sig=0x306e4, pf=0x1, revision=0x1
    [ 0.541228] microcode: Microcode Update Driver: v2.00 , Peter Oruba
    [ 0.542706] futex hash table entries: 256 (order: 2, 16384 bytes)
    [ 0.543463] Initialise system trusted keyring
    [ 0.544227] audit: initializing netlink socket (disabled)
    [ 0.544911] type=2000 audit(1431042838.641:1): initialized
    [ 0.566702] HugeTLB registered 2 MB page size, pre-allocated 0 pages
    [ 0.568874] zbud: loaded
    [ 0.569692] VFS: Disk quotas dquot_6.5.2
    [ 0.570419] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [ 0.571321] msgmni has been set to 977
    [ 0.572073] Key type big_key registered
    [ 0.572728] SELinux: Registering netfilter hooks
    [ 0.573563] alg: No test for stdrng (krng)
    [ 0.574222] NET: Registered protocol family 38
    [ 0.574872] Key type asymmetric registered
    [ 0.575509] Asymmetric key parser 'x509' registered
    [ 0.576215] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    [ 0.577418] io scheduler noop registered
    [ 0.578051] io scheduler deadline registered (default)
    [ 0.578724] io scheduler cfq registered
    [ 0.579479] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
    [ 0.580207] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
    [ 0.580968] intel_idle: does not run on family 6 model 62
    [ 0.581062] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
    [ 0.582235] ACPI: Power Button [PWRF]
    [ 0.583053] GHES: HEST is not enabled!
    [ 0.583802] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 0.627204] 00:04: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [ 0.630446] Non-volatile memory driver v1.3
    [ 0.631890] Linux agpgart interface v0.103
    [ 0.633535] crash memory driver: version 1.1
    [ 0.634980] rdac: device handler registered
    [ 0.636555] hp_sw: device handler registered
    [ 0.637945] emc: device handler registered
    [ 0.639292] alua: device handler registered
    [ 0.640776] libphy: Fixed MDIO Bus: probed
    [ 0.642295] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 0.643810] ehci-pci: EHCI PCI platform driver
    [ 0.645221] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [ 0.646680] ohci-pci: OHCI PCI platform driver
    [ 0.648114] uhci_hcd: USB Universal Host Controller Interface driver
    [ 0.650940] uhci_hcd 0000:00:01.2: UHCI Host Controller
    [ 0.652508] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
    [ 0.655354] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c040
    [ 0.657127] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
    [ 0.658744] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 0.661404] usb usb1: Product: UHCI Host Controller
    [ 0.662997] usb usb1: Manufacturer: Linux 3.10.0-123.8.1.el7.x86_64 uhci_hcd
    [ 0.664516] usb usb1: SerialNumber: 0000:00:01.2
    [ 0.666324] hub 1-0:1.0: USB hub found
    [ 0.667940] hub 1-0:1.0: 2 ports detected
    [ 0.669928] usbcore: registered new interface driver usbserial
    [ 0.671637] usbcore: registered new interface driver usbserial_generic
    [ 0.673318] usbserial: USB Serial support registered for generic
    [ 0.675237] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
    [ 0.680210] serio: i8042 KBD port at 0x60,0x64 irq 1
    [ 0.681771] serio: i8042 AUX port at 0x60,0x64 irq 12
    [ 0.683790] mousedev: PS/2 mouse device common for all mice
    [ 0.686366] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
    [ 0.690906] rtc_cmos 00:00: RTC can wake from S4
    [ 0.697658] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
    [ 0.713657] rtc_cmos 00:00: alarms up to one day, 114 bytes nvram, hpet irqs
    [ 0.717160] cpuidle: using governor menu
    [ 0.720541] hidraw: raw HID events driver (C) Jiri Kosina
    [ 0.724062] usbcore: registered new interface driver usbhid
    [ 0.725557] usbhid: USB HID core driver
    [ 0.728245] drop_monitor: Initializing network drop monitor service
    [ 0.730232] TCP: cubic registered
    [ 0.731633] Initializing XFRM netlink socket
    [ 0.733422] NET: Registered protocol family 10
    [ 0.735548] NET: Registered protocol family 17
    [ 0.738148] Loading compiled-in X.509 certificates
    [ 0.739325] Loaded X.509 cert 'CentOS Linux kpatch signing key: ea0413152cde1d98ebdca3fe6f0230904c9ef717'
    [ 0.740674] Loaded X.509 cert 'CentOS Linux Driver update signing key: 7f421ee0ab69461574bb358861dbe77762a4201b'
    [ 0.742487] Loaded X.509 cert 'CentOS Linux kernel signing key: b40ba1cf5104a1146997515e90840a8b2c9fb144'
    [ 0.743781] registered taskstats version 1
    [ 0.747791] Key type trusted registered
    [ 0.750156] Key type encrypted registered
    [ 0.752483] IMA: No TPM chip found, activating TPM-bypass!
    [ 0.753737] rtc_cmos 00:00: setting system clock to 2015-05-07 23:53:59 UTC (1431042839)
    [ 0.755751] Freeing unused kernel memory: 1584k freed
    [ 0.761967] systemd[1]: systemd 208 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
    [ 0.763422] systemd[1]: Detected virtualization 'kvm'.
    [ 0.764117] systemd[1]: Running in initial RAM disk.
    [ 0.767254] systemd[1]: Set hostname to .
    [ 0.817547] systemd[1]: Expecting device dev-disk-by\x2dlabel-DOROOT.device...
    [ 0.822707] systemd[1]: Starting -.slice.
    [ 0.827135] systemd[1]: Created slice -.slice.
    [ 0.828799] systemd[1]: Starting System Slice.
    [ 0.833147] systemd[1]: Created slice System Slice.
    [ 0.834707] systemd[1]: Starting Slices.
    [ 0.838855] systemd[1]: Reached target Slices.
    [ 0.840457] systemd[1]: Starting Timers.
    [ 0.844577] systemd[1]: Reached target Timers.
    [ 0.846114] systemd[1]: Starting Journal Socket.
    [ 0.850433] systemd[1]: Listening on Journal Socket.
    [ 0.852416] systemd[1]: Started dracut cmdline hook.
    [ 0.854346] systemd[1]: Started dracut pre-udev hook.
    [ 0.855936] systemd[1]: Starting Journal Service...
    [ 0.863142] systemd[1]: Started Journal Service.
    [ 0.889910] systemd-journald[81]: Vacuuming done, freed 0 bytes
    [ 1.193885] systemd-udevd[99]: starting version 208
    [ 1.365202] FDC 0 is a S82078B
    [ 1.404430] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
    [ 1.435919] ACPI: bus type ATA registered
    [ 1.441076] libata version 3.00 loaded.
    [ 1.458698] [drm] Initialized drm 1.1.0 20060810
    [ 1.465610] ata_piix 0000:00:01.1: version 2.13
    [ 1.475039] scsi0 : ata_piix
    [ 1.482822] scsi1 : ata_piix
    [ 1.484374] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0a0 irq 14
    [ 1.486112] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0a8 irq 15
    [ 1.489074] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
    [ 1.542148] tsc: Refined TSC clocksource calibration: 2399.977 MHz
    [ 1.546874] virtio-pci 0000:00:03.0: irq 40 for MSI/MSI-X
    [ 1.546936] virtio-pci 0000:00:03.0: irq 41 for MSI/MSI-X
    [ 1.546993] virtio-pci 0000:00:03.0: irq 42 for MSI/MSI-X
    [ 1.557382] virtio-pci 0000:00:04.0: irq 43 for MSI/MSI-X
    [ 1.557444] virtio-pci 0000:00:04.0: irq 44 for MSI/MSI-X
    [ 1.635213] [TTM] Zone kernel: Available graphics memory: 250954 kiB
    [ 1.637244] [TTM] Initializing pool allocator
    [ 1.644366] [TTM] Initializing DMA pool allocator
    [ 1.653197] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2
    [ 1.666055] vda: vda1
    [ 1.682994] [drm] fb mappable at 0x0
    [ 1.684420] [drm] vram aper at 0x0
    [ 1.685883] [drm] size 0
    [ 1.687227] [drm] fb depth is 24
    [ 1.688552] [drm] pitch is 3840
    [ 1.693879] fbcon: cirrusdrmfb (fb0) is primary device
    [ 1.806543] Console: switching to colour frame buffer device 160x64
    [ 1.842198] cirrus 0000:00:02.0: fb0: cirrusdrmfb frame buffer device
    [ 1.842201] cirrus 0000:00:02.0: registered panic notifier
    [ 1.865173] [drm] Initialized cirrus 1.0.0 20110418 for 0000:00:02.0 on minor 0
    [ 1.956371] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
    [ 2.087380] systemd-journald[81]: Received SIGTERM
    [ 2.112755] SELinux: Disabled at runtime.
    [ 2.112810] SELinux: Unregistering netfilter hooks
    [ 2.113031] type=1404 audit(1431042840.859:2): selinux=0 auid=4294967295 ses=4294967295
    [ 2.291586] systemd-journald[236]: Vacuuming done, freed 0 bytes
    [ 2.333264] EXT4-fs (vda1): re-mounted. Opts: (null)
    [ 2.373568] systemd-udevd[248]: starting version 208
    [ 2.566836] systemd-journald[236]: Received request to flush runtime journal from PID 1
    [ 2.596187] type=1305 audit(1431042841.342:3): audit_pid=266 old=0 auid=4294967295 ses=4294967295 res=1
    [ 2.637614] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
    [ 2.680927] input: PC Speaker as /devices/platform/pcspkr/input/input3
    [ 2.846670] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
    [ 2.889028] alg: No test for crc32 (crc32-pclmul)
    [ 36.729966] perf samples too long (2681 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
    [ 279.353655] perf samples too long (5100 > 5000), lowering kernel.perf_event_max_sample_rate to 25000
    [ 8543.238276] perf samples too long (10901 > 10000), lowering kernel.perf_event_max_sample_rate to 13000
    [30425.177584] perf samples too long (19545 > 19230), lowering kernel.perf_event_max_sample_rate to 7000
    [55612.900840] perf samples too long (35727 > 35714), lowering kernel.perf_event_max_sample_rate to 4000
    [153738.351629] hrtimer: interrupt took 227504 ns

    df:
    Файловая система 1K-блоков Использовано Доступно Использовано% Cмонтировано в
    /dev/vda1 20512592 2451100 16996532 13% /
    devtmpfs 245708 0 245708 0% /dev
    tmpfs 250952 0 250952 0% /dev/shm
    tmpfs 250952 4340 246612 2% /run
    tmpfs 250952 0 250952 0% /sys/fs/cgroup

    Установка Development Tools ничего не изменила. pecl install imagick так же выдает ошибку.
  • CentOS php-imagick выдает ошибку компиляции при установке. Что делать?

    @xskif Автор вопроса
    3vi1_0n3: Не могу его найти. Где он может быть?
  • Авторизация в PHP + MVC, где осуществлять проверку?

    @xskif
    Сергей Протько: на лицо подмена понятий. Middleware не обязательно быть адаптером, а Вы его сравниваете. Но, я соглашусь, если убрать адаптер из приложения - то оно, скорее всего, упадет, потому что интерфейс не соответствует. А вот декораторы должны быть взаимозаменяемы. От сюда вернемся к Вашему ответу. Вы предложили адаптерам делать то, для чего они не предназначены, оборачивать другие адаптеры бесконечное количество раз, называя декораторы адаптерами. Мне сразу вспоминается статья про ТТУКи. Собственно, поэтому я и придрался.

    Middleware не обязательно является адаптером, более того, в большинстве случаев это совсем не адаптеры, скорее Chain of Responsibility. Для того они и подключаются через конфигурацию, чтобы добавить логику в Application Logic Layer, но их там может и не быть и приложение запустится, просто без той же аутентификации и авторизации.
  • Как организовать код в Ruby on Rails на отдельные модули?

    @xskif Автор вопроса
    Виктор Ablebeam: Ну да, на сколько я знаю, Class наследуется от Module в руби и модули встраиваются в классы, но, в то же время, модули используют для инкапсуляции классов, как, например, модуль ActiveRecord в Rails. Получается двусторонний функционал на уровне языка.
  • Авторизация в PHP + MVC, где осуществлять проверку?

    @xskif
    Сергей Протько: Да что Вы. Адаптер адаптирует реализацию под требуемый интерфейс через композицию адаптируемого объекта, в то время как декоратор оборачивает объекты с идентичным интерфейсом для изменения или дополнения поведения методов.

    Адаптер не меняет поведение, декоратор же меняет или дополняет поведение вложенных объектов. Как раз Ваш случай.
  • Авторизация в PHP + MVC, где осуществлять проверку?

    @xskif
    >> за счет применение паттерна адаптер можно сделать много вложенных друг в дружку реализаций интерфейса

    Может Вы имели ввиду "декоратор"?
  • Как организовать код в Ruby on Rails на отдельные модули?

    @xskif Автор вопроса
    Виктор Ablebeam: Никогда не работал с модулями в этих CMS, да и с ними тоже почти не работал, пронесло. Мое видение модуля исходит исключительно из опыта работы. Я привык к тому что могу оформить часть приложения в модуль, как модуль новостей или комментариев, так же, я привык, что могу вынести определенный обобщенный функционал в модуль, как перехватчик запроса или набор валидаторов, и создать тот же gem, на его основе.

    Для меня пока не ясно зачем использовать модули для встраивания, как оно сделано в pure ruby и в concern RoR, но это, видимо, особенность языка.
  • Как организовать код в Ruby on Rails на отдельные модули?

    @xskif Автор вопроса
    Что Вы имеете ввиду под "слишком буквально"? Может я и вправду не очень понимаю модули в Ruby.
  • Как организовать код в Ruby on Rails на отдельные модули?

    @xskif Автор вопроса
    То что надо. Спасибо. Наткнулся во время поисков на Devise, но никак не мог поверить что это оно, да и не понял как такое сделать.
  • Как организовать код в Ruby on Rails на отдельные модули?

    @xskif Автор вопроса
    Меня не интересует Python в данный момент. Вопрос про RoR и только.
  • Как в Yii2 перенести компонент из папки yii/vendor, в папку проекта?

    @xskif
    webinar: если решение стабильное то интерфейс класса изменяться не должен, следовательно поломка почти невозможна.