You Are Here: Home » How-To

How To Fix The “UID of script is smaller than min_uid” Error in Apache / Linux?

By Debjit on February 25th, 2015 
Advertisement

When you transfer your files from one server to another it might be quite possible that you also copy the permissions and ownership of the files from the originating server to the destination server. In this case you can possibly run into huge permission issues which can lead your website to not display properly if the files in this case are related you your website's code.

This is when Linux throws the "UID of script is smaller than min_uid" error, it means that the script you are trying to run is owned by root user and you are not root user. In order to fix this issue all you need to do is fix the permissions for the files. Here is how you do it:

chown -R user /home/user/folder

We were facing problems with some of our websites, which we recently migrated from one of our servers and we used the following command to fix it:

chown -R dibs /home/dibs/public_html

If this does not work, then you might also want to change the group of the folder using this command: This was suggested by one of our readers in the comments section below.

chown -R user:user /home/dibs/public_html

Please let us know if this helpsĀ  to solve your problem.

Advertisement







How To Fix The “UID of script is smaller than min_uid” Error in Apache / Linux? was originally published on Digitizor.com on July 6, 2012 - 3:55 am (Indian Standard Time)