exec command not working in php but works in terminal

Solutions on MaxInterview for exec command not working in php but works in terminal by the best coders in the world

showing results for - "exec command not working in php but works in terminal"
Syrine
24 Oct 2019
1
2Things that i tried were : 
31. Try executing the simple command fist and see if the out is comming.
4  example : system('ls -l > output.txt') // This will output the file in public 
5    										//folder
62. After that i tried giving the permission 777 to the files and folder 
7    that require and access and create a file.
8    example : chmod -R 777 /var/www/html/PATH_TO_FOLDER/public
9      
103. Search your php.ini with this commands: php --ini
11  For Me: Loaded Configuration File: /etc/php/7.2/cli/php.ini
12	In your php.ini file, set variables_order = "EGPCS".
13