ASTRAPI

Well-Known Member
Jul 8, 2008
321
0
66
Hello

Is there a option in easy apache to add the engine_rewrite mod?

I didn't find it.

Thanks
 

chinmay

Well-Known Member
Jul 22, 2008
101
0
66
localhost
You can check if the mod_rewrite is compiled on the server with the command as below
[email protected] [~]# httpd -l | grep mod_rewrite
If it is compiled on the server you will get the output as below
[email protected] [~]# httpd -l | grep mod_rewrite
mod_rewrite.c
If you get the above output mod_rewrite is a built in module. You do not need to enable OR compile it on the server.
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
You can check if the mod_rewrite is compiled on the server with the command as below


If it is compiled on the server you will get the output as below


If you get the above output mod_rewrite is a built in module. You do not need to enable OR compile it on the server.
Thanks for this detailed instructions. It's really helpful!
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
14
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
httpd binary path and httpd symbolic link to apachectl

Code:
# /usr/local/apache/bin/apachectl -M | grep rewrite
What mickbeng posted is correct and should work OK.

[email protected] [/]# httpd -l | grep mod_rewrite
bash: httpd: command not found
Please note the full path to the installed "httpd" binary is as seen below:
Code:
# /usr/local/apache/bin/httpd -l | grep rewrite
Separate and different from the "httpd" binary, there is a symbolic link for the command "httpd" -- if the "httpd" symlink to "apachectl" is missing, as seen via stat then the symlink may need to be recreated; here is an example of stat output when the symlink is setup and is not missing:
Code:
# stat /usr/sbin/httpd | head -n2
  File: `/usr/sbin/httpd' -> `/usr/local/apache/bin/apachectl'
  Size: 31        	Blocks: 0          IO Block: 4096   symbolic link
If it is missing and you see the following error of "cannot stat" then the symlink should be recreated:
Code:
# stat /usr/sbin/httpd | head -n2
stat: cannot stat `/usr/sbin/httpd': No such file or directory
To recreate the "httpd" symlink to "apachectl" the following example command may be used via root SSH access:
Code:
# ln -fnsv /usr/local/apache/bin/apachectl /usr/sbin/httpd