How to Port php to IIS the original php based on apache (Port 8080), and has added data to mysql, now you need to move php to IIS (port 80 ), if you want to continue calling the data of the original mysql instance, please advise. thank you. In fact, you are configuring PHPIIS & nbsp; install IIS and configure PHP. if you download the installed version, how can you port php to IIS?
Php is based on apache (Port 8080) and has added data to mysql.
Now I want to move php to IIS (port 80) and continue to call the data of the original mysql.
Thank you for your advice.
------ Solution --------------------
In fact, it is configuring PHP IIS
Configure PHP after installing IIS
If you download the installed php version, you can choose to use IIS during installation. after installation, IIS is automatically configured. If you download the zip version, follow these steps:
1. unzip the PHP-5.2.0 zip (the latest version) to D: \ php (you can choose a directory, this example to illustrate ).
2. copy php. ini-dist to the C: \ Windows directory and change it to php. ini. copy php5ts. dll and libmysql. dll to C: \ Windows \ system32.
3. Use Notepad to open php. ini, find "extension_dir", and then put extension_dir = ". /"change to extension_dir =" D: \ php \ ext "Note: Use \
4. in Notepad, find "; extension = php_mysql.dll" and "; extension = php_gd2.dll", and then remove the preceding ";" to change extension = php_mysql.dll to extension = php_mysql.dll.
Remove the following content.
; Extension = php_mbstring.dll
; Extension = php_gd2.dll
; Extension = php_dbase.dll
; Extension = php_ldap.dll
5. find; session. save_path = "/tmp" and remove ';'. set the directory where you saved the session.
For example, session. save_path = "C: \ Windows \ Temp ";
6. find register_globals and change Off to On.
7. find allow_url_include and change Off to On.
8. save php. ini
9. Next, set in IIS, open the Web service extension, and add the PHP extension. the extension is PHP, and the required file is d: \ php \ php5isapi. dll, open the default website-> Properties dialog box, switch to the "main directory" tab, and click "configure" to open the "application configuration dialog box ", click "add" to open the "add/edit application extension ing" dialog box. In the "executable file" input box, point to d: \ php \ php5isapi. dll, enter ". php, and select the check boxes "script engine" and "check whether the file exists" to confirm all the way, select the document, and add the default content as index. php, confirm and restart IIS, and then exit IIS.
Now, the PHP environment is successfully configured.
Create a file named test. php in the WEB root directory (such as my D: \ website). the content of the file is as follows:
Open http: // localhost/test. php in a browser
If you can see the php configuration output information, OK
------ Solution --------------------
Echo phpinfo ();
Check whether your php configuration supports mysql
------ Solution --------------------
Dizzy, php can be used in many web servers, including IIS
The php directory contains a file to describe how to install it.
------ Solution --------------------
If the environment is configured in IIS, copy the file directly!
------ Solution --------------------
Mysql is not required at all. as long as you run normally under apache, there is basically no problem.
Unless libmysql. dll and php_mysql.dll are in the apache Directory, copy them to system32.
------ Solution --------------------
Discussion
Mysql is not required at all. as long as you run normally under apache, there is basically no problem.
Unless libmysql. dll and php_mysql.dll are in the apache Directory, copy them to system32.
------ Solution --------------------
In Windows, apache can also open multiple ports.
Modify httpd. conf.
Change port 80 of iis to another
Options Indexes FollowSymLinks Includes
Allow from all
Order allow, deny
AllowOverride None
------ Solution --------------------
By the way, help me solve this problem. thank you)
Http://topic.csdn.net/u/20081015/11/b8a41991-407d-43b8-8fb9-7ddddcb8888a.html
------ Solution --------------------
The data in your database will not change, and the program does not need to be modified. I just need to configure the server for IIS to be configured with Chen php. As for the specific configuration, there are a lot of online resources, and I have mentioned it for my brother, which is relatively simple!
------ Solution --------------------
Help
------ Solution --------------------
I also used IIS and apache to configure two php runtime environments, and the database is public.
No problem with the landlord ..
------ Solution --------------------
You just need to modify the configuration file related to the mysql link in your php file under IIS ..
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.