I have add this line in using visudo command nobody ALL=NOPASSWD: /bin/mkdir ##/etc/sudoers Now trying to execute this php script: $output = shell_exec('mkdir /home/aaaa'); echo "<pre>$output</pre>"; But the directory is not created
make sure that the command shell_exec() is enabled by your host. Most host now disable that function. check your php configuration file to see if its disabled. You can also try