View Single Post
  #1  
Old 02-04-2013, 07:32 AM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
Default posix_getuid is pointing to httpd instead of user from vhost

Is it normal?
When I run a script like


<?php
if (touch("/tmp/111")) {
echo $filename . ' modification time has been changed to present time';
} else {
echo 'Sorry, could not change modification time of ' . $filename;
}
echo posix_getuid()."\n";
echo posix_geteuid()."\n";

phpinfo();
?>

results are

ls -la /tmp/111
-rw-r--r-- 1 httpd httpd 0 Feb 4 16:28 /tmp/111

modification time has been changed to present time 398 398


php compiled with Server API LiteSpeed V6.1, it is running PHP suEXEC / suEXEC Daemon.
Reply With Quote