在数字海洋服务器手册部署上更改MAX_EXECUTION_TIME

发布于 2025-02-12 20:53:53 字数 427 浏览 1 评论 0原文

我将应用程序部署到了数字海洋服务器,但是最大执行时间出现了错误吗? 我的问题是如何在不创建液滴的情况下在数字海洋中编辑php.ini最大执行时间,而这是手动部署?

我尝试了其他解决方案,例如将user.ini添加到根文件夹中,并将其设置为user.ini文件中的0。我尝试的另一个解决方案是通过键入此命令在数字海洋控制台中找到php.ini。

php -i | GREP php.ini

,它为我提供了输出

配置文件(php.ini)path => /app/.heroku/php/etc/php加载配置文件=> /app/.heroku/php/etc/php/php.ini

,当我尝试访问php.ini时,拒绝了许可。

我遇到了将近3天的问题,任何帮助或建议都将高度赞赏。

I deployed my app to digital ocean server but there are error in max execution time out?
My question is how to edit the php.ini max execution time out in digital ocean without droplet created and it is a manual deployment?

I tried different solution like adding user.ini to the root folder and set it to 0 inside the user.ini file. Another solution i tried is locating the php.ini in digital ocean console by typing this command.

php -i | grep php.ini

and it gives me the output

Configuration File (php.ini) Path => /app/.heroku/php/etc/php Loaded configuration File => /app/.heroku/php/etc/php/php.ini

And when i tried to access the php.ini it says Permission Denied.

Im stucked with almost 3 days of this problem any help or suggestion would highly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

锦欢 2025-02-19 20:53:53

您可以尝试使用ini_set将其从应用程序更改。这里 link to doc

You can try to change it from the app using ini_set. Here link to doc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文