Reputation: 13880
I have project in django on my server (wsgi, configured in apache)
I do not have access to config file, i have only django.wsgi file in my public_html folder.
And django works fine, but i wish in one of the public_html subdirectory place php script.
How to do it?
Upvotes: 0
Views: 431
Reputation: 58563
If you haven't got access to config, the someone must have added:
AddHandler wsgi-script .wsgi
to the main Apache config or you added it to your .htaccess file for your Django application to work.
All that is required is the appropriate AddHandler directive for .php extension files and PHP code should be able to be placed in the same directories without interference presuming Apache as a whole has PHP support enabled.
Upvotes: 1
Reputation: 7559
since python will use the wsgi protocol, maybe you could use another protocol to use php, for example cgi ;) (thank you Kevin)
Upvotes: 2