PHP and CSS problems

On a fresh install of Centos 7 (64) and Webmin/Virtualmin…

First I had to manually edit the global apache conf file, adding “SetHandler application/x-httpd-php” for php scripts to be executed on virtual servers. Is it normal, or could I fix it in the virtual server setup or config?

Now so php is working, but CSS files that are in php scripts are not executed at all, on virtual servers. I tried to edit the global Apache config file but it didn’t help, and anyway it looks a strange method!

Any suggestion? Thank you!

Well I fixed the problem by adding

FilesMatch “.css$”
SetHandler application/x-httpd-php
Header set Content-type “text/css”

in a .htaccess file on the virtual server.
But it looks strange, I have an other server with Webmin/Virtualmin, no problem…