Versionsunterschiede von Test Server
1 | ==OpenSuse== | 1 | ==OpenSuse == |
---|---|---|---|
2 | {{toc}} | ||
2 | 3 | ||
3 | ===Installing=== | 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 | In this tutorial, weâre going to look at how to install Apache, MariaDB, PHP7 (LAMP stack) with phpMyAdmin on openSUSE Leap 15.1. | ||
5 | https://www.linuxbabe.com/opensuse/apache-mariadb-php7-lamp-opensuse-leap | ||
6 | 5 | ||
7 | 6 | ===1. Update your System==== | |
8 | 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. | 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)) |
9 | |||
10 | ====Step 1: Update Software==== | ||
11 | Before installing any software, itâs always a good idea to update repository and software packages. | ||
12 | 8 | ||
13 | %% sudo zypper update %% | 9 | %% sudo zypper update %% |
14 | 10 | ||
15 |
=== |
11 | ===2.1 Download and Install Apache 2=== |
16 |
|
12 | Download and install Apache2 on openSUSE using the following command. |
17 |
%% sudo zypper in |
13 | %% sudo zypper in apache2 %% |
18 | 14 | ||
15 | === 2.2 Start Apache2==== | ||
19 | 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: |
20 |
%% s |
17 | %% systemctl start apache2.service %% |
21 | 18 | ||
22 | Check its status: | 19 | Check its status: |
23 |
%% s |
20 | %% sudo systemctl status apache2 %% |
24 | file:apache2_activerunning.png | 21 | file:apache2_activerunning.png |
25 | 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. |
26 | 23 | ||
24 | Do you want your webserver to always start at boot time? | ||
25 | %% sudo systemctl enable apache2 %% | ||
26 | |||
27 | ===2.3 Test === | ||
27 | Check Apache version: | 28 | Check Apache version: |
28 | 29 | ||
29 | %% sudo httpd -v %% | 30 | %% sudo httpd -v %% |
… | … | … | … |
31 | %% Server version: Apache/2.4.57 (Linux/SUSE) | 32 | %% Server version: Apache/2.4.57 (Linux/SUSE) |
32 | Server built: 2023-04-07 13:20:25.000000000 +0000 %% | 33 | Server built: 2023-04-07 13:20:25.000000000 +0000 %% |
33 | 34 | ||
34 |
Now c |
35 | Now change into DocumentRoot, |
35 | 36 | ||
36 |
%% |
37 | %% cd /srv/www/htdocs/%% |
37 | 38 | ||
38 | Save and close the file. Then in your browserâs address bar, type the IP address of openSUSE Leap 15.1. You should see the âIt works!â Web page which means Apache Web server is running correctly. | 39 | create index.html file and put the following text into the file. |
40 | %% echo -e '<html>\n<html>\n\t<body>\n\t\t<h1>It Works!</h1>\n\t</body>\n</html>' > index.html%% | ||
39 | 41 | ||
40 | If you are installing LAMP on your local openSUSE Leap 15.1 machine, just type 127.0.0.1 or localhost in the browser address bar. | 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 %% | ||
45 | |||
46 | file:apache2_works.png | ||
47 | |||
48 | ===Local Testserver Configuration=== | ||
49 | Configuring Apache manually involves editing plain text configuration files as user root. | ||
41 | 50 | ||
42 | 51 | ||
43 |
|
||
44 |
|
||
45 |
|
||
46 |
|
||
47 |
|
||
48 | 52 | ||
49 | 53 | ||
50 | https://wackowiki.org/doc/Org/Tools/Hosting/TestServer/SettingUpVirtualHosts | 54 | https://wackowiki.org/doc/Org/Tools/Hosting/TestServer/SettingUpVirtualHosts |
… | … | … | … |
61 | https://en.opensuse.org/SDB:LAMP_setup | 65 | https://en.opensuse.org/SDB:LAMP_setup |
62 | 66 | ||
63 | 67 | ||
68 | ---- | ||
69 | 1.3.Step 3: Start | ||
70 | 1.4.Step 4: Test | ||
71 | 1.5.A matter of security (A MUST READ!) | ||
72 | 1.6.Advanced start and stop parameters | ||
73 | 1.7.What is where? | ||
74 | 1.8.Setting SQL_MODE | ||
75 | 1.9.Enable GD and Intl extension on Windows | ||
76 | 1.10.Stopping XAMPP | ||
77 | 1.11.Uninstall | ||
78 | 1.12.Enable or Disable Mode Rewrite | ||
79 | 1.13.Setting Up Virtual Hosts | ||
80 | 1.14.Create a symbolic link to htdocs | ||
81 | 1.15.Create a shortcut link to manager-linux-x64.run | ||
64 | 82 | ||
65 |
|