setup Laravel 8,7 on CentOS8

Emotional, Burning, Unlimited Tuned Laboratory

Check: Laravel + AdminLTE + Vue.JS

Laravel 8 -> Vue.js非推奨か・・・まだ Use Caseも少ないか・・・
Laravel 7 -> jeroennoten/laravel-adminlte はメモリ 2GB< Vue.js のパッケージングセットは稼働しない・・

Composer 使わずに、 Laravel+Vue Crud Starter – A very simple Laravel 7 + Vue 2 + AdminLTE 3 based Curd Starter template for SPA Application. とかの別路線で行くか?でもアップデート、他ツール連携を考えると標準的な composer での管理がよい・・・

Environment : os, daemon, php

[root@home ~]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)
[root@home ~]# dnf repolist
repo id            repo name
AppStream          CentOS-8 - AppStream
BaseOS             CentOS-8 - Base
PowerTools         CentOS-8 - PowerTools
epel               Extra Packages for Enterprise Linux 8 - x86_64
epel-modular       Extra Packages for Enterprise Linux Modular 8 - x86_64
extras             CentOS-8 - Extras
mariadb-main       MariaDB Server
mariadb-maxscale   MariaDB MaxScale
nginx-mainline     nginx mainline repo
remi               Remi's RPM repository for Enterprise Linux 8 - x86_64
remi-modular       Remi's Modular repository for Enterprise Linux 8 - x86_64
remi-safe          Safe Remi's RPM repository for Enterprise Linux 8 - x86_64


[root@home ~]# ll /etc/yum.repos.d/
CentOS-AppStream.repo      CentOS-Vault.repo
CentOS-Base.repo           epel-modular.repo
CentOS-centosplus.repo     epel-playground.repo
CentOS-CR.repo             epel.repo
CentOS-Debuginfo.repo      epel-testing-modular.repo
CentOS-Devel.repo          epel-testing.repo
CentOS-Extras.repo         mariadb.repo
CentOS-fasttrack.repo      nginx.repo
CentOS-HA.repo             remi-modular.repo
CentOS-Media.repo          remi.repo
CentOS-PowerTools.repo     remi-safe.repo
CentOS-Sources.repo


[root@home ~]# rpm -qi nginx
Name        : nginx
Epoch       : 1
Version     : 1.17.4
Release     : 1.el8.ngx
Architecture: x86_64
Install Date: Sun 29 Sep 2019 09:51:31 PM JST
Group       : System Environment/Daemons
Size        : 3003720
License     : 2-clause BSD-like license
Signature   : RSA/SHA1, Wed 25 Sep 2019 01:04:47 AM JST, Key ID abf5bd827bd9bf62
Source RPM  : nginx-1.17.4-1.el8.ngx.src.rpm
Build Date  : Wed 25 Sep 2019 12:22:05 AM JST
Build Host  : rhel8-amd64-builder-builder.gnt.nginx.com
Relocations : (not relocatable)
Vendor      : Nginx, Inc.
URL         : http://nginx.org/
Summary     : High performance web server
Description :
nginx [engine x] is an HTTP and reverse proxy server, as well as
a mail proxy server.


