First question is what kind of a server are you trying to run this on? Is it your own machine? shared hosting?
It's probably not that it requires sudo
, but that it requires some permission that your PHP script doesn't have, and sudo
is one way to fix it.
A better way to fix this is to figure out what user your script is running as (possibly nobody
?) and ensure the files that phing
needs to access are owned by the same user. This may be as simple as changing the file ownership through your FTP program.
Also, don't forget to double-check that you actually are in the directory you think you're in.
To get some of this information, try running the following PHP file:
<pre>
<?php
passthru('id -a'); // figure out what user we're executing as
passthru('pwd'); // figure out what directory we're in
passthru('ls -l .'); // look at the permissions set on the current directory
?>
</pre>