Versionsunterschiede von Test Server




← Vorherige Änderung
Nächste Änderung →




8 8
9 %% sudo zypper update %% 9 %% sudo zypper update %%
10 10
11 ===2. Download and Install Apache 2=== 11 ===2.1 Download and Install Apache 2===
12 Download and install Apache2 on openSUSE using the following command. 12 Download and install Apache2 on openSUSE using the following command.
13 %% sudo zypper in apache2 %% 13 %% sudo zypper in apache2 %%
14 14
    15 === 2.2 Start Apache2====
15 By default, Apache will not automatically start after installation. You can start it with: 16 By default, Apache will not automatically start after installation. You can start it with:
16 %% systemctl start apache2.service %% 17 %% systemctl start apache2.service %%
17 18
20 file:apache2_activerunning.png 21 file:apache2_activerunning.png
21 We can see from the screenshot that Apache is running and auto start enabled. 22 We can see from the screenshot that Apache is running and auto start enabled.
22 23
    24 Do you want your webserver to always start at boot time?
    25 %% sudo systemctl enable apache2 %%
    26
    27 ===2.3 Test ===
23 Check Apache version: 28 Check Apache version:
24 29
25 %% sudo httpd -v %% 30 %% sudo httpd -v %%
36 41
37 Then in your browser’s address bar, type the IP address 127.0.0.1 or localhost in the browser address bar. You should see the “It works!” Web page which means Apache Web server is running correctly. 42 Then in your browser’s address bar, type the IP address 127.0.0.1 or localhost in the browser address bar. You should see the “It works!” Web page which means Apache Web server is running correctly.
38 43
    44 %% http://localhost %%
    45
39 file:apache2_works.png 46 file:apache2_works.png
40 47
41 ===Local Testserver Configuration=== 48 ===Local Testserver Configuration===
42 Configuring Apache manually involves editing plain text configuration files as user root. 49 Configuring Apache manually involves editing plain text configuration files as user root.
43 50
44 And enable auto start at boot time with: 51
45 %% sudo systemctl enable apache2 %%    
46 52
47 53
48 https://wackowiki.org/doc/Org/Tools/Hosting/TestServer/SettingUpVirtualHosts 54 https://wackowiki.org/doc/Org/Tools/Hosting/TestServer/SettingUpVirtualHosts