脚本“/home/...../public_html/index.php"的UID小于 min_uid

UID of script quot;/home/...../public_html/index.phpquot; is smaller than min_uid(脚本“/home/...../public_html/index.php的UID小于 min_uid)
本文介绍了脚本“/home/...../public_html/index.php"的UID小于 min_uid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我刚刚将 magento 从本地移动到服务器,但出现以下错误,我只是想知道是否有人可以帮我解决这个问题,

I just moved magento from local to server and Im getting the following error, I was just wondering if someone could help me solve this,

脚本/home/.../public_html/index.php"的UID小于min_uid

UID of script "/home/.../public_html/index.php" is smaller than min_uid

我所做的是进行数据库转储并将其传输到服务器,

what I did was to make a database dump and transfer it to server,

创建所有 magento 文件的备份并传输并扩展到服务器,

create a backup of the all the magento files and transfer and expand to server,

更改数据库中的 core_config 表.

change the core_config table in the database.

提前致谢.

推荐答案

在我看来,这像是一个 suPHP 问题.

That looks like an suPHP issue to me.

将脚本的用户组更改为运行网络服务器进程的用户.因此,例如,如果您正在使用用户 www-data 运行 Apache,请更改为:

Change the user and group of your script to the user running your webserver process. So if you're running an Apache with user www-data for example, change to:

chown www-data:www-data /home/.../public_html/index.php

或者通过以下方式一次性更改所有文件:

Or change all your files at once by:

chown -R www-data:www-data /home/.../public_html/

如果您在更改用户和组后仍然遇到此问题,那么您的 suPHP 可能使用默认的 min_uid = 100,但使用了 www-data 的 UID代码>低于这个 100.

If you're still running into this issue after changing user and group, then your suPHP is probably working with the default min_uid = 100, but the UID of www-data is below this 100.

要解决此问题,您可以更改 suPHP 配置中的 min_uid 以匹配 www-data 的 UID:

To fix this you can change the min_uid in suPHP's config to match the UID of www-data:

vi /etc/suphp/suphp.conf

min_uid = <UID of www-data>

这篇关于脚本“/home/...../public_html/index.php"的UID小于 min_uid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

In PHP how can you clear a WSDL cache?(在 PHP 中如何清除 WSDL 缓存?)
failed to open stream: HTTP wrapper does not support writeable connections(无法打开流:HTTP 包装器不支持可写连接)
Stop caching for PHP 5.5.3 in MAMP(在 MAMP 中停止缓存 PHP 5.5.3)
Caching HTTP responses when they are dynamically created by PHP(缓存由 PHP 动态创建的 HTTP 响应)
Memcached vs APC which one should I choose?(Memcached 与 APC 我应该选择哪一个?)
What is causing quot;Unable to allocate memory for poolquot; in PHP?(是什么导致“无法为池分配内存?在 PHP 中?)