Home php教程 php手册 WINDOWS+PHP+Omni+MYSQL的安装教程

WINDOWS+PHP+Omni+MYSQL的安装教程

Jun 13, 2016 am 09:50 AM
Install Tutorial of

WINDOWS+PHP+Omni+MYSQL的安装教程

PHP 可以跨平台运行,这意味着您可以在Windows上开发,然后在Unix/Linux平台上运行。如何能够简单而快速的在WINDOWS下安装使用PHP是初学者所向往的,因为我们当中有一部分人还是习惯使用WINDOWS,习惯WINDOWS的开发环境,而不能够熟练使用Linux/Unix。如果你正用WINDOWS9X,我建议你还是试一下。

先让我们看一下学习PHP所需要的环境:
1。WINDOWS
2。要有一个服务器软件OmniHTTPD
3。要有PHP(OmniHTTPD内置)

我见过许多在WINDOWS上安装教程,感觉还不是挺简单,服务器软件选什么呢?用PWS吧,还得改注册表,而且效果不是令人满意。用APACHE吧,APACHE的配置又是多么繁琐,有的网友说WIN98+APACHE+PHP太烂。

我可以告诉你一个最简单的在WINDOWS上PHP安装方法,那就是选择一个服务器软件:OmniHTTPd (Professional Version 2.07)。这个软件可以让你感到安装PHP是如何的容易,因为它已经内制PHP version 4.0.1pl2 (includes MySQL) ,你根本不用去下载PHP了,只要安装上它就可以运行PHP程序了。 OmniHTTPd安装简单吗?答案是肯定的,和安装其他WINDOWS程序没什么两样,按照提示选择同意,下一步,一 类的按钮就可以完成安装了,什么也不用设置就能运行了。

现在你可以到http://www.bKjia.c0m去下载最新版本的OmniHTTPd
下载完了就开始安装,如果你的机子上有其他的服务器软件,又想使用OmniHTTPd
,安装前先要把服务器软件关掉(如APACHE, PWS),如果没有就直接安装就可以了,其他安装步骤跟其他WINDOWS下的软件安装没什么区别。安装过程中会提问你是不是在系统启动时启动OmniHTTPd,如果你装了其他的服务器软件,最好选否。什么时候想用PHP就先把其关掉,然后启动OmniHTTPd ,想用ASP就关闭OmniHTTPd,启动PWS。
安装完成后,看看任务栏的托盘中是不是有个新图标,如没有就是没有打开Omni,把Omni打开,你就可以运行的PHP程序了,就这么简单!打开你的浏览器,在地址栏 输入 http://127.0.0.1看看到了吗?

OmniHTTPD被安装到了c:httpd。在c:httpd下生成了个PHP文件夹,PHP就被安装到了那儿。在c:httpd下面有个HtDocs是WEB的根目录。可以把要调试的程序放到他的下面,然后在浏览器的地址栏里输如php教程">http://127.0.0.1/yourprogram.php
就可以了。
到此安装已经完成了,你在这个环境下调试你的PHP程序了。


为了让OmniHTTPd工作的更好,让我们简单了解以下OmniHTTPd。双击任务栏的托盘中的OmniHTTPd的图标可以出现其工作窗口,其中
Bytes Received:是收到的字节数,
Bytes sent:是发出的字节数,
Total Requests:是被访问的次数。
下面的信息是访问者的信息,包括来访者IP,访问的服务器的名字,时间,请求内容及访问者的操作系统和浏览器的类型。

下面用鼠标点Admin,有Pause Server(暂停服务),Flush Server(刷新服务),Shutdown Server(关闭服务)和Properties(属性),选择Properties

选择Web Server Global Settins...
Network:可以设置http的端口,系统默认80,还可以设置Network timeout等选项,如果你的程序运行超时可以到这里设置更长的时间;
System:选项里可以设置最大连接数和服务器的优先级;
Logging:可以设置Access/Error/Trace日志情况 ;
MIME:可以设置服务器可以识别的MIME类型;
Icons:可以设置不同文件类型的图标,可以在进行目录浏览的情况下区别不同类型的文件;
Dynamic IP:是有关动态IP的;
Advanced:是高级设置,可以设置关于内置扩展脚本支持和SSI等一些内容。

回到Configration界面,选择Default virtual Settings...
SERVER中
ServerIP:你的IP或127.0.0.1
ServerName:服务器名字,用LOCALHOST
Server Root:是设置服务器的根目录,可以设置到自己喜欢的目录。
Default Index:是默认的Index文件,就是没有可以添多个,用“,”分割。
Admin E-mail:改为你的EMAIL,别的就不用动了。
下面选择Indexing选项,不要Allow Directory Browsing选中,防止别人访问浏览目录里的文件。如果你不在乎这,就选中吧,有时可以方便调试。

选择External:
在Virtual填.php3 Actual:填c:httpdphpphp.exe,表示用c:httpdphp.exe去解释以.php3为扩展名的文件,重复这个步骤来设定每一个你所需的PHP副档名连结。
注意里面已经有了.php/.cgi/.asp教程/.pl等等。

