"Apmserv 5.1.2" using graphical _php tutorials

Source: Internet
Author: User
1. Download Apmserv5.1.2.rar and Unzip


2. Open APMServ5.1.2 Main program APMServ.exe


3, Virtual host configuration (can not see clearly click to enlarge)


4, virtual directory configuration (can not see clearly click to enlarge)

  1, Q: How to transfer the old version of "Apmserv 5.0.4 enhanced version" of the Web pages and database data to "Apmserv 5.1.2"?
A: Unzip "Apmserv 5.1.2" to another directory, if the old version of "Apmserv 5.0.4 enhanced Version" is in the boot state, Click the Stop button in the Legacy APMServ.exe first, and then copy all the directory files except the phpMyAdmin directory in the old version of the WWW directory to the 5.1. Version 2 of the Www\htdocs directory, and the old version mysql\ The directory files under the data database directory are all copied to the 5.1.2 version of the Mysql4.0\data directory, confirm that in the 5.1.2 version of the normal access to these pages and databases, delete the old version of the directory.

   2, Q: "80, 443 ports are occupied, Apache2 can not start." "What's going on?"
A: If you have IIS or other HTTP Server software installed and started, you will consume 80 ports (if IIS turns on SSL support and 443 ports), you can change IIS to a port, or change the Apache port in Apmserv.

   3, Q: Why did you start Apmserv, but there is no "Apache2" or "Apache2" stopped in the list of services in Windows?
A: Please do not put apmserv in the path containing Chinese, because Apache launched in service mode does not support the Chinese directory, such as "D:\ Web server \apmserv\" will cause Apache to not start. Similarly, when you add a virtual host or virtual directory, you cannot include Chinese in the path.

   4, Q: I use MySQL5.1 new database and import the original mysql4.0.x data is all garbled, like this "?????????????????????", is a question mark, how to solve?
A: Starting with the MySQL4.1 version, MySQL adds support for multiple languages, multiple character sets, and Apmserv uses the Chinese character set GBK. The old mysql4.0.x, mysql3.x version of the general default character set is Latin1, latin1 encoding for storage, because only a single character set, the non-Chinese encoding of the latin1 encoding to save Chinese data is not garbled.
When the old mysql4.0.x data is imported into a MySQL high-version database that supports multiple character sets such as mysql4.1.x or 5.x, the data saved by non-Chinese encoded latin1 encoding will be displayed as "??????????????". There are a few ways to solve this, you can find the information in Baidu, Google search "MySQL4.1 character set" or "MySQL5 character set". Here is an easy way to open a PHP program that is responsible for connecting to the MySQL database (for example, conn.php), adding a line of mysql_query (' Set character set GBK '); For example:
$conn =mysql_connect ("127.0.0.1", "Root", "" ");
mysql_select_db ("database"); Database is the name
mysql_query (' Set character set GBK ');
Attached: discuz! The official forum for discuz! users "about the conversion or upgrade garbled situation after the description", the MySQL4.1 and later version of the character set issues are described in detail, you can refer to.
   http://www.discuz.net/viewthread.php?tid=201826

   5. Q: Why does a Apache.exe in a process take up more than a few megabytes of memory when the server is running for more than a few days or after a peak of access?
A: Open apache2\conf\httpd.conf with Notepad, find Maxrequestsperchild, change maxrequestsperchild 0 to Maxrequestsperchild 50.
Typically in Windows Task Manager-processes you can see two apache.exe processes, one parent, one child, and the parent process receiving the access request and handing the request to the child process. Maxrequestsperchild This instruction sets the number of requests that a separate subprocess will be able to process. After processing the "Maxrequestsperchild number" request, the child process will be terminated by the parent process, the memory occupied by the child process is freed, and if there is another access request, the parent process will re-generate the child process to process.
If the Maxrequestsperchild default is set to 0 (infinity) or a larger number (for example, more than 10000), you can make each subprocess handle more requests, not because the child process is constantly terminating, and the sub-processes are started to reduce access efficiency, but Maxrequestsperchild is set to 0 o'clock. If you use 200~300m memory, you will not be able to reduce the amount of memory that is consumed when you load it. Servers with large memory can be set to 0 or larger numbers. Servers with smaller memory may wish to be set to 30, 50, 100 to prevent memory overflow.

   6. Q: Why are some PHP programs written in the old version of PHP that cannot pass variables in Apmserv?  
A: The PHP Development Group is based on security considerations, GET, post, session in PHP 4.2.0 and subsequent versions, the automatic global variables are turned off by default, so to get submitted from the previous page of the variable to use $_get[' foo ', $_post[' foo '], $ _session[' foo ' comes in, and the variable can be obtained directly from the previous PHP version. This resulted in some PHP programs written in the old version of PHP, in the new version of PHP can not pass the variable (PHP version Apmserv 5.1.2 is the latest 5.1.2).
Of course you can also modify the auto global variable to ON (open apmserv\php\php.ini-dist with Notepad, modify Register_globals=off to Register_globals=on). Considering security and compatibility, or forcing yourself to follow the new version of PHP, it's better to be familiar with the new wording.
For a description of the automatic global variables in the PHP manual, see:
http://cn.php.net/manual/zh/language.variables.predefined.php
"PHP Manual" to open the automatic global variables can cause security issues see:
http://cn.php.net/manual/zh/security.globals.php

http://www.bkjia.com/PHPjc/316976.html www.bkjia.com true http://www.bkjia.com/PHPjc/316976.html techarticle 1, download Apmserv5.1.2.rar and unzip 2, open APMServ5.1.2 Main program APMServ.exe 3, Virtual host configuration (can not see clearly click to enlarge) 4, virtual directory configuration (can not see clearly click to enlarge ...)

  • 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.