Hoping someone can help me out here. Trying to run any command using exec() returns 126 and displays the same error message. I’ve narrowed it down to this pretty minimal test case. SELinux and PHP safe mode are not enabled permissions are fine on /, /bin/, and /bin/ls asterisk is a system user created with this command: adduser -d /var/lib/asterisk
Tag: php
Trying in PHP to mysqldump -v to popen and not getting output
I’m writing a wrapper for mysqldump and want to show the output nicely in a PHP CLI application. I’m attempting to run mysqldump -v using popen so that I can get the verbose output and display progress indicators to the user. However no output is returned (by default it gets logged to the screen via stdErr). I tried adding 2>&1
PHP popen Application cannot open shared object
I’ve created a simple C++ Application with the boost framework. The Application is running correct from the command line. After this I’ve created a PHP file with a popen to this binary. After visiting the website I’ve got the following error message from apache2/error_log System is openSuse Linux. Steps done: Insert lib path to /etc/ld.so.conf and running ldconfig Answer You
PHP: creates file but can’t append with (apparently) correct server permissions (LAMP)
I have seen many questions and answers on this topic but none seem to help my situation. My PHP code is successfully creating a new logfile, but then cannot access that file to append further info, close it, etc. I am migrating an application from local XAMPP onto LAMP: hence problem only showing up now due to Windows/XAMPP giving no
issue in transfer file to remote machine on executing shell script through php
i am executing script file through php as shell_exec(sh script.sh) script.sh is the name of the script file. This script is used to transferring file say ‘abc’ to remote machine. When I execute script file through terminal as ./script.sh it successfully transfer file to remote machine but when execute same script file through php it could not transfer file to
Use php exec to launch a linux command with brace expansion
How can I force the php exec() to interpret the linux brace expansion? I am encountering a strange behavior, and did not find a way to fix it the way I want. I want to execute a linux command containing brace expression to select a batch of files, from php I am using php to generate a “random” number of
Connect to remote MS Access database from Linux Server using PHP
Does anyone know if it’s possible to connect and query an MS Access database from a Linux Server using PHP? If it is possible I’m thinking install ODBC driver on the Linux server, but will it work to connect to Access is the question. I’ve read it’s possible with MSSQL. My knowledge is very limited when it comes to any
flock: -c requires exactly one command argument
We have multiple cronjobs running on our system. The problem is that we run them every hour, and therefore sometimes the cronjob didn’t finish and a new instance has started. Because of that, we wanted to use flock so the script only gets executed once. However, when I have this in my crontab or run it alone I’m getting the
php password check with hash doesn’t work
I write a login page and a checking page in php. On my local machine it work, but on the server it doesn’t (if it matter I’m on Windows and the server is on Linux). Here is the code in the checking page: The strange thing is that when I enter something with letters to the password input the system
MYSQL insert into on duplicate key value
I have two tables X and Y. Both of them have the column ‘name’ in common. Columns of X are id(Auto increment) – primary key name email value. Columns of Y are id(Auto increment) – primary key name sex salary There are some rows in X which are not present in Y. I want to insert those missing rows into