[Root @ 66 bin] # pwd
/Usr/local/Apache/bin
[Root @ 66 bin] # Find/-name mod_rewrite.c
/Usr/local/httpd-2.2.9/modules/mappers/mod_rewrite.c
[Root @ 66 bin] #./apxs-I-a-c/usr/local/httpd-2.2.9/modules/mappers/mod_rewrite.c
/Usr/local/Apache/build/libtool -- silent -- mode = compile gcc-prefer-pic-dlinux = 2-d_reentrant-
....
See any operating system documentation about shared libraries
More information, such as the LD (1) and LD. So (8) manual pages.
----------------------------------------------------------------------
Chmod 755/usr/local/Apache/modules/mod_rewrite.so
[Activating module 'rewrite' in/usr/local/Apache/CONF/httpd. conf]
[Root @ 66 bin] #./apachectl restart
If there are no errors, A mod_rewrite.so file will be compiled in the Apache/modules directory.
It is automatically loaded in httpd. conf. If it is not automatically loaded, manually modify the httpd. conf file.
VI/usr/local/Apache/CONF/httpd. conf
Loadmodule rewrite_module modules/mod_rewrite.so