Zend server php in css file not working

0

Posted by nick | Posted in Uncategorized | Posted on Jan 14 2010

Tags:

I setup a local test environment using Zend Server at my new job and copied the VirtualHosts from the live server, which is apache on linux, and put them in the httpd-vhosts.conf file that came with Apache 2.2 in Zend Server.  The simple solution to be able to use php inside of the css file is to do the following

AddType application/x-httpd-php .php .css

Unfortunately, that didn’t work.  However, after a few hours I did find a solution.  In the httpd.conf file, find the following line

AddHandler zend-enabler-script .php

And change to -

AddHandler zend-enabler-script .php .css

I restarted apache and it now works.

  • Share/Bookmark

How to restart apache2 on windows bundled with Zend Core

0

Posted by nick | Posted in Development | Posted on Dec 23 2009

Tags:

Hopefully this will save somebody an hour of digging like I did today. If you installed Zend Core and are using the bundled Apache2 that came with it, go to services.msc and you’ll find the apache2 service listed as “ZendCoreApache”. It’ll be at the bottom of the list of two hundred services listed instead of at the top where you’d expect near the A’s.

  • Share/Bookmark