[root@home ~]# rpm -aq | grep aria
MariaDB-server-10.4.8-1.el8.x86_64
MariaDB-client-10.4.12-1.el8.x86_64
MariaDB-common-10.4.12-1.el8.x86_64
[root@home ~]# rpm -aq | grep nginx
nginx-mod-stream-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64
nginx-mod-http-perl-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64
nginx-mod-http-xslt-filter-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64
nginx-mod-mail-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64
nginx-all-modules-1.14.1-9.module_el8.0.0+184+e34fea82.noarch
nginx-filesystem-1.14.1-9.module_el8.0.0+184+e34fea82.noarch
nginx-mod-http-image-filter-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64
nginx-1.17.4-1.el8.ngx.x86_64
[root@home ~]# rpm -aq | grep php
php-process-7.4.9-1.el8.remi.x86_64
php-pear-1.10.12-1.el8.remi.noarch
php-gd-7.4.9-1.el8.remi.x86_64
oniguruma5php-6.9.5+rev1-2.el8.remi.x86_64
php-cli-7.4.9-1.el8.remi.x86_64
php-json-7.4.9-1.el8.remi.x86_64
php-mbstring-7.4.9-1.el8.remi.x86_64
php-mysqlnd-7.4.9-1.el8.remi.x86_64
php-phpmailer6-6.1.7-1.el8.remi.noarch
php-bcmath-7.4.9-1.el8.remi.x86_64
php-intl-7.4.9-1.el8.remi.x86_64
php-xml-7.4.9-1.el8.remi.x86_64
php-fpm-7.4.9-1.el8.remi.x86_64
php-imap-7.4.9-1.el8.remi.x86_64
php-pecl-zip-1.19.0-1.el8.remi.7.4.x86_64
php-fedora-autoloader-1.0.1-2.el8.remi.noarch
php-pecl-mcrypt-1.0.3-1.el8.remi.7.4.x86_64
php-common-7.4.9-1.el8.remi.x86_64
php-pdo-7.4.9-1.el8.remi.x86_64


[root@home ~]# dnf install php-opcache php-pecl-xdebug
Last metadata expiration check: 0:59:38 ago on Sat 22 Aug 2020 04:11:01 PM JST.
Dependencies resolved.
================================================================================
Package             Arch       Version                  Repository        Size
================================================================================
Installing:
php-opcache         x86_64     7.4.9-1.el8.remi         remi-modular     333 k
php-pecl-xdebug     x86_64     2.9.6-1.el8.remi.7.4     remi-modular     249 k


Transaction Summary
================================================================================
Install  2 Packages
...
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Installing       : php-pecl-xdebug-2.9.6-1.el8.remi.7.4.x86_64            1/2
  Installing       : php-opcache-7.4.9-1.el8.remi.x86_64                    2/2
  Running scriptlet: php-opcache-7.4.9-1.el8.remi.x86_64                    2/2
  Verifying        : php-opcache-7.4.9-1.el8.remi.x86_64                    1/2
  Verifying        : php-pecl-xdebug-2.9.6-1.el8.remi.7.4.x86_64            2/2


Installed:
  php-opcache-7.4.9-1.el8.remi.x86_64
  php-pecl-xdebug-2.9.6-1.el8.remi.7.4.x86_64


Complete!

Required from Laeavel installed:
php-bcmath
php-intl
php-pdo
php-xml
php-mysqlnd
php-gd
php-mcrypt -> php-pecl-mcrypt-1.0.3-1.el8.remi.7.4.x86_64
php-tokenizer -> php-common-7.4.9-1.el8.remi.x86_64
php-zip -> php-pecl-zip-1.19.0-1.el8.remi.7.4.x86_64

add:
php-opcache
php-pecl-xdebug

Environment : composer

[root@home ~]# wget https://getcomposer.org/installer -O comp
oser-installer.php
--2020-08-12 17:38:47--  https://getcomposer.org/installer
Resolving getcomposer.org (getcomposer.org)... 142.44.245.229, 2607:5300:201:2100::4:d105
Connecting to getcomposer.org (getcomposer.org)|142.44.245.229|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 275994 (270K) [application/octet-stream]
Saving to: ‘composer-installer.php’


composer-installer. 100%[===================>] 269.53K   269KB/s    in 1.0s


2020-08-12 17:38:49 (269 KB/s) - ‘composer-installer.php’ saved [275994/275994]


[root@home ~]# php composer-installer.php --filename=composer --install-dir=/usr/local/bin
All settings correct for using Composer
Downloading...


Composer (version 1.10.10) successfully installed to: /usr/local/bin/composer
Use it: php /usr/local/bin/composer


[root@home ~]# composer self-update
A preview release of the next major version of Composer is available (2.0.0-alpha3), run "composer self-update --preview" to give it a try. See also https://github.com/composer/composer/releases for changelogs.
You are already using composer version 1.10.10 (stable channel).


