MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

Basic configuration of Apache server and basic configuration of php

Source: Shangpin China | Type: website encyclopedia | Time: December 15, 2015
After installing Apache and PHP, Apache and PHP each provide a text configuration file for users to flexibly configure at runtime.

1. Basic configuration of Apache server
Enter the Apache configuration file directory. For Windows, open the httpd.conf file with Notepad in the C: wwwApache2.2conf directory, and for Linux, open the httpd.conf file in the/usr/local/apache/conf directory (for Linux, open it with vi). The basic configuration options are explained as follows.

 Explanation of basic configuration options
 Explanation of basic configuration options

2. Basic configuration of php
Open PHP with Notepad Website construction The configuration file php.ini (opened with vi for Linux) is located in the PHP installation directory of Windows and/usr/1local/php/lib for Linux.

The configuration options are explained as follows.

 Basic configuration of php

 Basic configuration of php

Note: The above settings may be different from those on the reader's machine.

PHP file upload configuration
The file upload configuration area can be found in the php.ini file. The configuration top selection is explained as follows.

 PHP file upload configuration

PHP session configuration
The Session configuration area can be found in the php.ini file. The configuration options are explained as follows.

 PHP session configuration

Note: The above settings may be different from those on the reader's machine.

Email configuration for PHP
In the php.ini file, you can find the e-mail configuration area. The configuration top selection is explained as follows.

 Email configuration for PHP

PHP security settings
In the php.ini file, this option plays an important role in script security. Here are some recommended configurations.

 PHP security settings

PHP debug settings
At present, there are several PHP debuggers, such as xdbug, apd, etc. The debugger used in this article is Zend Debugger of Zend Company, which can be downloaded from //www.zend.com Download to.

Zend Debugger is provided in the form of extension. According to different systems, download the Windows version or Linux version respectively. Here we explain the installation under the Windows system. The Linux system is different from the Windows system except for the extension files. The installation steps are the same as those of the Windows system.

(1) Unzip the downloaded compressed package "ZendDebugger - 5.2.6-cygwin_nt-i386. tar. gz", copy the "ZendDebugger. dll" file in the "5_2_x_comp" folder to the PHP extended directory, as shown in Figure 2.17.
 Zend Debugger extension

(2) Edit the php. ini file and add the following lines at the end of the file.

 Zend Debugge configuration code
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]