Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
586 views
in Technique[技术] by (71.8m points)

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

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,

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,

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

change the core_config table in the database.

Thanks in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

That looks like an suPHP issue to me.

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/

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.

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>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...