2

I have a website running on mono (on Debian stretch). I would like to have some subfolders which would be handled by php5 module (webmail, stats and PhpMyAdmin for example).

Is there a simple way to do that with Apache configuration or should I look into phalanger or some other solution (proxy)?

Spikolynn
  • 245
  • 1
  • 2
  • 11

1 Answers1

2

All you need to do is configure the php5 handler as you would normally for your webserver. That could be as easy as

a2enmod php5

but I can't confirm that for Debian as I only have Ubuntu to hand.

user9517
  • 115,471
  • 20
  • 215
  • 297
  • Thanks, I added a new tag with content SetHandler application/x-httpd-php and it is working. – Spikolynn Jan 05 '16 at 22:50
  • Actually my first solution was not good enough since css files were being sent as text/html which caused chrome to not evaluate them correctly - error "Resource interpreted as Stylesheet but transferred with MIME type text/html" . I solved this by using SetHandler None AddHandler application/x-httpd-php .php – Spikolynn Jan 06 '16 at 22:33