Install php URL to override mod_rewrite

Source: Internet
Author: User

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.