Install GLPI-Windows (2)

Source: Internet
Author: User
Tags glpi microsoft iis

Ii. Functions of some files in the php Directory:
Php.exe php Command Line interpreter can also be used as a CGI interpreter;
Php5apache2. dll PHP module of Apache 2.0;
PHP module of php5isapi. dll Microsoft IIS;
Php5ts. dll PHP and library files required for its extension model;
Libmysql. dll MySQL client connection library file.
Functions of some files in the php \ ext directory:
Php5activescript. dll enables PHP to support ActivePHP client scripts
Php_gd2.dll GD Image Library;
Php_iisfunc.dll IIS management function library;
Php_mysql.dll MySQL function library;
Php_mbstring.dll phpmyadmin supports wide characters;
Php_mssql.dll MSSQL function library.
 
Iii. Configuration
1. Copy php. ini under the C: \ PHP5 directory to the C: \ windows directory.
.
(4) create a phpinfo. php file in the IIS root directory. The content is as follows:
<? Php
Phpinfo ();
?>
Open your browser and enter http: // localhost/phpinfo. php. All the information about PHP supported by the current Server is displayed. The Server API mode is ISAPI.
 
5. Configure Apache to support PHP
Set Apache to run the PHP5 program as a module. Modify the configuration file httpd. conf
(1) Find # LoadModule ssl_module modules/mod_ssl.so and add a line below:
LoadModule php5_module C: \ php5 \ php5apache2. dll # set the path of the PHP5 Module
(2) Find AddType application/x-gzip. gz. tgz and add the following lines below:
AddType application/x-httpd-php. php
AddType application/x-httpd-php. html
AddType application/x-httpd-php. htm
AddType application/x-httpd-php-source. phps
AddType image/x-icon. ico
(. Php,. html,. htm, and so on can be extensions of executable php language, can be increased or decreased according to the actual .)
(3) Save the httpd. conf file and restart the apache server. The PHP environment has been created.
(4) create a phpinfo. php file in the apache root directory. The content is as follows:
<? Php
Phpinfo ();
?>
Open your browser and enter http: // localhost/phpinfo. php. All the information about PHP supported by the current Server is displayed. The Server API mode is Apache 2.0 Handler.
 
There are two problems during installation:
1. php is required to support mysql extension
Mysql extension is not enabled.
Modify PHP. ini,
Find; extension = php_mysql.dll
Remove the semicolon and restart apache.
2. For Time Zone settings, modify php. ini.
Remove; before date. timezone;
Set date. timezone = Asia/Shanghai at the same time
This article is from the "IT Pro" blog

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.