title: Execute python code inside php in /var/www/html directory
body: <p>Error coming when running a python code which is using tensorflow , inside the php code. Error is :-</p>
  
  <pre><code>Traceback (most recent call last): 
  
  File "Loader.py", line 5, in import tensorflow as tf 
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 23, in from tensorflow.python import * 
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 48, in from tensorflow.python import pywrap_tensorflow 
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in _pywrap_tensorflow = swig_import_helper() 
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description) 
  ImportError: /usr/local/lib/python2.7/dist-packages/tensorflow/python/_pywrap_tensorflow.so: invalid ELF header 
  </code></pre>
  
  <p>Few lines of Python code in which trying to execute the python code are:-</p>
  
  <pre><code>$temp =  shell_exec('python Loader.py 2&gt;&amp;1') or die('cannot run Loader.py') ;
          echo $temp;
  </code></pre>