XSERVERのPHPバージョン確認
本記事では、laravel 5.8 をインストールする内容になっています。
そのため、PHPのバージョンが7.1.3以上である必要があります。
現在のPHPのバージョンを確認し、必要に応じてバージョンアップします。
1 2 3 |
[hogehoge@sv7108 lv]$ php -v PHP 7.1.2 (cli) (built: Feb 22 2017 10:08:41) ( NTS ) Copyright (c) 1997-2017 The PHP Group |
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 |
[hogehoge@sv7108 lv]$ find /opt/php-*/bin -type f -name 'php' /opt/php-5.1.6/bin/php /opt/php-5.3.3/bin/php /opt/php-5.4.16/bin/php /opt/php-5.4.40/bin/php /opt/php-5.4.45/bin/php /opt/php-5.5.24/bin/php /opt/php-5.5.38/bin/php /opt/php-5.6.15/bin/php /opt/php-5.6.18/bin/php /opt/php-5.6.22/bin/php /opt/php-5.6.24/bin/php /opt/php-5.6.30/bin/php /opt/php-5.6.36/bin/php /opt/php-5.6.40-webp/bin/php /opt/php-5.6.40/bin/php /opt/php-5.6.8/bin/php /opt/php-5.6/bin/php /opt/php-7.0.0/bin/php /opt/php-7.0.16/bin/php /opt/php-7.0.17/bin/php /opt/php-7.0.18/bin/php /opt/php-7.0.3/bin/php /opt/php-7.0.30/bin/php /opt/php-7.0.33-webp/bin/php /opt/php-7.0.33/bin/php /opt/php-7.0.7/bin/php /opt/php-7.0.9/bin/php /opt/php-7.0/bin/php /opt/php-7.1.18/bin/php /opt/php-7.1.2/bin/php /opt/php-7.1.28/bin/php /opt/php-7.1.3/bin/php /opt/php-7.1.33-webp/bin/php /opt/php-7.1.33/bin/php /opt/php-7.1.4/bin/php /opt/php-7.1/bin/php /opt/php-7.2.1/bin/php /opt/php-7.2.14/bin/php /opt/php-7.2.17/bin/php /opt/php-7.2.20/bin/php /opt/php-7.2.27/bin/php /opt/php-7.2.29/bin/php /opt/php-7.2.6/bin/php /opt/php-7.2/bin/php /opt/php-7.3.14/bin/php /opt/php-7.3.16/bin/php /opt/php-7.3.4/bin/php /opt/php-7.3.8/bin/php /opt/php-7.3/bin/php /opt/php-7.4.3/bin/php /opt/php-7.4.4/bin/php /opt/php-7.4/bin/php |
PHPバージョン変更
PHPのバージョン変更は、シンボリックリンクの張替えで完了します。
XSERVERはとても便利で簡単です。
1 2 3 |
[hogehoge@sv7108 bin]$ cd ~/bin [hogehoge@sv7108 bin]$ unlink bin [hogehoge@sv7108 bin]$ ln -s /opt/php-7.2.6/bin/php |
Laravelのインストール
ここでは、とりあえず、ホームにインストールし、
インストール後に、public_htmlへシンボリックリンクを張るという形で進めます。
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 |
[hogehoge@sv7108 bin]$ cd ~ [hogehoge@sv7108 lv]$ php composer.phar create-project "laravel/laravel=5.8.*" Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is about to be released and the older 1.x releases will self-update directly to it once it is released. To avoid surprises update now to the latest 1.x version which will prompt you before self-updating to 2.x. Installing laravel/laravel (v5.8.35) - Installing laravel/laravel (v5.8.35): Downloading (connecting...)Downloading (100%) Created project in /home/prettytabby/fun-learning.jp/public_html/lv/laravel > @php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is about to be released and the older 1.x releases will self-update directly to it once it is released. To avoid surprises update now to the latest 1.x version which will prompt you before self-updating to 2.x. Updating dependencies (including require-dev) Package operations: 86 installs, 0 updates, 0 removals - Installing kylekatarnls/update-helper (1.2.1): Downloading (connecting...)Downloading (0%) Downloading (90%)Downloading (100%) - Installing symfony/polyfill-ctype (v1.18.1): Loading from cache - Installing phpoption/phpoption (1.7.5): Downloading (connecting...)Downloading (0%) Downloading (85%)Downloading (95%)Downloading (100%) - Installing vlucas/phpdotenv (v3.6.7): Downloading (connecting...)Downloading (0%) Downloading (20%)Downloading (40%)Downloading (60%)Downloading (80%)Downloading (100%) - Installing symfony/css-selector (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (30%)Downloading (35%)Downloading (65%)Downloading (70%)Downloading (100%) - Installing tijsverkoyen/css-to-inline-styles (2.2.3): Downloading (connecting...)Downloading (0%) Downloading (70%)Downloading (100%) - Installing symfony/polyfill-php80 (v1.18.1): Downloading (connecting...)Downloading (0%) Downloading (25%)Downloading (50%)Downloading (90%)Downloading (100%) - Installing symfony/polyfill-php72 (v1.18.1): Downloading (connecting...)Downloading (0%) Downloading (90%)Downloading (100%) - Installing symfony/polyfill-mbstring (v1.18.1): Loading from cache - Installing symfony/var-dumper (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (15%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (50%)Downloading (55%)Downloading (65%)Downloading (75%)Downloading (80%)Downloading (90%)Downloading (100%) - Installing symfony/routing (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (20%)Downloading (30%)Downloading (40%)Downloading (50%)Downloading (60%)Downloading (70%)Downloading (80%)Downloading (90%)Downloading (100%) - Installing symfony/process (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (40%)Downloading (45%)Downloading (80%)Downloading (85%)Downloading (100%) - Installing psr/log (1.1.3): Loading from cache - Installing symfony/polyfill-php73 (v1.18.1): Downloading (connecting...)Downloading (0%) Downloading (65%)Downloading (100%) - Installing symfony/polyfill-intl-normalizer (v1.18.1): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (20%)Downloading (45%)Downloading (55%)Downloading (65%)Downloading (75%)Downloading (100%) - Installing paragonie/random_compat (v9.99.99): Loading from cache - Installing symfony/polyfill-php70 (v1.18.1): Downloading (connecting...)Downloading (0%) Downloading (85%)Downloading (100%) - Installing symfony/polyfill-intl-idn (v1.18.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (60%)Downloading (65%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing webmozart/assert (1.9.1): Loading from cache - Installing phpdocumentor/reflection-common (2.1.0): Loading from cache - Installing phpdocumentor/type-resolver (1.0.1): Loading from cache - Installing phpdocumentor/reflection-docblock (4.3.4): Loading from cache - Installing symfony/mime (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (15%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (50%)Downloading (55%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing symfony/http-foundation (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing symfony/event-dispatcher-contracts (v1.1.9): Downloading (connecting...)Downloading (100%) - Installing psr/container (1.0.0): Downloading (connecting...)Downloading (0%) Downloading (75%)Downloading (85%)Downloading (100%) - Installing symfony/event-dispatcher (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (45%)Downloading (65%)Downloading (100%) - Installing symfony/debug (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (20%)Downloading (30%)Downloading (100%) - Installing symfony/error-handler (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (15%)Downloading (25%)Downloading (35%)Downloading (40%)Downloading (50%)Downloading (65%)Downloading (75%)Downloading (80%)Downloading (90%)Downloading (100%) - Installing symfony/http-client-contracts (v1.1.10): Downloading (connecting...)Downloading (0%) Downloading (35%)Downloading (55%)Downloading (90%)Downloading (100%) - Installing symfony/http-kernel (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing symfony/finder (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (100%) - Installing symfony/service-contracts (v1.1.9): Downloading (connecting...)Downloading (0%) Downloading (65%)Downloading (100%) - Installing symfony/console (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing symfony/polyfill-iconv (v1.18.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing doctrine/lexer (1.0.2): Downloading (connecting...)Downloading (0%) Downloading (65%)Downloading (100%) - Installing egulias/email-validator (2.1.22): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (40%)Downloading (55%)Downloading (70%)Downloading (95%)Downloading (100%) - Installing swiftmailer/swiftmailer (v6.2.3): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing ramsey/uuid (3.9.3): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (15%)Downloading (25%)Downloading (35%)Downloading (40%)Downloading (50%)Downloading (60%)Downloading (75%)Downloading (85%)Downloading (100%) - Installing psr/simple-cache (1.0.1): Loading from cache - Installing opis/closure (3.6.0): Downloading (connecting...)Downloading (0%) Downloading (25%)Downloading (50%)Downloading (75%)Downloading (100%) - Installing symfony/translation-contracts (v1.1.10): Downloading (connecting...)Downloading (0%) Downloading (85%)Downloading (100%) - Installing symfony/translation (v4.4.15): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (100%) - Installing nesbot/carbon (1.39.1): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (15%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (50%)Downloading (55%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing monolog/monolog (1.25.5): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing league/flysystem (1.0.70): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (20%)Downloading (35%)Downloading (50%)Downloading (70%)Downloading (85%)Downloading (100%) - Installing erusev/parsedown (1.7.4): Downloading (connecting...)Downloading (0%) Downloading (35%)Downloading (70%)Downloading (95%)Downloading (100%) - Installing dragonmantank/cron-expression (v2.3.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (100%) - Installing doctrine/inflector (1.3.1): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (100%) - Installing laravel/framework (v5.8.38): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing fideloper/proxy (4.4.0): Downloading (connecting...)Downloading (0%) Downloading (100%) - Installing jakub-onderka/php-console-color (v0.2): Downloading (connecting...)Downloading (0%) Downloading (50%)Downloading (100%) - Installing jakub-onderka/php-console-highlighter (v0.4): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (100%) - Installing nikic/php-parser (v4.10.2): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing dnoegel/php-xdg-base-dir (v0.1.1): Loading from cache - Installing psy/psysh (v0.9.12): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing laravel/tinker (v1.0.10): Downloading (connecting...)Downloading (0%) Downloading (55%)Downloading (100%) - Installing beyondcode/laravel-dump-server (1.3.0): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (100%) - Installing fzaninotto/faker (v1.9.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing hamcrest/hamcrest-php (v2.0.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (55%)Downloading (60%)Downloading (70%)Downloading (75%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing mockery/mockery (1.3.3): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing filp/whoops (2.7.3): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (20%)Downloading (35%)Downloading (45%)Downloading (55%)Downloading (65%)Downloading (75%)Downloading (90%)Downloading (100%) - Installing nunomaduro/collision (v3.0.1): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (30%)Downloading (100%) - Installing sebastian/version (2.0.1): Loading from cache - Installing sebastian/resource-operations (2.0.1): Downloading (connecting...)Downloading (0%) Downloading (25%)Downloading (45%)Downloading (70%)Downloading (100%) - Installing sebastian/recursion-context (3.0.0): Loading from cache - Installing sebastian/object-reflector (1.1.1): Loading from cache - Installing sebastian/object-enumerator (3.0.3): Loading from cache - Installing sebastian/global-state (2.0.0): Loading from cache - Installing sebastian/exporter (3.1.2): Loading from cache - Installing sebastian/environment (4.2.3): Downloading (connecting...)Downloading (0%) Downloading (45%)Downloading (80%)Downloading (100%) - Installing sebastian/diff (3.0.2): Downloading (connecting...)Downloading (0%) Downloading (20%)Downloading (40%)Downloading (55%)Downloading (60%)Downloading (75%)Downloading (80%)Downloading (95%)Downloading (100%) - Installing sebastian/comparator (3.0.2): Downloading (connecting...)Downloading (0%) Downloading (25%)Downloading (50%)Downloading (75%)Downloading (100%) - Installing phpunit/php-timer (2.1.2): Downloading (connecting...)Downloading (0%) Downloading (35%)Downloading (70%)Downloading (95%)Downloading (100%) - Installing phpunit/php-text-template (1.2.1): Loading from cache - Installing phpunit/php-file-iterator (2.0.2): Downloading (connecting...)Downloading (0%) Downloading (35%)Downloading (70%)Downloading (95%)Downloading (100%) - Installing theseer/tokenizer (1.1.3): Loading from cache - Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache - Installing phpunit/php-token-stream (3.1.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (100%) - Installing phpunit/php-code-coverage (6.1.4): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Installing doctrine/instantiator (1.3.1): Loading from cache - Installing phpspec/prophecy (v1.10.3): Loading from cache - Installing phar-io/version (2.0.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (100%) - Installing phar-io/manifest (1.0.3): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (15%)Downloading (25%)Downloading (35%)Downloading (50%)Downloading (60%)Downloading (75%)Downloading (85%)Downloading (100%) - Installing myclabs/deep-copy (1.10.1): Loading from cache - Installing phpunit/phpunit (7.5.20): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) 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/event-dispatcher-contracts suggests installing psr/event-dispatcher symfony/event-dispatcher suggests installing symfony/dependency-injection symfony/http-client-contracts suggests installing symfony/http-client-implementation 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-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator) ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator) ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).) ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid) 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 sentry/sentry (Allow sending log messages to a Sentry 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 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-mongo (Allow sending log messages to a MongoDB server) monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver) 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-pcntl (Required to use all features of the queue worker.) laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver 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 guzzlehttp/guzzle (Required to use the Mailgun and Mandrill mail drivers and the ping methods on schedules (^6.0).) 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-rackspace (Required to use the Flysystem Rackspace driver (^1.0).) laravel/framework suggests installing league/flysystem-sftp (Required to use the Flysystem SFTP driver (^1.0).) laravel/framework suggests installing moontoast/math (Required to use ordered UUIDs (^1.1).) laravel/framework suggests installing nexmo/client (Required to use the Nexmo transport (^1.0).) 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 redis cache and queue drivers (^1.0).) laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (^3.0).) laravel/framework suggests installing symfony/dom-crawler (Required to use most of the crawler integration testing tools (^4.2).) laravel/framework suggests installing symfony/psr-http-message-bridge (Required to use PSR-7 bridging features (^1.1).) laravel/framework suggests installing wildbit/swiftmailer-postmark (Required to use Postmark mail driver (^3.0).) psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :)) psy/psysh suggests installing ext-readline (Enables support for arrow-key history navigation, and showing and manipulating command history.) 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) sebastian/global-state suggests installing ext-uopz (*) phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0) phpunit/phpunit suggests installing phpunit/php-invoker (^2.0) phpunit/phpunit suggests installing ext-xdebug (*) Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead. Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead. Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Writing lock file Generating optimized autoload files Carbon 1 is deprecated, see how to migrate to Carbon 2. https://carbon.nesbot.com/docs/#api-carbon-2 You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it. > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi Discovered Package: beyondcode/laravel-dump-server Discovered Package: fideloper/proxy 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. |
ファイル確認
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[hogehoge@sv7108 lv]$ cd laravel/ [hogehoge@sv7108 laravel]$ ll 合計 216 drwxr-xr-x 6 prettytabby members 108 9月 10 2019 app -rwxr-xr-x 1 prettytabby members 1686 9月 10 2019 artisan drwxr-xr-x 3 prettytabby members 46 9月 10 2019 bootstrap -rw-r--r-- 1 prettytabby members 1550 9月 10 2019 composer.json -rw-r--r-- 1 prettytabby members 183567 10月 15 12:46 composer.lock drwxr-xr-x 2 prettytabby members 247 9月 10 2019 config drwxr-xr-x 5 prettytabby members 92 9月 10 2019 database -rw-r--r-- 1 prettytabby members 1126 9月 10 2019 package.json -rw-r--r-- 1 prettytabby members 1156 9月 10 2019 phpunit.xml drwxr-xr-x 4 prettytabby members 148 9月 10 2019 public -rw-r--r-- 1 prettytabby members 4198 9月 10 2019 readme.md drwxr-xr-x 6 prettytabby members 73 9月 10 2019 resources drwxr-xr-x 2 prettytabby members 75 9月 10 2019 routes -rw-r--r-- 1 prettytabby members 563 9月 10 2019 server.php drwxr-xr-x 5 prettytabby members 62 9月 10 2019 storage drwxr-xr-x 4 prettytabby members 103 9月 10 2019 tests drwxr-xr-x 41 prettytabby members 4096 10月 15 12:46 vendor -rw-r--r-- 1 prettytabby members 538 9月 10 2019 webpack.mix.js |
パーミッション変更
1 2 |
[hogehoge@sv7108 laravel]$ chmod -R 777 storage/ [hogehoge@sv7108 laravel]$ chmod -R 777 storage/bootstrap/cache/ |
シンボリック設定
1 2 |
[hogehoge@sv7108 lv]$ cd ~/public_html [hogehoge@sv7108 lv]$ ln -s ../laravel/public/ app |
動作確認
下記のURLにアクセスし、トップページが表示できれば完了となります。
1 |
https://hogehoge.com/app |
Laravel公式サイト
http://laravel.jp/
公式サイトのドキュメントが非常に充実していますので、こちらのドキュメントを読み進めることで、
Laravelのアプリケーション作成ができると思います。