0

I'm running a Python Elastic Beanstalk environment and have some PHP files I need to serve. How can I do this?

I'm attempting something like

@application.route("/")
def test():
    return flask.redirect(flask.url_for('static', filename='redirect/index.php'))

but get the PHP file as text.


The answer to the related question here isn't quite what I need.

4
  • possible duplicate of Python SimpleHTTPServer with PHP Commented Feb 17, 2015 at 19:57
  • @Tal: I don't see anything relevant there. Commented Feb 17, 2015 at 20:00
  • it explains how to run PHP on Python and why you get the source file instead of serving it Commented Feb 17, 2015 at 20:01
  • @Tal: How can I serve PHP files from a Python EC2 instance? The linked answer doesn't get me any closer. Commented Feb 17, 2015 at 20:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.