post_virtualhost_global.conf does not exist

Operating System & Version
centos

legendsehi

Registered
Aug 30, 2021
2
0
1
ph
cPanel Access Level
Website Owner
HI, I am trying to install xsendfile, but i dont understand this step:
- Appended /etc/apache2/conf.d/includes/post_virtualhost_global.conf with
XSendFilePath /home/[path]/public_html/

Do i need to open it in root like this?
nano /etc/apache2/conf.d/includes/post_virtualhost_global.conf

And add this line?
XSendFilePath /home/[path]/public_html/


btw, i tried to run this, but there is no such file as post_virtualhost_global.conf:

nano /etc/apache2/conf.d/includes/post_virtualhost_global.conf

Thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,028
313
cPanel Access Level
Root Administrator
Hey there! I would expect that file to exist in all cPanel servers without it needing to be created. The includes directory should have the following files:

Code:
# ls -lah /etc/apache2/conf.d/includes/
total 16K
drwxr-xr-x. 2 root root 4.0K Aug 17 16:44 .
drwxr-xr-x. 8 root root 4.0K Aug 19 02:53 ..
-rw-------. 1 root root  226 Mar 11 19:21 account_suspensions.conf
-rw-r-----. 1 root root 1.7K Mar 11 19:21 errordocument.conf
-rw-------. 1 root root    0 Mar 11 19:21 post_virtualhost_1.conf
-rw-------. 1 root root    0 Mar 11 19:21 post_virtualhost_2.conf
-rw-------. 1 root root    0 Mar 11 19:21 post_virtualhost_global.conf
-rw-------. 1 root root    0 Mar 11 19:21 pre_main_1.conf
-rw-------. 1 root root    0 Mar 11 19:21 pre_main_2.conf
-rw-------. 1 root root    0 Mar 11 19:21 pre_main_global.conf
-rw-------. 1 root root    0 Mar 11 19:21 pre_virtualhost_1.conf
-rw-------. 1 root root    0 Mar 11 19:21 pre_virtualhost_2.conf
-rw-------. 1 root root    0 Mar 11 19:21 pre_virtualhost_global.conf
Do you have full root access to the server?