选择Alias选项来设置虚拟目录:
Virtual: 为虚拟目录名,
Actual:为实际位置 。
在Virtual:/homepage Actual设置为:d:homepage,点Add.
表示访问我的
http://www.bKjia.c0m/homepage
就是访问我的d:homepage目录。

Omni httpd还有许多不错的功能,如支持WINDOWS CGI,ISAPI EXTENSION,更多的可以看Omni httpd的脱机或联机文档。
[完]
如有不对的地方,恳请网友指正。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Tutorial on how to use Dewu Tutorial on how to use Dewu Mar 21, 2024 pm 01:40 PM

Dewu APP is currently a very popular brand shopping software, but most users do not know how to use the functions in Dewu APP. The most detailed usage tutorial guide is compiled below. Next is the Dewuduo that the editor brings to users. A summary of function usage tutorials. Interested users can come and take a look! Tutorial on how to use Dewu [2024-03-20] How to use Dewu installment purchase [2024-03-20] How to obtain Dewu coupons [2024-03-20] How to find Dewu manual customer service [2024-03-20] How to check the pickup code of Dewu [2024-03-20] Where to find Dewu purchase [2024-03-20] How to open Dewu VIP [2024-03-20] How to apply for return or exchange of Dewu

How to install Android apps on Linux? How to install Android apps on Linux? Mar 19, 2024 am 11:15 AM

Installing Android applications on Linux has always been a concern for many users. Especially for Linux users who like to use Android applications, it is very important to master how to install Android applications on Linux systems. Although running Android applications directly on Linux is not as simple as on the Android platform, by using emulators or third-party tools, we can still happily enjoy Android applications on Linux. The following will introduce how to install Android applications on Linux systems.

In summer, you must try shooting a rainbow In summer, you must try shooting a rainbow Jul 21, 2024 pm 05:16 PM

After rain in summer, you can often see a beautiful and magical special weather scene - rainbow. This is also a rare scene that can be encountered in photography, and it is very photogenic. There are several conditions for a rainbow to appear: first, there are enough water droplets in the air, and second, the sun shines at a low angle. Therefore, it is easiest to see a rainbow in the afternoon after the rain has cleared up. However, the formation of a rainbow is greatly affected by weather, light and other conditions, so it generally only lasts for a short period of time, and the best viewing and shooting time is even shorter. So when you encounter a rainbow, how can you properly record it and photograph it with quality? 1. Look for rainbows. In addition to the conditions mentioned above, rainbows usually appear in the direction of sunlight, that is, if the sun shines from west to east, rainbows are more likely to appear in the east.

How to install Podman on Ubuntu 24.04 How to install Podman on Ubuntu 24.04 Mar 22, 2024 am 11:26 AM

If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu24. To update the system, we first need to update the system and open the Terminal shell of Ubuntu24. During both installation and upgrade processes, we need to use the command line. a simple

How to Install and Run the Ubuntu Notes App on Ubuntu 24.04 How to Install and Run the Ubuntu Notes App on Ubuntu 24.04 Mar 22, 2024 pm 04:40 PM

While studying in high school, some students take very clear and accurate notes, taking more notes than others in the same class. For some, note-taking is a hobby, while for others, it is a necessity when they easily forget small information about anything important. Microsoft's NTFS application is particularly useful for students who wish to save important notes beyond regular lectures. In this article, we will describe the installation of Ubuntu applications on Ubuntu24. Updating the Ubuntu System Before installing the Ubuntu installer, on Ubuntu24 we need to ensure that the newly configured system has been updated. We can use the most famous "a" in Ubuntu system

Detailed steps to install Go language on Win7 computer Detailed steps to install Go language on Win7 computer Mar 27, 2024 pm 02:00 PM

Detailed steps to install Go language on Win7 computer Go (also known as Golang) is an open source programming language developed by Google. It is simple, efficient and has excellent concurrency performance. It is suitable for the development of cloud services, network applications and back-end systems. . Installing the Go language on a Win7 computer allows you to quickly get started with the language and start writing Go programs. The following will introduce in detail the steps to install the Go language on a Win7 computer, and attach specific code examples. Step 1: Download the Go language installation package and visit the Go official website

What software is photoshopcs5? -photoshopcs5 usage tutorial What software is photoshopcs5? -photoshopcs5 usage tutorial Mar 19, 2024 am 09:04 AM

PhotoshopCS is the abbreviation of Photoshop Creative Suite. It is a software produced by Adobe and is widely used in graphic design and image processing. As a novice learning PS, let me explain to you today what software photoshopcs5 is and how to use photoshopcs5. 1. What software is photoshop cs5? Adobe Photoshop CS5 Extended is ideal for professionals in film, video and multimedia fields, graphic and web designers who use 3D and animation, and professionals in engineering and scientific fields. Render a 3D image and merge it into a 2D composite image. Edit videos easily

Tutorial on how to turn off the payment sound on WeChat Tutorial on how to turn off the payment sound on WeChat Mar 26, 2024 am 08:30 AM

1. First open WeChat. 2. Click [+] in the upper right corner. 3. Click the QR code to collect payment. 4. Click the three small dots in the upper right corner. 5. Click to close the voice reminder for payment arrival.

See all articles