Jump to content

Recommended Posts

Id like to set up Apache in such a way where users on my Linux machine have protected public_html dirs.  The reason for this is to keep others from stealing another's code.  Im not interested in virtual hosts, id like to keep it http://bah.com/~user

 

Is this possible?

 

Thanks in advance

 

???

Link to comment
https://forums.phpfreaks.com/topic/85470-php-userdir-and-suexecoh-my/
Share on other sites

I cannot get suexec to work.  my pubic_html directory/files is set to mode 640 and I keep getting file permission errors:

 

[Thu Jan 10 22:11:29 2008] [error] [client 192.168.2.7] (13)Permission denied: file permissions deny server access: /home/brendan/public_html/index.html

[Thu Jan 10 22:14:41 2008] [error] [client 192.168.2.7] (13)Permission denied: file permissions deny server access: /home/brendan/public_html/index.html

 

Hitting my wits end on this one.  been two days hehe

apt-get install suphp

 

Thats what you are looking for with regards to preventing users from stealing other users code etc.

 

In relation to your suexec problems, make sure that the files are chown'ed by the user and chmod 644.

 

-steve

For some reason I cannot get this to work.  I ve checked all the files and they are owned by the user and have no writable permission for group and others.  There isnt even a suexec log that is stating any failures but there is an entry when Apache starts mentioning that suexec is enabled.  I even have taking this a step further by downloading the Apache source and recompiling and setting the docroot for suexec to /home.

 

I will take a break from all of this to maintain sanity but will keep looking here and there

 

I really appreciate your responses

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.