问题描述
我刚刚将 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!