UID of script quot;/home/...../public_html/index.phpquot; is smaller than 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:脚本“/home/...../public_html/index.php"的UID小于


基础教程推荐
- HTTP 与 FTP 上传 2021-01-01
- Doctrine 2 - 在多对多关系中记录更改 2022-01-01
- 找不到类“AppHttpControllersDB",我也无法使用新模型 2022-01-01
- 如何在 Symfony 和 Doctrine 中实现多对多和一对多? 2022-01-01
- PHP 守护进程/worker 环境 2022-01-01
- 在 CakePHP 2.0 中使用 Html Helper 时未定义的变量 2021-01-01
- phpmyadmin 错误“#1062 - 密钥 1 的重复条目‘1’" 2022-01-01
- 如何在 XAMPP 上启用 mysqli? 2021-01-01
- 在 yii2 中迁移时出现异常“找不到驱动程序" 2022-01-01
- 使用 PDO 转义列名 2021-01-01