¡@

Home 

php Programming Glossary: sudo

How to run PHP exec() as root?

http://stackoverflow.com/questions/1598231/how-to-run-php-exec-as-root

open to all sorts of malicious hackery. Have a look at the sudo documentation. You should be able to set up all the commands.. You should be able to set up all the commands you need as sudo able scripts. It is much better to write specific scripts with..

How to call shell script from php that requires SUDO?

http://stackoverflow.com/questions/3166123/how-to-call-shell-script-from-php-that-requires-sudo

for the password. Is there a way to pass the password for sudo with the sudo call How can I do this php bash sudo shellexecute.. Is there a way to pass the password for sudo with the sudo call How can I do this php bash sudo shellexecute share improve.. for sudo with the sudo call How can I do this php bash sudo shellexecute share improve this question Edit the sudoers..

Warning: mysql_connect(): [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in

http://stackoverflow.com/questions/4219970/warning-mysql-connect-2002-no-such-file-or-directory-trying-to-connect-vi

tmp mysql.sock but no var mysql mysql.sock then... cd var sudo mkdir mysql sudo chmod 755 mysql cd mysql ln s tmp mysql.sock.. no var mysql mysql.sock then... cd var sudo mkdir mysql sudo chmod 755 mysql cd mysql ln s tmp mysql.sock mysql.sock If you.. directory and link so just prefix the commands above with sudo if necessary. Hope this helps. It has sorted this exact issue..

Running command-line application from PHP as specific user

http://stackoverflow.com/questions/6913403/running-command-line-application-from-php-as-specific-user

phones Solution Thanks to Carpetsmoker and Tarek I used sudo as the answer but there was a couple of problems. To overcome.. rhythmbox client . This bash script was executed using sudo in PHP as described in the answer below. Unfortunately rhythmbox.. exec share improve this question One solution is using sudo 8 exec 'sudo u myuser ls ' You will obviously need to setup..

“[notice] child pid XXXX exit signal Segmentation fault (11)” in apache error.log [closed]

http://stackoverflow.com/questions/7745578/notice-child-pid-xxxx-exit-signal-segmentation-fault-11-in-apache-error-lo

in this case PID 690 columns are UID PID PPID ... sudo gdb gdb attach 690 Attaching to process 690. Reading symbols..

move_uploaded_file gives “failed to open stream: Permission denied ” error after all configurations i did

http://stackoverflow.com/questions/8103860/move-uploaded-file-gives-failed-to-open-stream-permission-denied-error-after

become nobody or whatever the owner you found in step 1. sudo chown nobody var www html mysite images sudo chown nobody var.. in step 1. sudo chown nobody var www html mysite images sudo chown nobody var www html mysite tmp_file_upload Chmod images.. this in place . Mentioned in @Dmitry Teplyakov answer. sudo chmod R 0755 var www html mysite images sudo chmod R 0755 var..

how to enable sqlite3 for php?

http://stackoverflow.com/questions/948899/how-to-enable-sqlite3-for-php

database php sqlite3 share improve this question sudo apt get install php5 cli php5 dev make sudo apt get install.. question sudo apt get install php5 cli php5 dev make sudo apt get install libsqlite3 0 libsqlite3 dev sudo apt get install.. dev make sudo apt get install libsqlite3 0 libsqlite3 dev sudo apt get install php5 sqlite3 sudo apt get remove php5 sqlite3..