php - how to give proper permission for pcntl_exec? -


i trying fork php script , execute php script using pcntl_exec command, getting following error:

pcntl_exec(): error has occured: (errno 13) permission denied

i trying following code after normal forking in function:

    $pathtofile="/var/www/html";     $outputfile =array("mytestfile.php");     if ($pid) // parent     {           $pid_arr[$i] = $pid;     }     else // child     {             pcntl_exec($cmd,$outputfile);            return "error occurred in child";     } 

all other pcntl functions working properly, tried chmod , chown commands on directory well, still pcntl_exec not working. please tell me doing wrong?

thanks in advance!!

try option:

chmod 755 /var/www/html 

this should grant permission needed!


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -