WINDOWS + PHP + Omni + MYSQL installation tutorial _ PHP Tutorial

Source: Internet
Author: User
Tags install php on windows
WINDOWS + PHP + Omni + MYSQL installation tutorial. WINDOWS + PHP + Omni + MYSQL installation tutorial PHP can run across platforms, which means you can develop on Windows and then run on UnixLinux. How to install WINDOWS, PHP, Omni, and MYSQL in a simple and fast way

PHP can run across platforms, which means you can develop on Windows and then run on Unix/Linux platforms. How to install and use PHP in WINDOWS is a great choice for beginners, because some of us are still used to WINDOWS and are used to WINDOWS development environments, not proficient in Linux/Unix. If you are using WINDOWS9X, I suggest you try it again.

Let's take a look at the environment required for learning PHP:
1. WINDOWS
2. There must be a server software OmniHTTPD
3. PHP (embedded in OmniHTTPD)

I have seen many installation tutorials on WINDOWS, but it is not very simple. What are the server software options? If you use PWS, you have to change the registry, and the effect is not satisfactory. Use APACHE. how tedious is APACHE configuration. Some netizens say that WIN98 + APACHE + PHP is too bad.

I can tell you the simplest way to install PHP on WINDOWS, that 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 made PHP version 4.0.1pl2 (using des MySQL), and you do not need to download PHP, you only need to install it to run the PHP program. Is OmniHTTPd easy to install? The answer is yes. it is no different from installing other WINDOWS programs. follow the prompts and select "agree". in the next step, a type of button can be installed and run without any setup.

Now you can go to http://www.bKjia. c0m to download the latest version of OmniHTTPd
After the download is complete, start the installation. if you have other server software on your machine and want to use OmniHTTPd
Before installation, you must turn off the server software (such as APACHE and PWS). If not, you can directly install it. other installation steps are no different from those of other WINDOWS software. During the installation process, you will be asked if you want to start OmniHTTPd when the system starts. if you have installed other server software, you 'd better choose not. When you want to use PHP, turn it off first, then start OmniHTTPd, disable OmniHTTPd if you want to use ASP, and start PWS.
After the installation is complete, check whether there is a new icon in the tray of the taskbar. if you don't open Omni, open Omni and you can run the PHP program. that's easy! Open your browser and enter http: // 127.0.0.1 in the address bar. Have you seen it?

OmniHTTPD is installed in c: httpd. A php folder is generated under c: httpd, and PHP is installed there. In c: httpd, an HtDocs is the WEB root directory. You can put the program to be debugged under it, and then enter the php Tutorial "> http: // 127.0.0.1/yourprogram. php in the address bar of the browser.
You can.
Now that the installation is complete, you can debug your PHP program in this environment.


To make OmniHTTPd work better, let's have a brief understanding of OmniHTTPd. Double-click the OmniHTTPd icon in the tray of the taskbar to display its work window, where
Bytes Received ed: The number of Received Bytes,
Bytes sent: The number of sent Bytes,
Total Requests: the number of visits.
The following information is the visitor's information, including the visitor's IP address, name of the Accessed server, time, request content, and the visitor's operating system and browser type.

Click "Admin" and select "Pause Server", "Flush Server", "Shutdown Server", and "Properties ".

Select Web Server Global Settins...
Network: you can set the http port. the default value is 80. you can also set Network timeout and other options. if your program runs out of time, you can set a longer time here;
System: you can set the maximum number of connections and the priority of the server;
Logging: you can set Access/Error/Trace logs;
MIME: you can set MIME types that can be recognized by the server;
Icons: you can set Icons of different file types to differentiate different types of files during directory browsing;
Dynamic IP: It is about Dynamic IP;
Advanced: Advanced Settings. you can set some content about built-in extension script support and SSI.

Return to the Configration interface and select Default virtual Settings...
SERVER
ServerIP: your IP address or 127.0.0.1
ServerName: name of the server. use LOCALHOST
Server Root: Set the Root directory of the Server. you can set it to your favorite directory.
Default Index: it is the Default Index file, that is, there is no need to add multiple, separated.
Admin E-mail: Change it to your EMAIL, so you don't need to change it.
Select the Indexing option below. do not select Allow Directory Browsing to prevent others from accessing the files in the Browsing Directory. If you don't care about this, select it. sometimes it is convenient for debugging.

Select External:
Fill in. php3 Actual: Enter c: httpdphpphp.exe, which indicates that c: httpdphp.exe is used to explain it. if php3 is a file with the extension, repeat this step to set the link for each PHP sub-file you need.
Note that the. php/. cgi/. asp tutorial/. pl is available.

Select the Alias option to set the virtual directory:
Virtual: name of the Virtual directory,
Actual: the Actual location.
Set Virtual:/homepage Actual to d: homepage, and click Add.
Indicates accessing my
Http://www.bKjia. c0m/homepage
Access my d: homepage directory.

Omni httpd also has many good functions, such as supporting windows cgi and isapi extension. For more information, see the offline or online documentation of Omni httpd.
[End]
If something is wrong, please correct it.

PHP can run across platforms, which means that you can develop on Windows and then run on Unix/Linux platforms. How can we make it 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.