Below is the command I tried executing, without success:
exec(\'ln -s \' . PLUGIN_DIR . \'/.htaccess \' . ABSPATH . \'/.htaccess\');
When y
this worked for me: Append 2>&1 to the end of your command.
Seen here: php exec() not returning error message in output when executing svn command
Cheers