Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED PHP Handlers

Discussion in 'EasyApache' started by ateks, Dec 7, 2016.

Tags:
  1. ateks

    ateks Registered

    Joined:
    Jun 16, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've previously been processing CSS and SVG files with PHP to add variables. This was all working great when I was using EasyApache3 and PHP 5.6. I had the following code in a .htaccess file and it worked nicely: AddHandler application/x-httpd-php5 .css .svg

    Now I've updated to EasyApache4 and decided to use PHP 7.0. I've added the following code to the same .htaccess file but it doesn't work: AddHandler application/x-httpd-php70 .css .svg

    How can I get my CSS and SVG files to be handled by PHP as before? Thanks
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    834
    Likes Received:
    302
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    You could try the following:
    Code:
    AddHandler application/x-httpd-ea-php70 .css .svg
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael and ateks like this.
  3. ateks

    ateks Registered

    Joined:
    Jun 16, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Well... what can I say. You're a genius! It works like a charm. Thank you very much!
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    834
    Likes Received:
    302
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Your very welcome :-D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm happy to see the issue is now resolved.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice