简体   繁体   English

如何将 php 版本设置为 2 个不同的 laravel 项目?

[英]How to setup a php version to 2 different laravel Project?

Hello I have 2 Laravel Projects one is installed inside the xamp/htdocs directory and the other is installed in the wamp/www directory.您好,我有 2 个 Laravel 项目,一个安装在xamp/htdocs目录中,另一个安装在wamp/www目录中。 the php version on xamp project is <8.0 and the other projects runs on an older version 7.2 xamp 项目上的 php 版本是 <8.0,其他项目运行在旧版本 7.2 上

How do I set xamp to run on a newer version of php and wamp on an older version of php?如何将 xamp 设置为在较新版本的 php 上运行并在较旧版本的 php 上运行 wamp?

Thank you in Advance先感谢您

I have tried to move the xamp project to wamp/www and set the php version to a newer version我试图将 xamp 项目移动到 wamp/www 并将 php 版本设置为更新版本php版本设置为更新版本 but when I type in the terminal inside the project php -v但是当我在项目 php -v 中输入终端时PHP版本

i recommend you the software called laragon, it comes with a wonderfull project managment for laravel and you can easily swith php versions我向您推荐名为 laragon 的软件,它带有一个用于 laravel 的出色项目管理,您可以轻松切换 php 版本

One option is to use laravel's homestead: https://laravel.com/docs/9.x/homestead一种选择是使用 laravel 的家园: https://laravel.com/docs/9.x/homestead

You can set up multiple projects with different php versions可以设置多个不同版本的php项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM