I tried to run su command with PHP shell_exec function. At first I tried: <?php echo(shell_exec('echo \'password\' | su user -c \'whoami\' 2>&1;')); ?> and I got: su: must be run from ...
I used a nice one-line command to install PHP 5.4 Mac OS X Lion, from php-osx.liip.ch. This is working perfectly in Apache – my local sites are now using PHP 5.4. But when I run php -v from the ...
I would like to be able to run PHP commands, in system-function exec or whatever, but with a different user then www-data. OS: Ubuntu Server 10.10 Web Server: Apache2 I've searched for answers a ...
I want users to be able to upload files to a central file server via my PHP script. I mounted the file server's shared volume using this command: sudo mount -t cifs //192.168.1.8/share local_dir -o ...
This is a basic question - in the movie "The Social Network" there are several scenes when the young Facebook staff is watching the PHP/Apache server logs on in their TERMINAL in real time. I'm ...
I'm trying to run a scheduled task on my shared Linux server using the crontab via Terminal on my Mac. I can login to my ssh OK, and can view directories etc with ease. I try and create/edit my ...