Versionsunterschiede von Test Server




← Vorherige Änderung
Nächste Änderung →




21 file:apache2_activerunning.png 21 file:apache2_activerunning.png
22 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.
23 23
24 And enable auto start at boot time with: 24 Do you want your webserver to always start at boot time?
25 %% sudo systemctl enable apache2 %% 25 %% sudo systemctl enable apache2 %%
26 26
27 ===2.3 Test === 27 ===2.3 Test ===
40 %% echo -e '<html>\n<html>\n\t<body>\n\t\t<h1>It Works!</h1>\n\t</body>\n</html>' > index.html%% 40 %% echo -e '<html>\n<html>\n\t<body>\n\t\t<h1>It Works!</h1>\n\t</body>\n</html>' > index.html%%
41 41
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. 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.
    43
    44 %% http://localhost %%
43 45
44 file:apache2_works.png 46 file:apache2_works.png
45 47