The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache Configuration Include Editor - Syntax Error

Discussion in 'EasyApache' started by ShawnL, Aug 22, 2016.

  1. ShawnL

    ShawnL Member

    Joined:
    Mar 3, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    cPanel Access Level:
    Root Administrator
    I'm trying to set "FcgidOutputBufferSize" per request_uri. Here is what I put into WHM->Apache Configuration->Include Editor->Post Virtual Host Include:

    <IfModule mod_fcgid.c>
    FcgidMaxRequestLen 1073741824
    FcgidBusyTimeout 18000
    FcgidIOTimeout 18000
    <If "%{REQUEST_URI} == '/path/to/script.php'">
    FcgidOutputBufferSize 0
    </If>
    </IfModule>

    This is the error I got after saving:

    Configuration problem detected on line 5 of file /usr/local/apache/conf/includes/post_virtualhost_global.conf: Invalid command ' 2FcgidMaxRequestLen 1073741824 3FcgidBusyTimeout 18000 4FcgidIOTimeout 18000 5 ===> <=== 6 FcgidOutputBufferSize 0 7 8 --- /usr/local/apache/conf/includes/post_virtualhost_global.conf ---

    Any idea what's wrong? Thanks.
     
  2. vacancy

    vacancy Member

    Joined:
    Sep 20, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Do you use easyapache 3 - 4?

    How did you choose the php handler?
     
  3. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Per the error, it looks like you're adding line numbers to your configuration. Note that it says "2FcgidMax and then 3FcgidBusyTimeout"

    Remove those line numbers and you should be good.
     
  4. ShawnL

    ShawnL Member

    Joined:
    Mar 3, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    cPanel Access Level:
    Root Administrator
    Yeah I'm using easyapache 3. PHP Handler = fcgi. The issue is with this:

    <If "%{REQUEST_URI} == '/path/to/script.php'">
    FcgidOutputBufferSize 0
    </If>

    Without it there is no error.
     
  5. ShawnL

    ShawnL Member

    Joined:
    Mar 3, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    cPanel Access Level:
    Root Administrator
    No I don't have line numbers. They are from the error message. The issue is with this:

    <If "%{REQUEST_URI} == '/path/to/script.php'">
    FcgidOutputBufferSize 0
    </If>

    Without it there is no error.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm unable to reproduce that error message on cPanel version 58 when adding those values. Could you let us know which versions of cPanel and EasyApache are installed on this system?

    Thank you.
     
  7. ShawnL

    ShawnL Member

    Joined:
    Mar 3, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    cPanel Access Level:
    Root Administrator
    CLOUDLINUX 5.11 x86_64 WHM 56.0 (build 33)

    Easy Apache v3.34.4

    Thanks!
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  9. ShawnL

    ShawnL Member

    Joined:
    Mar 3, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    cPanel Access Level:
    Root Administrator
    Your support request ID: 7645489
     
Loading...

Share This Page