Apache Configuration Include Editor - Syntax Error

ShawnL

Member
Mar 3, 2016
9
0
1
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.
 

ShawnL

Member
Mar 3, 2016
9
0
1
US
cPanel Access Level
Root Administrator
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.
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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.