OS: Windows 7 Ultimate Service Pack 1
CPU: Intel (R) Core (TM) i5-4210U CPU @ 1.70GHz 2.40 GHz
RAM: 4.00 GB (3.73 GB available)
System type: 64-bit operating system
step_002: 64-bit Apache server installation package download
: https://blackdot.be/download-archive/
step_003
Extract the httpd-2.2.19-win64.rar file to the apache_x64 folder of the C drive
step_004
C: \ apache_x64 \ conf in the following installation directory
Find the httpd.conf file and open it with UltaEdit or EditPlus
Change Listen 80 to Listen 8080. If IIS is enabled, port 80 cannot be used.
step_005: Then install the apache server with the command
@ 1: Enter the Run window
@ 2: Enter "CMD" and "Enter"
@ 3: Enter cd C: \ apache_x64 \ bin and press "Enter"
@ 4: In the bin directory, enter "httpd.exe -k install" to execute the apache server installation command
The error prompts during the installation process are shown below
Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf ....
Errors reported here must be corrected before the service can be started.
httpd.exe: Syntax error on line 35 of C: /apache_x64/conf/httpd.conf: ServerRoot
must be a valid directory
The error message is Syntax error
Line 35 of the httpd.conf settings file requires ServerRoot to have a valid path
Change the original ServerRoot "/httpd-2.2-x64" in line 35 of the original httpd.conf file
Modify to ServerRoot "C: / apache_x64"
@ 5: In the bin directory, enter "httpd.exe -k start" to start the apache server
The error message that appears during starting the apache server is shown below
Syntax error on line 179 of C: /apache_x64/conf/httpd.conf:
DocumentRoot must be a directory
The error message is Syntax error
Line 179 of the httpd.conf settings file requires DocumentRoot to have a path
Copy the original DocumentRoot "/httpd-2.2-x64/htdocs" from line 179 in the original httpd.conf file
Modify to DocumentRoot "C: / apache_x64 / htdocs"
@ 6: In the bin directory again, enter "httpd.exe -k start" to start the apache server
The desktop pops up as follows, the apache server has been started
Error message as shown
httpd.exe: Could not reliably determine the server ‘s fully qualified domain name
, using 192.168.1.103 for ServerName
Replace the original #ServerName www.example.com:80 in line 172 of the original httpd.conf file
After adding "Enter" Join ServerName test.com:8080
After opening the directory C: \ Windows \ System32 \ drivers \ etc, open the hosts file
Add the following configuration and save
127.0.0.1test.com
:: 1test.com
@ 7: In the bin directory, enter "httpd.exe -k stop" after shutting down the apache server
In the bin directory again, enter "httpd.exe -k start" to start the apache server
step_006: Verify that the apache server is normal through the browser
Open the browser (here chrome browser)
Enter in the address bar: test.com:8080
Forbidden
You do n‘t have permission to access / on this server.
Modify the httpd.conf file
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny, allow
Deny from all
</ Directory> to <Directory />
Options Indexes FollowSymLinks
AllowOverride None
</ Directory>
In the bin directory, enter "httpd.exe -k stop" After shutting down the apache server
In the bin directory again, enter "httpd.exe -k start" to start the apache server
Type in your browser again: test.com:8080 or localhost: 8080
The APACHE 64-bit server is successfully installed and running normally!
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.