Installation tutorials for Windows+php+omni+mysql

Source: Internet
Author: User
Tags install php install php on windows learn php php tutorial

PHP can be run across platforms, which means you can develop on Windows and then run on the Unix/linux platform. How to easily and quickly install the use of PHP in Windows is what beginners aspire to, because some of us are still accustomed to using Windows, the development environment of Windows, not skilled use of linux/unix. If you are using windows9x, I suggest you try it.

Let's take a look at the environment you need to learn PHP:
1. Windows
2. To have a server software omnihttpd
3. To have PHP (OMNIHTTPD built-in)

I've seen a lot of installation tutorials on Windows, and it's not quite easy, what do server software choose? With PWS, you have to change the registration form, and the effect is not satisfactory. With Apache, Apache configuration is how cumbersome, some netizens said win98+apache+php too bad.

I can tell you one of the easiest ways to install PHP on Windows is to select a server software: omnihttpd (Professional Version 2.07). This software can make you feel how easy it is to install PHP, because it has PHP version 4.0.1pl2 (includes MySQL), you do not have to download PHP, as long as the installation of it can run the PHP program. is omnihttpd easy to install? The answer is yes, and install other Windows program is no different, follow the prompts to choose to agree, next, a class of buttons can be installed, and nothing can be set up to run.

Now you can go to http://www.111cn.net to download the latest version of OMNIHTTPD
When the download is over, start installation, if you have other server software on the machine, and want to use OMNIHTTPD
, before installing the server software to turn off (such as Apache, PWS), if not directly installed on it, other installation steps and other Windows under the Software installation is no different. During the installation you will be asked if you are starting OMNIHTTPD when the system is started, if you installed other server software, it is best to choose No. When you want to use PHP to turn it off first, and then start omnihttpd, want to use ASP to close the OMNIHTTPD, start PWS.
After the installation, look at the taskbar tray is not a new icon, such as No is not open omni, omni Open, you can run the PHP program, it is so simple! Open your browser, enter http://127.0.0.1 in the address bar see?

OMNIHTTPD was mounted to the c:httpd. A PHP folder was generated under C:HTTPD, and PHP was installed there. Under C:HTTPD, there is a htdocs that is the root directory of the web. You can put the program you want to debug under his, and then in the browser's address bar, such as PHP tutorial ">http://127.0.0.1/yourprogram.php
It's OK.
This installation is complete and you are debugging your PHP program in this environment.


In order to make omnihttpd work better, let us briefly understand the following omnihttpd. Double-click the omnihttpd icon in the tray of the taskbar to appear in its working window, where
Bytes Received: Is the number of bytes received,
Bytes sent: Is the number of bytes emitted,
Total Requests: Is the number of times accessed.
The following information is the visitor's information, including the caller's IP, the name of the server to which it is accessed, the time, the request content, and the type of visitor's operating system and browser.

Below with mouse point admin, have pause server (pause service), Flush Server (refresh service), Shutdown Server (turn off service) and properties (properties), select Properties

Select Web Server Global settins ...
Network: You can set the HTTP port, the system defaults to 80, you can also set network timeout options, if your program runs overtime can be set for longer time;
System: Option to set the maximum number of connections and server priority;
Logging: can set access/error/trace log condition;
MIME: Can set the MIME type that the server can recognize;
Icons: You can set icons for different file types to distinguish different types of files in the context of directory browsing;
Dynamic IP: It is about dynamically IP;
Advanced: is an advanced setting that allows you to set up some content about built-in extended scripting support and SSI.

Back to the Configration interface, choose Default Virtual Settings ...
In the server
ServerIP: Your IP or 127.0.0.1
ServerName: server name, with localhost
Server root: Is to set the root directory of the server and set it to your favorite directory.
Default index: Is the defaults index file, there is no can add more than, with "," split.
Admin e-mail: Change to your email, others do not have to move.
Select the indexing option below to allow directory browsing to prevent others from accessing files in the Browse directory. If you don't care about this, check it out, sometimes it's easy to debug.

Select external:
Fill in the virtual. PhP3 Actual: Fill in the C:httpdphpphp.exe, the C:httpdphp.exe to explain with the. php3 as the extension file, repeat this step to set each PHP name link you need.
Notice that there is already. php/.cgi/.asp Tutorial/.pl and so on.

Select the alias option to set the virtual directory:
Virtual: For the name of the dummy directory,
Actual: for actual position.
In the Virtual:/homepage actual set to: D:homepage, point Add.
Indicates access to my
Http://www.111cn.net/homepage
is to access my D:homepage directory.

Omni HTTPD also has many good features, such as support for Windows Cgi,isapi EXTENSION, and more access to offline or online documentation for Omni httpd.
Finish
If there is a wrong place, I implore the netizen to correct me.

Related Article

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.