How does apache modify the running php version?

Source: Internet
Author: User
Tags apache php
I don't know much about apache + php. I have upgraded PHP to 5.3, but my apache php is still 5.2. I don't know how to modify it now. Both php and apache are compiled and installed. In my apache configuration file, LoadModule is configured as follows: LoadModulephp5_modu... I don't know much about apache + php. I have upgraded PHP to 5.3, but my apache php is still 5.2. I don't know how to modify it now. Both php and apache are compiled and installed.
In my apache configuration file, LoadModule is configured as follows:
LoadModule php5_module modules/libphp5.so

Reply content:

I don't know much about apache + php. I have upgraded PHP to 5.3, but my apache php is still 5.2. I don't know how to modify it now. Both php and apache are compiled and installed.
In my apache configuration file, LoadModule is configured as follows:
LoadModule php5_module modules/libphp5.so

Back up libphp5.so under the modules of Apache to libphp5.2.so.
Assume that your Apache compilation is installed in/png/httpd/2.2.25.
PHP can call the apxs generation module/png/httpd/2.2.25/2.2.25/modules/libphp5.so by adding the parameter -- with-apxs2 =/png/httpd/bin/apxs when executing the configure script. Note: when compiling PHP, you must specify apxs to compile the Apache module libphp5.so.

If you are a newbie, find your apache installation directory and find conf/httpd. conf under the installation directory.
This is the configuration file of apahche. Open the configuration file and find the LoadModule module.
Add LoadModule php5_module "D:/CuminSer/php/php5apache2_2.dll" in double quotation marks as your actual PHP load apache path, and you can change your PHP version path to apache DLL in 5.3.

The INI file also needs to change to your 5.3 path.

Modify and save the changes, and then restart the apache service.

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.