Are you sure you're mark ?
<?php var_dump(get_current_user()); // will probably display www-data
If, as I guess you are, you're executing this script with a web-server, keep in mind the web server is probably run by another user than you (which is a security best practice), even if the startup script is run by root.