Windows+php+omni+mysql Installation Tutorial _php tutorial

Source: Internet
Author: User
Tags learn php
Installation tutorials for Windows+php+omni+mysql

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

Let's take a look at the environment we 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 that simple, what does the server software choose? With the PWS bar, but also to change the registration form, and the effect is not satisfactory. With Apache, Apache configuration is how cumbersome, some netizens said win98+apache+php is too rotten.

I can tell you one of the simplest PHP installation methods on Windows, which is to select a server software: omnihttpd (Professional Version 2.07). This software can make you feel how easy to install PHP, because it has been built into PHP version 4.0.1pl2 (includes MySQL), you do not have to download PHP, just install it can run PHP program. Is it easy to install omnihttpd? The answer is yes, and the installation of other Windows program is no different, follow the prompts to choose agree, next, a kind of button can complete the installation, and nothing set up can be run.

Now you can go to http://www.bKjia.c0m to download the latest version of OMNIHTTPD
Install after download, 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, and other installation procedures and other Windows under the Software installation is no different. During the installation, you will be asked if you are starting OMNIHTTPD at system startup, and if you have other server software installed, it is best to select No. When you want to use PHP first turn it off, and then start omnihttpd, want to use ASP to close OMNIHTTPD, start PWS.
After the installation is complete, look at the taskbar tray is not a new icon, such as No is not open omni, the Omni Open, you can run the PHP program, it is so simple! Open your browser, in the address bar input http://127.0.0.1 see it?

OMNIHTTPD was installed in 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 below him, and then in the browser's address bar, such as PHP tutorial ">http://127.0.0.1/yourprogram.php
You can do it.
The installation is complete and you are debugging your PHP program in this environment.


To make omnihttpd work better, let's simply understand the following omnihttpd. Double-click the omnihttpd icon in the tray of the taskbar to appear in its work 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 that are visited.
The following information is the visitor's information, including the visitor's IP, the name of the server visited, the time, the requested content and the type of visitor's operating system and browser.

Below with mouse point admin, there is pause server (pause service), Flush Server (refresh service), Shutdown Server (shutdown Service) and properties (attribute), select Properties

Select Web Server Global settins ...
Network: You can set the port of HTTP, the system default 80, you can also set the network timeout and other options, if your program run timeout can be set to a longer time here;
System: Option to set the maximum number of connections and the priority of the server;
Logging: can set access/error/trace log condition;
MIME: You can set the MIME type that the server can recognize;
Icons: You can set the icon of different file types, can distinguish different types of files in the context of directory browsing;
Dynamic IP: It is related to dynamical IP;
Advanced: is a premium setting that allows you to set up some content such as support for built-in extension scripts and SSI.

Back to Configration interface, choose Default Virtual Settings ...
In server
ServerIP: Your IP or 127.0.0.1
ServerName: server name, with localhost
Server root: Is the root of the settings server, you can set to your favorite directory.
Default index: Is the index file, which does not add more, with "," split.
Admin e-mail: Change your email, the other will not move.
Choose the indexing option below, and do not allow directory browsing to be selected to prevent others from accessing files in the browsing directory. If you don't care about this, select it and sometimes it's easy to debug.

Select external:
In the virtual fill. PhP3 Actual: Fill in the C:httpdphpphp.exe, meaning to use the c:httpdphp.exe to explain with. PHP3 for the file extension, repeat this step to set each of the PHP sub-file names you need to link.
Notice there's already. php/.cgi/.asp tutorial/.pl and so on.

Select the alias option to set the virtual directory:
Virtual directory name,
Actual: for the actual position.
In Virtual:/homepage actual set to: D:homepage, click Add.
means to access my
Http://www.bKjia.c0m/homepage
is to access my D:homepage directory.

Omni HTTPd also has many nice features, such as support for Windows Cgi,isapi EXTENSION, and more can be seen offline or online documentation for Omni httpd.
Finish
If there is a wrong place, I implore netizens to correct.

http://www.bkjia.com/PHPjc/632853.html www.bkjia.com true http://www.bkjia.com/PHPjc/632853.html techarticle Windows+php+omni+mysql's installation tutorial PHP can be run across platforms, which means you can develop on WINDOWS and then run on the Unix/linux platform. How to be simple and fast in wi ...

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