Joke Collection Website - Cold jokes - How does iis support php and how to use iis
How does iis support php and how to use iis
First, we need tools: 1. IIS: Of course, this is indispensable. Just use your own system. I won't teach you how to pretend here.
2、PHP:PHP-5.2.0-win32-installer。 Medium-scale integrated circuit (abbreviation for medium-scale integration)
3、MYSQL:mysql-5.0.27-win32.zip
4.mysql prefix: mysql. Front-v3.2. 14.3.rar, a tool for graphical management of MySQL database.
Part I: IIS installation
We won't talk about the first one. How to install IIS is everywhere on the Internet. Let's start the second one.
Part 2: PHP installation
1. Program Download:
Suggest going to PHP official website.
Website: 2.php.net/get/php-5.2.0-Win32.zip/from/a/mirror
2. Program installation:
When you can see the php-5.2.0-win32-installer.msi file after decompression, double-click the file to pop up the following dialog box, and then click Next:
At this step, he will ask you to agree to an agreement. If you don't agree, you can't continue the installation. Just agree, anyway, this thing is open source, (it should be) hehe:
In this step, select the installation folder. If you want to change it, click Browse. Here, I suggest not to change. First, the PHP file is not large; Second, because this file is not a file under Windows, I wonder if there will be any useless places in the change. :
Select your WEB service program. IIS/PWS3 is recommended. This option is tested under IIS of XP, that is, under IIS5.5;
Program installation group interface, don't worry, click Next and read the following instructions clearly:
Click the ""symbol in front of the extension shown above, and then drag the scroll bar until it reaches the position shown below. Right-click GD2 and select Installthisfeature (first or second option).
In fact, there is not much difference between the first one and the second one in this place. If there are dependent options, select the first option to install only some default functions, and select the second option to install them completely. Friends who know English should not laugh at me, hehe.
Again, as before, drag it to mysql. If your mysql version is higher, it is recommended to install mysqlli, which is the one under mysql.
If necessary, you can also go to the following places and follow the above two steps to install PHP help documents and PEAR. Then click Next.
Click Install to start the formal installation of PHP.
Installation process, wait
Complete the installation, and then click Finish to end the installation.
At this point, our PHP has been installed. Let's take a break and start the third article, the integration of PHP and IIS.
Part 3: Integration of PHP and IIS
Speaking of it, this should be the most important part of PHP installation. If this step is not successful, everything else will be in vain, hehe.
Open IIS, then right-click the name of the website that you want to support PHP, and select Properties. Of course, if you want all websites to support PHP, you can also right-click "Website" and select Properties.
This is the pop-up website properties dialog box. What we want to choose is the home directory tab.
After selecting the Home Directory tab, click Configure under the tab.
The "Program Configuration" tab should pop up and we should select "Add".
This is a crucial step. This one pops up after clicking Add.
We choose "php-cgi.exe" after the "executable file", and the previous path is your php installation path.
In many previous references, this is a DLL file, and this version is php-cgi.exe.
Fill in ". Php "as an extension, and don't lose points. "
Followed by "ok" to the end. Hmm. How interesting
Finally, let's write a test program "test.php" and open the test. If you see something similar to my picture, congratulations, PHP has been installed successfully!
Test.php content:
[URL=JavaScript:] Copy code [/url]
The fourth part: mysql installation
1. Program Download:
It is recommended to go to mysql official website.
URL:/get/downloads/MySQL-5.0/MySQL-no install-5 . 0 . 27-win32 . zip/from/pick
2. Program installation:
If you can see the setup.exe file after decompression, double-click the file to pop up the following dialog box, and then click Next:
Select the installation mode. If there is no special requirement or you don't know much about it, please choose typical (classic installation) or compilation (compilation and installation) if there is enough disk space. It is recommended (especially for beginners) not to choose custom.
Here I choose the most commonly used classic installation.
After the equipment installation is completed, click Install, and the installer officially starts the installation work.
Installation status, please wait. . .
This is to choose whether to register mysql website. Regardless of him, we choose to skip the registration.
Complete the installation. If there are no special requirements, you can remove this tick and click Finish to end the installation. But from a security point of view, let's check this box and click Finish to do some initial configuration for msyql.
Configure the first interface and click Next.
If there are no special requirements, we can choose the second standard configurator operation (standard configuration).
This picture has more explanations:
1. Install as a windows service: install msyql as a Windows service. Select this option and you will find mysql in the control panel, administrative tools and services. This can improve the running level of mysql in the system. Suggest checking.
2. service name: this is actually useless. Pick any name you see in the service, any one, as long as you are familiar with it.
3. Automatically start MySQL server: automatically start the service. If you select this option, MySQL will run as long as you open Windows, even if you are not logged in.
4. Include the bin directory in the Windows path: If this option is selected, use the command line mode that MySQLanywhere can use directly in CMD. If you are familiar with the command line, this is quite practical. Unfamiliar? It is recommended not to check.
This is the configuration root password.
1. Modify security settings: configure security settings. In fact, it is to configure the password of root.
2. Enable superuser access from remote machine: Allow superuser to log in from remote machine. For security reasons, it is recommended not to check.
3. Create an anonymous account: Create an anonymous account. It is not recommended to check.
The following steps are all installed, and there is nothing to say. . .
Part 5: MySQL front-end installation
1. Program Download:
It is recommended to download from FF download station:
Website: /soft/4932.html
2. Program installation:
I won't talk about this process. Nothing special.
Part 6: Front-end Connection Management
After installing MySQL-Front, open it. You will see the picture below. (Of course, if it is the first time to use it, it should be empty in the "dialogue". )
At this point, we click "New".
This is a dialog box for adding a new conversation.
In the General tab, there is only one "login information" to fill in, but this is actually just a name, which you can use to identify the data. I write "localhost" here.
The following icons have no practical significance. If you like, please change it.
Then click the Connections tab.
There is one more thing to fill in here.
Server: fill in the IP or domain name of the database server.
Port: 3306. The default value is 3306, which will not be changed under normal procedures.
We don't have to worry about the following options. It is basically unnecessary. If you want to know clearly, you can check the information yourself or PM me.
Registration tab.
Fill in the user name and data of the database.
The following "database" option, after you fill in the correct server address and user name password, click the small box at the back to select the database to be managed. This function is especially useful when your users have administrative rights for multiple data, but you don't want to open all the data at once.
I won't repeat the last two tabs. "Auto-start" is to automatically execute some SQL commands after opening; The database browser is a customized MySQL-Front view.
Click OK to enter the login prompt box. Keep walking.
Of course, you can also get this conversation by opening MySQL-Front, selecting an existing connection, and then clicking Open.
Ok, now you can see the database information in MySQL.
Finally, it should be noted that. If you are not familiar with MySQL data
Please do not change or delete anything in the mysql library.
Otherwise, your database may not be available! ! !
/article/546 AE 1856 cbdf 8 1 149 f 28 cf 1 . html
Can't apachephp run?
Yes, you can.
If your application is a network application, there are web software such as Nginx and IIS that can be integrated with php to run php programs.
In another case, the application is only a background program and does not need to run through a web page. At this time, there is no need for such third-party software, and we can run php programs through operating system tasks.
How to set up a server?
A personal computer (windows) can be used as a server.
Preparatory work:
In the local area network, you only need to know your ip in the local area network, and the Internet needs to expose your personal computer to the Internet and have its own public ip.
First of all, as a network server,
Start the computer iis information service and put the generated web page file in the directory of the information service site. Iis only supports asp or ASP.NET, and php needs to install its own server application.
Second, as an ftp server.
You can also use Iis information services or install third-party software. Set users, you can set permissions.
Third, as a software server
Write your own server software, which is more professional.
How to write an application in PHP?
PHP programming needs to rely on web servers, such as Apache, nginx, IIS, etc. PHP can also develop desktop applications, but it rarely does! As for how to write, you can look at the basic tutorial of PHP!
You use Notepad to create a new file ending in. Php, and then write in it: and you can rely on the web server to see the output of helloworld on the web page.
- Related articles
- Collect Agasa Hiroshi's cold jokes. . . -
- Complete works of funny jokes suitable for primary school students
- Humorous jokes are small.
- Uncle was laughed at for singing.
- How to be told that the photo of ID card is Hanfu and others can't see it?
- What does the name Chuxia mean?
- I suspect there is something wrong with me. Why am I always amused by a joke when I talk to people? I can't help it! ! ! ! Do you have any psychological problems?
- What is the explanation of the Millennium genealogy?
- How do you evaluate baby’s acting skills?
- High score of the ultimate family funny lines