[root@home ~]# composer -v
Do not run Composer as root/super user! See https://getcomposer.org/root for details
   ______
  / ____/___  ____ ___  ____  ____  ________  _____
/ /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 1.10.10 2020-08-03 11:35:19


Usage:
  command [options] [arguments]
...

Environment : node.js

[root@dev822 ~]# dnf search nodejs
Last metadata expiration check: 1:29:16 ago on Fri 09 Oct 2020 12:57:03 PM JST.
========================================= Name Exactly Matched: nodejs ==========================================
nodejs.x86_64 : JavaScript runtime
======================================== Name & Summary Matched: nodejs =========================================
nodejs-GeographicLib.noarch : NodeJS implementation of GeographicLib
============================================= Name Matched: nodejs ==============================================
nodejs-docs.noarch : Node.js API documentation
nodejs-devel.x86_64 : JavaScript runtime - development headers
nodejs-marked.noarch : A markdown parser for JavaScript built for speed
nodejs-nodemon.noarch : Simple monitor script for use during development of a node.js app
nodejs-full-i18n.x86_64 : Non-English locale data for Node.js
nodejs-packaging.noarch : RPM Macros and Utilities for Node.js Packaging
nodejs-codemirror.noarch : A versatile JS text editor
============================================ Summary Matched: nodejs ============================================
cjdns-tools.noarch : Nodejs tools for cjdns


[root@dev822 ~]# dnf install nodejs
Last metadata expiration check: 1:29:38 ago on Fri 09 Oct 2020 12:57:03 PM JST.
Dependencies resolved.
=================================================================================================================
Package               Arch        Version                                                  Repository      Size
=================================================================================================================
Installing:
nodejs                x86_64      1:10.21.0-3.module_el8.2.0+391+8da3adc6                  AppStream      8.9 M
Installing dependencies:
npm                   x86_64      1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6         AppStream      3.8 M
Installing weak dependencies:
nodejs-full-i18n      x86_64      1:10.21.0-3.module_el8.2.0+391+8da3adc6                  AppStream      7.3 M
Enabling module streams:
nodejs                            10


Transaction Summary
=================================================================================================================
Install  3 Packages


Total download size: 20 M
Installed size: 72 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): npm-6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x86_64.rpm             1.6 MB/s | 3.8 MB     00:02
(2/3): nodejs-full-i18n-10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64.rpm         2.0 MB/s | 7.3 MB     00:03
(3/3): nodejs-10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64.rpm                   1.9 MB/s | 8.9 MB     00:04
-----------------------------------------------------------------------------------------------------------------
Total                                                                            4.0 MB/s |  20 MB     00:05
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: npm-1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x86_64                             1/1
  Preparing        :                                                                                         1/1
  Installing       : nodejs-full-i18n-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64                         1/3
  Installing       : npm-1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x86_64                             2/3
  Installing       : nodejs-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64                                   3/3
  Running scriptlet: nodejs-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64                                   3/3
  Verifying        : nodejs-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64                                   1/3
  Verifying        : nodejs-full-i18n-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64                         2/3
  Verifying        : npm-1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x86_64                             3/3


Installed:
  nodejs-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64
  nodejs-full-i18n-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64
  npm-1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x86_64


Complete!
…

Environment : Laravel8

[cozy@home.dev820 ~]$ composer global require laravel/installer
Changed current directory to /home/cozy/.config/composer
Using version ^4.0 for laravel/installer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 12 installs, 0 updates, 0 removals
  - Installing symfony/polyfill-php80 (v1.18.1): Downloading (100%)
  - Installing symfony/process (v5.1.7): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.18.1): Downloading (100%)         - Installing symfony/polyfill-intl-normalizer (v1.18.1): Downloading (100%)  - Installing symfony/polyfill-intl-grapheme (v1.18.1): Downloading (100%)    - Installing symfony/polyfill-ctype (v1.18.1): Downloading (100%)
  - Installing symfony/string (v5.1.7): Downloading (100%)
  - Installing psr/container (1.0.0): Downloading (100%)
  - Installing symfony/service-contracts (v2.2.0): Downloading (100%)          - Installing symfony/polyfill-php73 (v1.18.1): Downloading (100%)
  - Installing symfony/console (v5.1.7): Downloading (100%)
  - Installing laravel/installer (v4.0.5): Downloading (100%)
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing psr/log (For using the console logger)
Writing lock file
Generating autoload files
10 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
[cozy@home.dev820 ~]$ ema .bash_profile
[cozy@home.dev820 ~]$ source .bash_profile
[cozy@home.dev822 ~]$ diff .bash_profile .bash_profile~
9c9
< PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/.config/composer/vendor/bin
---
> PATH=$PATH:$HOME/.local/bin:$HOME/bin


