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

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -