Posted April 29, 201410 yr I have a p3.php file which if I execute from root user it creates a text file but if I execute from another user it doesn't create any text file. eg: I placed the p3.php in /var/www/html/p3.php and if I execute from "example.com/p3.php" it creates file without any issue. but if I place in /john/public_html/tmp/p3.php and execute from "example.com/~john/tmp/p3.php" it doesn't create any file. I gave all permissions to parent directory tmp and also executed the below commmand. sudo chown apache /home/john/public_html/tmp/ I found apache is the user in httpd.conf file. May I know what more I can do to create file in john account instead of root. Many Thanks. Continue reading...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.