Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizGeneral Tech Bugs & Fixes 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
I've got a server setup with Centos 5.6, Apache 2.2.19 and PHP 5.2.17. PHP is being handled by suPHP.
In the global php.ini
safe_mode = offopen_basedir = noneApache is set to run as
nobodyin the suPHP config.I've got two domains setup in:
/home/user1/public_htmland/home/user2/public_htmlBoth
public_htmldirectories have permissions of 0750 with group asnobodyAll files/directories in each user directory are owned by that user and have the group set to that user as well.
I'm running a script in
/home/user1/public_html/scripts/functions.phpwhich is trying to create a directory in/home/user2/public_html/user_files(which has chmod permissions set to 0757), however I'm getting a permission denied error...I'm assuming this is to do with the fact that PHP is being run as
nobody, but I'm not sure what to change to enable scripts in each user's folder to write into the other user's folder, unless I make the user folder's writable by anybody, which doesn't sound very safe...Does anybody know where I'm going wrong?
EDIT: