Directive Mod_rewrite & set AllowOverride

Operating System & Version
Centos 7
cPanel & WHM Version
v86.0.18

kiritophelium

Registered
May 7, 2020
2
0
1
firenze
cPanel Access Level
Website Owner
hi,
I'm experimenting with the installation of a vtenext CRM on Centos 7 with WHM & Cpanel
for installation I have to resolve dependencies.
I'm asked that the Mod_rewrite Directive must be enabled in php.ini.
with cpanel i can't understand how to enable mod_rewrite.

on the internet I found indications to insert "rewriteEngine On" in the .httaccess file.
unfortunately too much this did not solve my problem.

I checked the settings in the WHM in "EasyApache 4" and "MultiPHP INI Editor"
I have not found where to enable it.

I attach screenshots.

thanks to everyone who wants to help me.
Kirito
 

Attachments

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
The rewrite module should be compiled with apache you can see this by running the following:

Code:
httpd -M |grep rewrite
In most cases, it can be enabled in the .htaccess file by adding RewriteEngine On

I'm not aware of any other items that need to be modified for this.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
There has to be some reason why the .htaccess file isn't being read. What's noted in the apache error logs? What is the output of the following:


Pending it's in the public_html this will work otherwise just stat /the/path/to/.htaccess
Code:
stat /home/$user/public_html/.htaccess
What's currently *in* the .htaccess?

Code:
cat /path/to/.htaccess
Do you have root access to the server? If so what are the options set for Directory "/" Options at WHM>>Service Configuration>>Apache Configuration>>Global Configuration