Title: Python/Linux program launch from WP
Last modified: September 18, 2019

---

# Python/Linux program launch from WP

 *  [jf99](https://wordpress.org/support/users/jf99/)
 * (@jf99)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/python-linux-program-launch-from-wp/)
 * Hello! New to WordPress: Can I launch a Python program under Linux from a WordPress
   page? I tried a plugin (php code snippet) with php script to no avail. Help appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/python-linux-program-launch-from-wp/#post-11944831)
 * Where is the program located? Does that location have Python installed?
 *  Thread Starter [jf99](https://wordpress.org/support/users/jf99/)
 * (@jf99)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/python-linux-program-launch-from-wp/#post-11945693)
 * Hi Joy, both Python and WordPress are installed on one system: Raspberry Pi 4
   running Debian/Apache2/SQL. I would like to trigger a Python application from
   a WordPress page. Is it possible? (I tried PHP scripts via plugins but that didn’t
   work). Thanks, John
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/python-linux-program-launch-from-wp/#post-11945901)
 * Is your server set up to do Python as CGI? You can link to your Python script.
   
   But if you want to run Python and use its output in the page being generated 
   from PHP, you’ll need to capture the output (unless the Python returns its output
   in a parameter or something).
 *  Thread Starter [jf99](https://wordpress.org/support/users/jf99/)
 * (@jf99)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/python-linux-program-launch-from-wp/#post-11948212)
 * To be sure, I updated apache2.conf (no httpd.comf on Debian) and .htaccess for
   CGI. Still not working. My script is very simple as I just want to launch (and
   forget) an independent python program from a wordpress page without passing parameters/
   output – all on the same server: <?php exec(‘python3 /home/pi/webapp/app4.py’);?
   > I use an html block on the wordpress page to write the script. Any idea why
   it’s not working?
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/python-linux-program-launch-from-wp/#post-11949489)
 * Well, is it actually in the content saved in the database? Is it saved as code
   or entities? (It should be stripped out or encoded.)
    Do you have a plugin that
   allows you to execute PHP within content? Is there an environment variable with
   the path to `python3`? Is the script marked executable?
 *  [zackynaeem](https://wordpress.org/support/users/zackynaeem/)
 * (@zackynaeem)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/python-linux-program-launch-from-wp/#post-12131079)
 * Python is a programming language. It is a dynamically typed language. It is used
   in a number of places. If you want to learn more about python programming language
   click on the following link:
    [python programming](https://onajah.com/)
    -  This reply was modified 6 years, 6 months ago by [zackynaeem](https://wordpress.org/support/users/zackynaeem/).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Python/Linux program launch from WP’ is closed to new replies.

## Tags

 * [linux](https://wordpress.org/support/topic-tag/linux/)
 * [python](https://wordpress.org/support/topic-tag/python/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 1 participant
 * Last reply from: [zackynaeem](https://wordpress.org/support/users/zackynaeem/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/python-linux-program-launch-from-wp/#post-12131079)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
