gpt4 book ai didi

PHP version is getting default in laravel when I replace the files with previous one(当我用以前的文件替换文件时,PHP版本在laravel中变为默认版本)

转载 作者:bug小助手 更新时间:2023-10-22 14:29:35 29 4
gpt4 key购买 nike



I am updating the system, by extracting the files and folders of my project which includes vendor, composer.js, composer.lock file and after that I am getting this 7.4 version shown.

我正在更新系统,通过提取我的项目的文件和文件夹,其中包括vendor、composer.js、compose.rock文件,之后我将显示这个7.4版本。


But I've set the PHP version 8.2

但是我已经设置了PHP版本8.2


I've tried to change my .htaccess to


Options -MultiViews

我已尝试将.hta访问权限更改为选项-多视图


RewriteEngine On

# Use PHP 8.0.2
<IfModule mod_php8.c>
AddHandler application/x-httpd-php8 .php
</IfModule>

RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]

RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
RewriteRule ^(.*)$ public/$1

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ server.php


更多回答
优秀答案推荐

If you're using Ubuntu, consider running these commands:

如果您使用的是Ubuntu,请考虑运行以下命令:


a2enmod enables the specific module & a2dismod used to disable a specific module.

a2enmod启用用于禁用特定模块的特定模块a2dismod。


php -v
sudo update-alternatives --config php
sudo a2enmod php7.4
sudo a2dismod php8.2
sudo systemctl restart apache2

更多回答

But I don't want to use the CLI or exec() function, I want to create a program dynamic that can be updated by extracting the zip file of the app. But when I do this, it is getting the default PHP version of the domain. I have installed it on a subdomain.

但我不想使用CLI或exec()函数,我想创建一个可以通过提取应用程序的zip文件来更新的程序动态。但当我这样做的时候,它得到的是域的默认PHP版本。我已将其安装在子域上。

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com