PHP Configuration notes for the whole thing

Source: Internet
Author: User

1.php Hypertext Preprocessor: Hypertext "HTML" Preprocessor  2.php:b/s "Bowser/server" PHP can also be used as a script and client "but not much"  3. Server: A computer that provides Web services software can become a Web server. "There are other services" index.html is the server in the configuration of the default index page "server profile needs attention" port occupancy issues? What is the difference between a "netstat" static website and a dynamic website? "Data changes: whether the data is being changed." web2.0 "  for Nginx or Apache, they do is to manage the file structure" request path resolution and file management on the server "" for the server software mechanism to understand "" It is this mechanism is the problem key " 4. PHP if installed separately, PHP as a module of Apache extension (1) "LoadModule to Apache configuration file" (2) and then specify the PHP file to the PHP module for processing: AddType application/ x-httpd-php.php "" or using AddHandle to write to the configuration file: The problem is that the file name with '. PHP ' is considered to be a PHP program executed by the PHP module "" OR: (official recommendation) SetHandle application/ X-httpd-php "" To complete the PHP file through the PHP module execution "" Also need to load the PHP configuration file work: Because PHP as an Apache module, so also need to be configured in httpd.conf (phpinidoc file loading) "" Complete integration of PHP modules with the above three configurations "need to read and write the installation in the PHP manual" What happens in Nginx " " in addition, as needed to PHP's needs, open the PHP extension. Configuration in php.ini, you also need to turn on the server to restart the "  5.mysql installation directory and data storage directory is required to install" This is the place to reinstall MySQL often error: MySQL organization data Place "" Configuration is required after installation: The purpose of the configuration database, the number of ports and connections of the database, and the strict mode (review of SQL statements), the database Encoding "" On the company machine to install MySQL once, and test the data " " Make sure that PHP is connected to MySQL: Just open the PHP module on MySQL. Install phpMyAdmin project in PHP default directory to implement PHP management for MySQL "" MysThe most common error in the QL installation is the reinstallation after uninstallation. The main data storage directory is not deleted. "MySQL remote access is a B/s structure, you need to install the client software, and the PHP extension (MSSQL is also) to configure the normal connection between the"   "Database connection and TCP connection issues. Concurrency problem "In fact, the entire WAMP installation process is this logic" is not difficult to   6. The configuration of a domain-based virtual host "one machine with multiple domain names: Apache configures the virtual host sever. Configure the rewrite rule with multiple domain names under virtual host   steps to configure the work environment locally: a full set of configuration work: The hosts configuration domain name and IP correspondence (the actual network is implemented by the DNS data center). First local parsing (hard solution), did not go to the external network server to the domain name and IP Resolution "" and then in Apache Config file for the domain name Virtual host processing, the root directory of the domain name to set. There are also rewrite rules "" and then you can achieve direct access "   buy train tickets using the hosts hard solution IP node" Leveraging overseas Nodes "  7. Access rights issues on other disks" compared to the Web site root directory, Because our common configuration is to create a new project under the root directory, which is equivalent to a subdirectory of the root directory "Creating a new Project" in Vhosts Configuration "Yes?" The display problem is "forbidden situation, no permissions issue" in httpd.conf with permissions set in Directory " options FollowSymLinks (refers to symbolic links?). Linux)// allowoverride none//is the Distributed file enabled?  order deny allow//restrictions on permissions. The order in which the Deny and allow commands are executed "deny after Allow"  deny from all//can also deny from 129 .... "Implement restrictions on IP access" but can be configured in httpd.conf (or in a vhosts file) by a separate path "can be set to a new location (can be configured in any location)" "This scenario is equivalent to resetting permissions on the configuration Location" " The default index page name is changed within the newly created disk, causing no default index to exist and forbidden will appear. This is because of a configuration problem with the index page and the index list: "" The index page list also requires a permission for the Indexes followsymlinks "" index page and index list mechanism: Set the index page in the configuration file (you canAdd multiple index pages), if there is no index page The index list is displayed "This is also required in the configuration, easy to develop" (the default is definitely not turned on, for security) "  enforcement rules for permissions need attention" This is related to the server mechanism "  8. Distributed configuration File" A fixed configuration for a directory. The htaccess file is configured with the ' rewrite ' scenario: We have no easy access to the machine, we only have space or to manage it uniformly, but we don't have to modify it on the whole machine.   We can only use the distributed configuration file when we make rewrite rule configuration in Space allowoverride "allow distributed profiles after modifications are made here"   Permissions restrictions work on directory in. htaccess   This scenario is not applied in a standalone machine, but it exists in space. And it does not require a reboot to restart. "But inefficient"   9.php's operating cycle (1) Apache calls the PHP module (2) to initialize the PHP module "read php.ini and load PHP extensions" (3) to process PHP code "read PHP code, lexical analysis, syntax analysis, Generate opcode code (the Zend engine recognizes and executes) "(4) the PHP module returns processing results to Apache (5) Freeing up resources  php code embedded in HTML, even though the PHP code is annotated by HTML, but is still executed" The reason for the return file is that the PHP code is embedded in the HTML code, and PHP is not considered a comment after the code is checked, but the code is definitely executed so it will return this result. What is the principle of GUI components such as "   src property" iframe? "src attribute value is equivalent to making a URL request, getting the result on the corresponding address" is consistent with normal browser interaction "

The PHP configuration is a set of notes for the whole thing

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.