Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

linux

php

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,

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.

like image 850
akano1 Avatar asked Mar 14 '12 22:03

akano1


3 Answers

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>
like image 150
Jürgen Thelen Avatar answered Nov 06 '22 21:11

Jürgen Thelen


If your script is owned by root, you should change the ownership back to yourself:

chown -R user /home/user/public_html

This will change the owner of all of the files contained in /home/user/public_html and all subdirectories to user.

like image 21
Martin Avatar answered Nov 06 '22 19:11

Martin


I had same problem, and fixed it with logged in Ftp and uploaded files with cpanel account of this site. Not root or admin account. You must create or edit your files with this account.

like image 6
agenc Avatar answered Nov 06 '22 19:11

agenc