[cozy@home.dev822 ~]$ cd /data/wp.ebut.org/
[cozy@home.dev822 wp.ebut.org]$ composer create-project "laravel/laravel" wp081
Creating a "laravel/laravel" project at "./wp081"
Installing laravel/laravel (v8.1.0)
  - Installing laravel/laravel (v8.1.0): Downloading (100%)
Created project in /data/wp.ebut.org/wp081
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 107 installs, 0 updates, 0 removals
  - Installing voku/portable-ascii (1.5.3): Loading from cache
  - Installing symfony/polyfill-php80 (v1.18.1): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.18.1): Loading from cache
  - Installing symfony/polyfill-ctype (v1.18.1): Loading from cache
  - Installing phpoption/phpoption (1.7.5): Loading from cache
  - Installing graham-campbell/result-type (v1.0.1): Loading from cache
  - Installing vlucas/phpdotenv (v5.2.0): Loading from cache
  - Installing symfony/css-selector (v5.1.7): Loading from cache
  - Installing tijsverkoyen/css-to-inline-styles (2.2.3): Loading from cache
  - Installing symfony/var-dumper (v5.1.7): Loading from cache
  - Installing symfony/deprecation-contracts (v2.2.0): Loading from cache
  - Installing symfony/routing (v5.1.7): Loading from cache
  - Installing symfony/process (v5.1.7): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.18.1): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.18.1): Loading from cache
  - Installing symfony/string (v5.1.7): Loading from cache
  - Installing symfony/polyfill-php72 (v1.18.1): Loading from cache
  - Installing paragonie/random_compat (v9.99.99): Loading from cache
  - Installing symfony/polyfill-php70 (v1.18.1): Loading from cache
  - Installing symfony/polyfill-intl-idn (v1.18.1): Loading from cache
  - Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
  - Installing webmozart/assert (1.9.1): Loading from cache
  - Installing phpdocumentor/type-resolver (1.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (5.2.2): Loading from cache
  - Installing symfony/mime (v5.1.7): Loading from cache
  - Installing psr/log (1.1.3): Loading from cache
  - Installing symfony/polyfill-php73 (v1.18.1): Loading from cache
  - Installing symfony/http-foundation (v5.1.7): Loading from cache
  - Installing symfony/http-client-contracts (v2.2.0): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing psr/event-dispatcher (1.0.0): Loading from cache
  - Installing symfony/event-dispatcher-contracts (v2.2.0): Loading from cache
  - Installing symfony/event-dispatcher (v5.1.7): Loading from cache
  - Installing symfony/error-handler (v5.1.7): Loading from cache
  - Installing symfony/http-kernel (v5.1.7): Loading from cache
  - Installing symfony/finder (v5.1.7): Loading from cache
  - Installing symfony/service-contracts (v2.2.0): Loading from cache
  - Installing symfony/console (v5.1.7): Loading from cache
  - Installing symfony/polyfill-iconv (v1.18.1): Loading from cache
  - Installing doctrine/lexer (1.2.1): Loading from cache
  - Installing egulias/email-validator (2.1.22): Loading from cache
  - Installing swiftmailer/swiftmailer (v6.2.3): Loading from cache
  - Installing brick/math (0.9.1): Loading from cache
  - Installing ramsey/collection (1.1.1): Loading from cache
  - Installing ramsey/uuid (4.1.1): Loading from cache
  - Installing psr/simple-cache (1.0.1): Loading from cache
  - Installing opis/closure (3.5.7): Loading from cache
  - Installing symfony/translation-contracts (v2.3.0): Loading from cache
  - Installing symfony/translation (v5.1.7): Loading from cache
  - Installing nesbot/carbon (2.41.0): Loading from cache
  - Installing monolog/monolog (2.1.1): Loading from cache
  - Installing league/mime-type-detection (1.5.0): Loading from cache
  - Installing league/flysystem (1.1.3): Loading from cache
  - Installing league/commonmark (1.5.5): Loading from cache
  - Installing dragonmantank/cron-expression (3.0.1): Loading from cache
  - Installing doctrine/inflector (2.0.3): Loading from cache
  - Installing laravel/framework (v8.9.0): Downloading (100%)
  - Installing fideloper/proxy (4.4.0): Loading from cache
  - Installing asm89/stack-cors (v2.0.1): Loading from cache
  - Installing fruitcake/laravel-cors (v2.0.2): Loading from cache
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing psr/http-client (1.0.1): Loading from cache
  - Installing ralouphie/getallheaders (3.0.3): Loading from cache
  - Installing guzzlehttp/psr7 (1.7.0): Loading from cache
  - Installing guzzlehttp/promises (1.4.0): Loading from cache
  - Installing guzzlehttp/guzzle (7.1.1): Loading from cache
  - Installing dnoegel/php-xdg-base-dir (v0.1.1): Loading from cache
  - Installing nikic/php-parser (v4.10.2): Loading from cache
  - Installing psy/psysh (v0.10.4): Loading from cache
  - Installing laravel/tinker (v2.4.2): Loading from cache
  - Installing scrivo/highlight.php (v9.18.1.2): Loading from cache
  - Installing filp/whoops (2.7.3): Loading from cache
  - Installing facade/ignition-contracts (1.0.1): Loading from cache
  - Installing facade/flare-client-php (1.3.6): Loading from cache
  - Installing facade/ignition (2.3.8): Loading from cache
  - Installing fzaninotto/faker (v1.9.1): Loading from cache
  - Installing hamcrest/hamcrest-php (v2.0.1): Loading from cache
  - Installing mockery/mockery (1.4.2): Loading from cache
  - Installing nunomaduro/collision (v5.0.2): Loading from cache
  - Installing sebastian/version (3.0.2): Loading from cache
  - Installing sebastian/type (2.3.0): Loading from cache
  - Installing sebastian/resource-operations (3.0.3): Loading from cache
  - Installing sebastian/recursion-context (4.0.3): Loading from cache
  - Installing sebastian/object-reflector (2.0.3): Loading from cache
  - Installing sebastian/object-enumerator (4.0.3): Loading from cache
  - Installing sebastian/global-state (5.0.1): Loading from cache
  - Installing sebastian/exporter (4.0.3): Loading from cache
  - Installing sebastian/environment (5.1.3): Loading from cache
  - Installing sebastian/diff (4.0.3): Loading from cache
  - Installing sebastian/comparator (4.0.5): Loading from cache
  - Installing sebastian/code-unit (1.0.7): Loading from cache
  - Installing sebastian/cli-parser (1.0.1): Loading from cache
  - Installing phpunit/php-timer (5.0.2): Loading from cache
  - Installing phpunit/php-text-template (2.0.3): Loading from cache
  - Installing phpunit/php-invoker (3.1.1): Loading from cache
  - Installing phpunit/php-file-iterator (3.0.5): Loading from cache
  - Installing sebastian/complexity (2.0.1): Loading from cache
  - Installing sebastian/lines-of-code (1.0.1): Loading from cache
  - Installing theseer/tokenizer (1.2.0): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (2.0.3): Loading from cache
  - Installing phpunit/php-code-coverage (9.2.0): Loading from cache
  - Installing doctrine/instantiator (1.3.1): Loading from cache
  - Installing phpspec/prophecy (1.12.1): Loading from cache
  - Installing phar-io/version (3.0.2): Loading from cache
  - Installing phar-io/manifest (2.0.1): Loading from cache
  - Installing myclabs/deep-copy (1.10.1): Loading from cache
  - Installing phpunit/phpunit (9.4.0): Loading from cache
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
symfony/http-client-contracts suggests installing symfony/http-client-implementation
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/http-kernel suggests installing symfony/browser-kit
symfony/http-kernel suggests installing symfony/config
symfony/http-kernel suggests installing symfony/dependency-injection
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/lock
swiftmailer/swiftmailer suggests installing true/punycode (Needed to support internationalized email addresses, if ext-intl is not installed)
ramsey/uuid suggests installing ext-gmp (Enables faster math with arbitrary-precision integers using GMP.)
ramsey/uuid suggests installing ext-uuid (Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
ramsey/uuid suggests installing paragonie/random-lib (Provides RandomLib for use with the RandomLibAdapter)
symfony/translation suggests installing symfony/config
symfony/translation suggests installing symfony/yaml
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing elasticsearch/elasticsearch (Allow sending log messages to an Elasticsearch server via official client)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongodb (Allow sending log messages to a MongoDB server (via driver))
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server (via library))
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
laravel/framework suggests installing ext-memcached (Required to use the memcache cache driver.)
laravel/framework suggests installing ext-redis (Required to use the Redis cache and queue drivers (^4.0|^5.0).)
laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.0).)
laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (^2.6).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (^1.0).)
laravel/framework suggests installing league/flysystem-cached-adapter (Required to use the Flysystem cache (^1.0).)
laravel/framework suggests installing league/flysystem-sftp (Required to use the Flysystem SFTP driver (^1.0).)
laravel/framework suggests installing nyholm/psr7 (Required to use PSR-7 bridging features (^1.2).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (^4.0).)
laravel/framework suggests installing predis/predis (Required to use the predis connector (^1.1.2).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (^4.0).)
laravel/framework suggests installing symfony/cache (Required to PSR-6 cache bridge (^5.1).)
laravel/framework suggests installing symfony/filesystem (Required to enable support for relative symbolic links (^5.1).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required to use PSR-7 bridging features (^2.0).)
laravel/framework suggests installing wildbit/swiftmailer-postmark (Required to use Postmark mail driver (^3.0).)
guzzlehttp/psr7 suggests installing laminas/laminas-httphandlerrunner (Emit PSR-7 responses)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
facade/ignition suggests installing laravel/telescope (^3.1)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-pcov (*)
phpunit/phpunit suggests installing ext-soap (*)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
73 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
> @php artisan key:generate --ansi
Application key set successfully.






