Versionsunterschiede von Test Server
1 | ==OpenSuse == | 1 | ==OpenSuse == |
---|---|---|---|
2 | {{toc}} | ||
2 | 3 | ||
3 |
In this tutorial, you will be guided you trough the steps to install the LAMP Stack or - Linux, Apache, MySQL, and PHP with OpenSUSE Leap 42.x |
4 | In this tutorial, you will be guided you trough the steps to install the LAMP Stack or - Linux, Apache, MySQL, and PHP with OpenSUSE Leap 42.x or 15.x or Tumbleweed as the Linux operating system. You will Install apache2 with MariaDB and PHP 8 on your Personal Computer and you will set up a virtual host for your WackoWiki installation. |
4 | 5 | ||
5 | 6 | ===1. Update your System==== | |
6 | ===1.1 Download and Install=== | 7 | Before installing any software, itâs always a good idea to update repository and software packages e.g. with ((https://software.opensuse.org/search?baseproject=ALL&q=zypper zypper)) |
7 | |||
8 | https://www.linuxbabe.com/opensuse/apache-mariadb-php7-lamp-opensuse-leap | ||
9 | |||
10 | |||
11 | In this tutorial, weâre going to look at how to install Apache, MariaDB, PHP8 (LAMP stack) with phpMyAdmin on openSUSE Leap 15.4 / Tumbleweed. | ||
12 | |||
13 | ====Step 1: Update Software==== | ||
14 | Before installing any software, itâs always a good idea to update repository and software packages. | ||
15 | 8 | ||
16 | %% sudo zypper update %% | 9 | %% sudo zypper update %% |
17 | 10 | ||
18 |
=== |
11 | ===2.1 Download and Install Apache 2=== |
19 |
|
12 | Download and install Apache2 on openSUSE using the following command. |
20 |
%% sudo zypper in |
13 | %% sudo zypper in apache2 %% |
21 | 14 | ||
15 | === 2.2 Start Apache2==== | ||
22 | 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: |
23 | %% systemctl start apache2.service %% | 17 | %% systemctl start apache2.service %% |
24 | 18 | ||
… | … | … | … |
27 | file:apache2_activerunning.png | 21 | file:apache2_activerunning.png |
28 | 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. |
29 | 23 | ||
24 | Do you want your webserver to always start at boot time? | ||
25 | %% sudo systemctl enable apache2 %% | ||
26 | |||
27 | ===2.3 Test === | ||
30 | Check Apache version: | 28 | Check Apache version: |
31 | 29 | ||
32 | %% sudo httpd -v %% | 30 | %% sudo httpd -v %% |
… | … | … | … |
43 | 41 | ||
44 | 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. |
45 | 43 | ||
44 | %% http://localhost %% | ||
45 | |||
46 | file:apache2_works.png | 46 | file:apache2_works.png |
47 | 47 | ||
48 | ===Local Testserver Configuration=== | 48 | ===Local Testserver Configuration=== |
49 | 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. |
50 | 50 | ||
51 | And enable auto start at boot time with: | 51 | |
52 | %% sudo systemctl enable apache2 %% | ||
53 | 52 | ||
54 | 53 | ||
55 | https://wackowiki.org/doc/Org/Tools/Hosting/TestServer/SettingUpVirtualHosts | 54 | https://wackowiki.org/doc/Org/Tools/Hosting/TestServer/SettingUpVirtualHosts |