Module Configuration for PHP

Source: Internet
Author: User
Tags phpinfo

At the moment I am very excited, Apaceh and PHP has finally been installed successfully, but here needs a metaphor, PHP is like a talent, Apache now has the talent to come over, but has not been used,

At this time, the PHP file has not been parsed, printed out is <?php echo phpinfo () > This thing, this is why, did such a thing, we opened a

Company, the recruitment of PHP, has not assigned to PHP work, now Apache needs to PHP request work, when loading the page, PHP to work, now just recruit come in

Now it is displayed intact, because PHP does not know when it should run, light loaded in, in the request PHP page when the PHP module is called, that the module is not called

Write a test page, request this page, found that PHP did not execute this page, Reason: php do not know when to work, call the PHP module,

Jjiejue: Tell the server, when requesting the PHP page to call the PHP module, the problem is solved,

Sell the input AddType in the Conf file, here is the setup let the module run,

Here is the fixed wording, we remember to write this, we configured to restart the server, we succeeded

It's just so magical.

It is not done yet, there is a lot of information in this information sheet, one of which is called php.ini, which is PHP's configuration file, PHP as a module for Apache Shelf AH

In fact, PHP is also a platform, it does not have any functions, PHP and APACEH are the same, but also loaded modules, the module is also a lot of expansion,

Load the PHP configuration file,

PHP has two configuration files, the first is the development of the time to use, the second is run time with, we are to develop, we are now developing PHP,

Development: Programmers use when developing the program, run version: It is finished, put on the server to run

Copy the development version of the file. and renamed to PHP.ini, after the change to put this file in the C disk, this situation is obviously not very suitable, in the future when placed on the server is not necessarily put in

C drive, so we use the second method,

After my operation, I put this file on the C drive.

Summarize

Method One: Copy the php.ini to the C:windows

Method Two: The first way is obviously inappropriate, this method is required to have administrator rights, generally do not use this way; we add a configuration to tell the computer where to go, and change Apacehpeizhi

Tell Apache to load PHP to the specified place. INI file,

At this moment I am very excited, Apaceh and PHP has finally been installed successfully, but here need a metaphor, PHP is like to think of talent, Apache now has the talent to come over, but has not been used,

At this time, the PHP file has not been parsed, printed out is <?php echo phpinfo () > This thing, this is why, did such a thing, we opened a

Company, the recruitment of PHP, has not assigned to PHP work, now Apache needs to PHP request work, when loading the page, PHP to work, now just recruit come in

Now it is displayed intact, because PHP does not know when it should run, light loaded in, in the request PHP page when the PHP module is called, that the module is not called

Write a test page, request this page, found that PHP did not execute this page, Reason: php do not know when to work, call the PHP module,

Jjiejue: Tell the server, when requesting the PHP page to call the PHP module, the problem is solved,

Sell the input AddType in the Conf file, here is the setup let the module run,

Here is the fixed wording, we remember to write this, we configured to restart the server, we succeeded

It's just so magical.

It is not done yet, there is a lot of information in this information sheet, one of which is called php.ini, which is PHP's configuration file, PHP as a module for Apache Shelf AH

In fact, PHP is also a platform, it does not have any functions, PHP and APACEH are the same, but also loaded modules, the module is also a lot of expansion,

Load the PHP configuration file,

PHP has two configuration files, the first is the development of the time to use, the second is run time with, we are to develop, we are now developing PHP,

Development: Programmers use when developing the program, run version: It is finished, put on the server to run

Copy the development version of the file. and renamed to PHP.ini, after the change to put this file in the C disk, this situation is obviously not very suitable, in the future when placed on the server is not necessarily put in

C drive, so we use the second method,

After my operation, I put this file on the C drive.

Summarize

Method One: Copy the php.ini to the C:windows

Method Two: The first way is obviously inappropriate, this method is required to have administrator rights, generally do not use this way; we add a configuration to tell the computer where to go, and change Apacehpeizhi

Tell Apache to load PHP to the specified place. INI file,

The key point of method Two is in the last sentence, Phpindir, use this sentence to select the path, PHP. INI path,

Now I have succeeded.

It seems to be possible, but there's something wrong down there.

The date is wrong: Here is a hint to your time zone is wrong, zaiphpinfo () can see the time zone error

Resolution: The time is about PHP or Apache, the time zone is related to pphp, this is all the things are PHP

Search in PHP configuration file:timezone,

PRC is the People's Republic of China;

It's easier to set it up here.

Module Configuration for PHP

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.