This code is getting through to me.
<?php echo '<pre>';
system('tail -f -n 5 /var/log/syslog');
echo '</pre>';
?>
Other commands I can run fine but this one doesn't work for me.
Is it possible with system to open the syslog file and display it?
As @Bryro comments you must give at least read permissions to that file:
open your terminal and put:
chmod 644 /var/log/syslog
then in yourPHP
change your code to:system('tail -n 5 /var/log/syslog');
EDIT
PS: I had not read the last comments. @Bryro post your answer and we'll upvote it and close this one.