7

CPanel SoftException UID is smaller than min_uid

Posted (Updated ) in Linux, PHP

I’ve was playing with EasyApache in a WHM install recently and after the upgrade I came across a strange error:

SoftException in Application.cpp:357: UID of script "/home/mysite/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php

Turns out this error is caused by apache being unable to read files added by root to a users public_html folder. A simple fix for this problem is to

chown -R mysite:mysite /home/mysite/public_html

If you’re still having permissions issues aver doing the above, try chmod:

chmod -R 755 /home/mysite/public_html

Thanks to user ronniev of eukhost forums for his solution here.

  • Thiago Santos

    Great!

  • David Allen

    Many Thanks for this article…

  • Calvin Tennant

    Thanks for the tip! Saved much troubleshooting.

  • Basabdutta Dhar

    Thanks for your valuable tips

  • Manohar Chavan

    Hello,

    I just set set user permission to index.php and it work.

    ——————
    chown q8swuser:q8swuser install.php
    ——————
    :-)

  • victor

    Thanx u saved me alot.

  • PS DBagley

    chmod -R 755 /home/mysite/public_html is not secure.. it gives the files a more elevated permission than they need.

    In reality the directories should be 0755, but files should probably be at 0644 permissions.

    I use the following command (where . is the directory):

    find . -type d -exec chmod 755 {} ; & find . -type f -exec chmod 644 {} ; &

    In reality cPanel already comes with these utilities built in. They can be found in the /scripts/ directory.

    Try:

    /scripts/chownpublichtmls

    OR:

    /scripts/fixeverything