[cozy@home.dev822 wp.ebut.org]$ cd wp081/
[cozy@home.dev822 wp081]$ php artisan --version
Laravel Framework 8.9.0
[cozy@home.dev822 wp081]$ sudo chmod -R g+w storage/ bootstrap/cache/; sudo chgrp -R nginx storage/ bootstrap/cache/




[cozy@home.dev822 wp08]$ cp -p .env .env.org
[cozy@home.dev822 wp08]$ ema .env
[cozy@home.dev822 wp081]$ diff .env .env.org
1c1
< APP_NAME=wp081
---
> APP_NAME=Laravel
5c5
< APP_URL=https://wp.ebut.org
---
> APP_URL=http://localhost
12,14c12,14
< DB_DATABASE=laravel-wp081
< DB_USERNAME=cozy
< DB_PASSWORD=Sara87!!
---
> DB_DATABASE=laravel
> DB_USERNAME=root
> DB_PASSWORD=




[cozy@home.dev822 wp081]$ mysqladmin create laravel-wp081

Environment : make local SSL certifications

[cozy@home.dev822 ~]$ sudo openssl genrsa -out /etc/ssl/wp.ebut.key 2048
Generating RSA private key, 2048 bit long modulus (2 primes)
......................+++++
.................+++++
e is 65537 (0x010001)
[cozy@home.dev822 ~]$ sudo openssl req -new -key /etc/ssl/wp.ebut.key -out /etc/ssl/wp.ebut.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:JP
State or Province Name (full name) []:Kanagawa
Locality Name (eg, city) [Default City]:Odawara
Organization Name (eg, company) [Default Company Ltd]:EBUTLAB
Organizational Unit Name (eg, section) []:NOC
Common Name (eg, your name or your server's hostname) []:wp.ebut.org
Email Address []:cozy@ebut.org


Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
[cozy@home.dev822 ~]$ sudo openssl x509 -days 3650 -req -signkey /etc/ssl/wp.ebut.key -in /etc/ssl/wp.ebut.csr -out /etc/ssl/wp.ebut.crt
Signature ok
subject=C = JP, ST = Kanagawa, L = Odawara, O = EBUTLAB, OU = NOC, CN = wp.ebut.org, emailAddress = cozy@ebut.org
Getting Private key
[cozy@home.dev822 ~]$ ll /etc/ss
ssh/  ssl/  sssd/
[cozy@home.dev822 ~]$ ll /etc/ssl/wp.ebut.*
-rw-r--r-- 1 root root 1302 10月  6 20:33 /etc/ssl/wp.ebut.crt
-rw-r--r-- 1 root root 1045 10月  6 20:31 /etc/ssl/wp.ebut.csr
-rw------- 1 root root 1675 10月  6 20:30 /etc/ssl/wp.ebut.key
...

Environment : config nginx + php-fpm

[cozy@home.dev822 ~]$ sudo su -
最終ログイン: 2020/10/06 (火) 14:31:31 JST日時 pts/0
[root@home ~]# cd /etc/nginx/conf.available/
[root@home conf.available]# emacs -nw wp.ebut.conf


server {
listen 192.168.56.80:80;
server_name wp.ebut.org;
index index.php;
access_log /data/log/nginx/wp.ebut.org.access.log main;
error_log /data/log/nginx/wp.ebut.org.error.log error;
if ($http_x_forwarded_proto != https) {
  return 301 https://$host$request_uri;
 }
}
server {
listen 192.168.56.80:443 ssl;
server_name wp.ebut.org;
#ssl on;
#keepalive_timeout   70;


ssl_protocols       sslv3 tlsv1 tlsv1.1 tlsv1.2;
#ssl_ciphers         aes128-sha:aes256-sha:rc4-sha:des-cbc3-sha:rc4-md5;
ssl_certificate     /etc/ssl/wp.ebut.crt;
ssl_certificate_key /etc/ssl/wp.ebut.key;
ssl_session_cache   shared:ssl:10m;
ssl_session_timeout 10m;


root /data/wp.ebut.org/wp081/public;
index index.php;
access_log /data/log/nginx/wp.ebut.org.access.log main;
error_log /data/log/nginx/wp.ebut.org.error.log error;


location / {
  try_files $uri $uri/ /index.php?$query_string;
}


location ~ \.php$ {
  if (!-f $document_root$fastcgi_script_name) {
   return 404;
  }
  root /data/wp.ebut.org/wp081/public;
  fastcgi_pass   127.0.0.1:9000;
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  fastcgi_index  index.php;
  fastcgi_param  SCRIPT_FILENAME  $document_root/$fastcgi_script_name;
  fastcgi_param  PATH_INFO $fastcgi_script_name;
  fastcgi_param  PATH_TRANSLATED $document_root/$fastcgi_path_info;
  include        fastcgi_params;
 }
}

Environment : config login with ui + Vue.JS

[cozy@home.dev822 wp081]$ composer require laravel/ui
Using version ^3.0 for laravel/ui
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
73 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.


[cozy@home.dev822 wp081]$ php artisan ui vue --auth
Vue scaffolding installed successfully.
Please run "npm install && npm run dev" to compile your fresh scaffolding.
Authentication scaffolding generated successfully.


[cozy@home.dev822 wp081]$ php artisan migrate
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table (42.01ms)
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table (37.64ms)
Migrating: 2019_08_19_000000_create_failed_jobs_table
Migrated:  2019_08_19_000000_create_failed_jobs_table (45.86ms)




[cozy@home.dev822 wp081]$ npm install && npm run dev
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: wanted: {"node":"<8.10.0"} (current: {"node":"10.21.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})


added 1088 packages from 501 contributors and audited 1091 packages in 75.69s


43 packages are looking for funding
  run `npm fund` for details


found 0 vulnerabilities




> @ dev /data/wp.ebut.org/wp081
> npm run development




> @ development /data/wp.ebut.org/wp081
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js


98% after emitting SizeLimitsPlugin


DONE  Compiled successfully in 16463ms                                                                                                2:31:05 PM


       Asset     Size   Chunks             Chunk Names
/css/app.css  178 KiB  /js/app  [emitted]  /js/app
  /js/app.js  1.4 MiB  /js/app  [emitted]  /js/app






[cozy@home.dev822 wp081]$ find ./ -name vue* -print
./vendor/laravel/ui/src/Presets/vue-stubs
./node_modules/vue-hot-reload-api
./node_modules/vue-template-es2015-compiler
./node_modules/vue-style-loader
./node_modules/vue-loader
./node_modules/vue-template-compiler
./node_modules/vue
./node_modules/vue/dist/vue.runtime.common.dev.js
./node_modules/vue/dist/vue.js
./node_modules/vue/dist/vue.min.js
./node_modules/vue/dist/vue.esm.browser.js
./node_modules/vue/dist/vue.esm.browser.min.js
./node_modules/vue/dist/vue.runtime.min.js
./node_modules/vue/dist/vue.common.js
./node_modules/vue/dist/vue.esm.js
./node_modules/vue/dist/vue.common.dev.js
./node_modules/vue/dist/vue.runtime.esm.js
./node_modules/vue/dist/vue.runtime.js
./node_modules/vue/dist/vue.runtime.common.prod.js
./node_modules/vue/dist/vue.runtime.common.js
./node_modules/vue/dist/vue.common.prod.js
./node_modules/vue/types/vue.d.ts

Environment : config adminLTE

[cozy@home.dev822 wp081]$ composer require jeroennoten/laravel-adminlte
Using version ^3.5 for jeroennoten/laravel-adminlte
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  - Installing almasaeed2010/adminlte (v3.0.5): Loading from cache
  - Installing jeroennoten/laravel-adminlte (v3.5.0): Loading from cache
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: jeroennoten/laravel-adminlte
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
73 packages you are using are looking for funding.
Use the `composer fund` command to find out more!




[cozy@home.dev822 wp081]$ php artisan adminlte:install
Basic assets installed successfully.
Configuration file installed successfully.
Translation files installed successfully.
The installation is complete.




[cozy@home.dev822 wp081]$ php artisan adminlte:install --only=auth_views


The authentication views already exists. Want to replace the views? (yes/no) [no]:
> yes


Authentication views installed successfully.

Environment : reinstall Vue.js resources

[cozy@home.dev822 wp081]$ php artisan ui vue
Vue scaffolding installed successfully.
Please run "npm install && npm run dev" to compile your fresh scaffolding.
[cozy@home.dev822 wp081]$ find ./ -name vue* -print
./vendor/laravel/ui/src/Presets/vue-stubs
[cozy@home.dev822 wp081]$ npm install && npm run dev
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})


added 1085 packages from 495 contributors and audited 1091 packages in 25.657s


43 packages are looking for funding
  run `npm fund` for details


found 0 vulnerabilities


> @ dev /data/wp.ebut.org/wp081
> npm run development




> @ development /data/wp.ebut.org/wp081
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js


98% after emitting SizeLimitsPlugin


DONE  Compiled successfully in 14109ms                                                              8:07:12 PM


       Asset     Size   Chunks             Chunk Names
/css/app.css  178 KiB  /js/app  [emitted]  /js/app
  /js/app.js  1.4 MiB  /js/app  [emitted]  /js/app

FYI

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です