x-httpd-php5s <&mdash; s!

layevaife

New Member
I'm trying to replicate a web-site on a test-server. However, on the test-server, \[code\].php\[/code\] files don't get interpreted. I found that the cause is a \[code\].htaccess\[/code\] file in the document root. Its contents:\[code\]# Use PHP5 Single php.ini as defaultAddHandler application/x-httpd-php5s .phpRewriteEngine On#RewriteRule ^$ index.php [QSA]RewriteRule ^(.*)$ /web/$1\[/code\]How do I configure Apache2/PHP5 to support the handler \[code\]application/x-httpd-php5s\[/code\]? Is there any software-package which makes this handler available?Update: It may be a handler specific to Bluehost.com. Am currently investigating this...Update 2: To avoid having to change the \[code\].htaccess\[/code\] file, which would introduce inconsistencies, I added a handler "application/x-httpd-php5s" to Apache:\[code\]AddHandler application/x-httpd-php5s .phpAction application/x-httpd-php5s /cgi-bin/php5\[/code\]However, that handler will not behave as on the production server, where it causes the PHP interpreter to use a \[code\]php.ini\[/code\] in the document root and use it for all subdirectories. A somewhat ugly workaround is, for example, to symlink that \[code\]php.ini\[/code\] to the global \[code\]php.ini\[/code\] on the test-server.
 
Back
Top