[Answered ]-Use php while running mod_wsgi-express with django

1πŸ‘

βœ…

If your Apache installation has PHP installed, if using mod_wsgi-express, simply provide the --with-php5 option.

I don’t track PHP versions and that option was added just to show could be done. If there are newer PHP versions then mod_wsgi-express would need to be updated to know about them. If there are going to be multiple PHP versions, then perhaps needs to be generalised to --with-php with a separate --php-version option or have it auto detect which PHP version is installed.

You are best off jumping on the mod_wsgi mailing list to discuss changes.

1πŸ‘

I believe you need something like this in your virtualhost configuration

#
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>

This will tell apache to run php interpreter for php files.

πŸ‘€user7370947

Leave a comment