0

I'm struggling to get a directory to work with user:group.

After creating the directory via WHM I've logged in via SSH and set:

chgrp -R developers mysitedirectory

Which results in a 500 internal server error.

I've also added the Cpanel user for this website to the developers group using usermod:

usermod -a -G developers Cpanel_user

Any help to get this directory working with read & write permissions for everyone in the group would be greatly appreciated.

Edit

The directory is in /home and is generated when adding a new account to WHM / Cpanel

The directory contains website files, the site works fine when set to user:user but throws 500 error when using user:developers

User is also a part of developers

EDIT 2

Error log shows:

Premature end of script headers: index.php

SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (502) of file “/home/xxxxxxxx/public_html/index.php

folders are set to chmod 755 and files to chmod 644

5
  • 1
    Where is this directory? What's it's relationship to your site? A subdirectory? Does it contain webpages? Who else needs to read it? What server are you using? What operating system are you using? The 500 error probably means that the directory also needs to be accessed by the apache (or whichever server you are using) user as well and that user is not a member of developers. Commented Feb 25, 2014 at 10:19
  • 1
    the web server error log will give you information about the what it was trying to do when it generated the 500 error. in addition to the info @terdon mentioned. Commented Feb 25, 2014 at 10:32
  • Many thanks for taking the time to respond. Which log file should i be looking in? /etc/httpd/logs/error_log ? Commented Feb 25, 2014 at 11:34
  • @Danny that is usually the one Commented Feb 25, 2014 at 11:37
  • Edited above to show error log entries. Commented Feb 25, 2014 at 13:08

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.