当前位置:网站首页>Laravel9 local installation
Laravel9 local installation
2022-06-30 03:26:00 【yuanzelin8】
Installation requirements :
laravel9 Installation requirements
1.php8.1 above
2.composer
Composer Official download address :https://getcomposer.org/
composer global require laravel/installer
Make sure Composer Of PHP Version is 81 above . Run the above command to install laravel Install Manager .
laravel new Project name
Use this command to install a project named laravel application ( Default should be 9 了 , If not, specify )
If composer install laravel/installer After use laravel new Can't find laravel Command requires that composer Set the package installation path to the environment variable .
adopt Composer Run on the command line create-project Command to install Laravel:
composer create-project laravel/laravel --prefer-dist blog
3. Download the latest... Here laravel:https://github.com/bestmomo/laravel5-example

laravel9 Problems encountered during installation are solved
Question 1 :
Laravel Access error error message :`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire
error message :`Warning: require(/http/www.mywakavLee.cn/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /http/www.mywakavLee.cn/bootstrap/autoload.php on line 17
Fatal error: require(): Failed opening required ‘/http/www.mywakavLee.cn/bootstrap/../vendor/autoload.php’ (include_path=’.:/usr/local/lib/php’) in /http/www.mywakavLee.cn/bootstrap/autoload.php on line 17`
reason : The root directory of the website is missing vendor This is for storage laraver The directory that depends on the package
resolvent : Use composer install Installation ( Without installation , If it has been installed before, use :composer update

Question two :
Laravel :Illuminate\Encryption\MissingAppKeyException No application encryption key has been specifi
Illuminate\Encryption\MissingAppKeyException
No application encryption key has been specified.
http://localhost:8000/
Hide solutions
Your app key is missing
Generate your application encryption key using php artisan key:generate.
Question 3 :
install Laravel Open the blank front page 500 Error resolution

Put it in the directory .env.example Change to .env Just fine
Question 4 :
Illuminate \ Encryption \ MissingAppKeyException PHP 8.1.7

stay .env Medium plus :
APP_KEY=base64:lnL82E7sweHZfWOmmnUOlBWof62+XGo/aBlfGcm2zXc=
边栏推荐
- The MariaDB database was found 12 hours late
- C#【高级篇】 C# 多线程
- Reasons for MySQL master-slave database synchronization failure
- unity input system 使用记录(实例版)
- Local, locallow and roaming in the appdata folder
- 正则全匹配:密码由8位以上数字,大小写字母,特殊字符组成
- Number of students from junior college to Senior College (III)
- Mysql 带上库名称跨库操作可能出现的问题
- The broadcast module code runs normally in autojs4.1.1, but an error is reported in pro7.0 (not resolved)
- Use of foreach in QT
猜你喜欢

MySQL extracts strings from table fields

The broadcast module code runs normally in autojs4.1.1, but an error is reported in pro7.0 (not resolved)

Summary of PHP test sites encountered in CTF questions (I)

自定义MVC的使用

The next change direction of database - cloud native database

实用调试技巧

如何实现远程协同办公,收好这份攻略!

Simple custom MVC optimization

QT中foreach的使用

HOOK Native API
随机推荐
Local, locallow and roaming in the appdata folder
Knowledge points of 2022 system integration project management engineer examination: software quality assurance and quality evaluation
第2章 控制结构和函数(编程题)
1152_ Makefile learning_ Pattern matching rules
Use of foreach in QT
WPF Initialized事件在.cs中绑定不被触发的原因
Sorting method of administrative route code letter + number
HOOK Native API
【实战技能】如何撰写敏捷开发文档
Reasons for MySQL master-slave database synchronization failure
Redis中的SDS理解
Note: load the configuration file as a byte stream and get the resources in it
简单自定义mvc
Global and Chinese market of bulk acoustic wave devices 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of bronze valves 2022-2028: Research Report on technology, participants, trends, market size and share
TiDB 6.0:让 TSO 更高效丨TiDB Book Rush
Hudi record
zabbix 触发器详解
约瑟夫环 数学解法
实用调试技巧