hammy559 Posted January 11, 2008 Share Posted January 11, 2008 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 ??? Quote Link to comment https://forums.phpfreaks.com/topic/85470-php-userdir-and-suexecoh-my/ Share on other sites More sharing options...
trq Posted January 11, 2008 Share Posted January 11, 2008 Of course, see here. Quote Link to comment https://forums.phpfreaks.com/topic/85470-php-userdir-and-suexecoh-my/#findComment-436152 Share on other sites More sharing options...
hammy559 Posted January 11, 2008 Author Share Posted January 11, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/85470-php-userdir-and-suexecoh-my/#findComment-436232 Share on other sites More sharing options...
steviewdr Posted January 11, 2008 Share Posted January 11, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/85470-php-userdir-and-suexecoh-my/#findComment-436397 Share on other sites More sharing options...
hammy559 Posted January 12, 2008 Author Share Posted January 12, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/85470-php-userdir-and-suexecoh-my/#findComment-437382 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.