环境宝塔、PHP版本8.0.2、laravel9
问题1:PHP Fatal error: Uncaught Error: Call to undefined function Composer\XdebugHandler\putenv()
办法:把PHP版本disable_functions这个中的putenv去掉,这个意思就是putenv被PHP对应的版本禁用了,要放开!
问题2: [Symfony\Component\Process\Exception\RuntimeException]
The Process class relies on proc_open, which is not available on your PHP installation.
办法:把PHP版本disable_functions这个中的proc_open去掉,这个意思就是proc_open被PHP对应的版本禁用了,要放开!
问题3:访问报错=>The stream or file "/www/wwwroot/yadmin/admin/storage/logs/" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log
因为权限组的问题,当定时任务执行时,日志文件还会变成root用户组的问题。
在config/配置文件中daily中添加'permission'=>0666,
在.env文件中添加LOG_CHANNEL = daily
或者直接将根目录下的storage从root修改为www权限