Shell command exceution from php file

i have created a php file that can run python program in shell on excetuting of that php file
i have done similiar in rasbian jessy and ubuntu desktop it works fine
but not working in ubuntumate…if any one help me…

Same insecure php configs on both systems?