Apache five-in-a program to establish PHP+CGI operating Environment _ server

Source: Internet
Author: User

Apache Five all-in-one Download Http://switch.dl.sourceforge.net/sourceforge/phpdev5/dev5beta3.exe
Also need to install the native Apache four All-in-one http://telia.dl.sourceforge.net/sourceforge/phpdev5/phpdev4_4A.exe
Because the Perl interpreter is not included in the five-in-one, Perl in the Tetraena installation package is borrowed.
It is estimated that the next version will fix this.
Instsrv.exe Download: Http://smallhome.51.net/instsrv.exe
First install the Phpdev4_4a.exe on the local or broiler
The default solution is to C:\, we just use the Perl folder under C:\phpdev, and then install Dev5beta3.exe, which can be loaded into the teaching file directory, in this case c:\winnt\system32\phpdev5
Installation Complete
First copy the Perl folder under C:\phpdev to C:\winnt\system32\phpdev5\Apache.
Then choose Install PHPDEV5 Now
Then enter the C:\winnt\system32\phpdev5\Apache\conf folder, edit the httpd.conf file inside
It is recommended that you copy to this machine with ultraedit modification, do not use Notepad.
280 lines found (relative to UltraEdit)
Port 80
You can change to the port you want.
316 lines
ServerName localhost
Change the localhost to the chicken IP, but I find that it works.
Line No. 324
DocumentRoot "c:/winnt/system32/phpdev5/www/" Default root settings
In 369 lines
Allow from localhost 127.0.0.1
Add one line after
Allow from all
Line No. 588
alias/site/"c:/winnt/system32/phpdev5/www/phpwebsite_en/"
To
alias/site/"c:/winnt/system32/phpdev5/www/"
Because the default/phpwebsite_en/is the place to put the PHP program, to access to add this suffix, so change to the root directory
Same 606 lines below
alias/public/"c:/winnt/system32/phpdev5/www/public/"
Also changed to alias/public/"c:/winnt/system32/phpdev5/www/"
(Note: 598 lines private personal Folders do not change
Another about phpMyAdmin I have not tested, but for security by default is not enabled it
The support for CGI is based on his default settings. But remember our Perl location C:\winnt\system32\phpdev5\Apache\perl\perl.exe
Remember to change the header of all uploaded CGI files to
#!c:\winnt\system32\phpdev5\apache\perl\perl.exe
To run your program, you can delete files from the WWW directory first
Finally, replace the modified httpd.conf file
Restart PHPDEV5
After modifying the httpd.conf only to restart Apache, PHPDEV5 control surface version of this option, such as the figure, the Apache installation as a service, right after the tray icon off.
In addition the MySQL face version also has installed as the service option, but recommends not to use it, anyway I was not successful
You can go under CMD.
\mysql\bin\>mysqld-nt.exe--install, and execute;
Open the Start button under the "program" = "" management tool "=" "service", find the "MySQL" service, start it, or start with net start MySQL
Modify the password.
Format: Mysqladmin-u username-P Old password password new password
1, Example 1: To root add a password ab12. First enter the directory Mysqlbin in DOS, and then type the following command
Mysqladmin-uroot-password AB12
Note: Since Root does not have a password at the beginning, the-p old password can be omitted.

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.