Versionsunterschiede von Test Server




← Vorherige Änderung
Nächste Änderung →




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 ====Step 2: Install Apache Web Server==== 11 ===2.1 Download and Install Apache 2===
16 Install Apache on openSUSE using the following command. 12 Download and install Apache2 on openSUSE using the following command.
    13 %% sudo zypper in apache2 %%
17 14
18 %% sudo zypper install apache2 %%    
19 By default, Apache will not automatically start after installation. You can start it with: 15 By default, Apache will not automatically start after installation. You can start it with:
    16 %% systemctl start apache2.service %%
20 17
21 %% sudo systemctl start apache2 %% 18 Check its status:
22 And enable auto start at boot time with: 19 %% sudo systemctl status apache2 %%
    20 file:apache2_activerunning.png
    21 We can see from the screenshot that Apache is running and auto start enabled.
23 22
24 %% sudo systemctl enable apache2 %% 23 ===2.2 Check and Start Apache2===
25 Check its status: 24 Check Apache version:
26 25
27 %% systemctl status apache2 %% 26 %% sudo httpd -v %%
28 file:apache2_activerunning.png 27 Output:
    28 %% Server version: Apache/2.4.57 (Linux/SUSE)
    29  Server built: 2023-04-07 13:20:25.000000000 +0000 %%
    30
    31 Now change into DocumentRoot,
    32
    33 %% cd /srv/www/htdocs/%%
    34
    35 create index.html file and put the following text into the file.
    36 %% echo -e '<html>\n<html>\n\t<body>\n\t\t<h1>It Works!</h1>\n\t</body>\n</html>' > index.html%%
    37
    38 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.
    39
    40 file:apache2_works.png
29 41
30 ===Local Testserver Configuration=== 42 ===Local Testserver Configuration===
    43 Configuring Apache manually involves editing plain text configuration files as user root.
    44
    45 And enable auto start at boot time with:
    46 %% sudo systemctl enable apache2 %%
    47
    48
31 https://wackowiki.org/doc/Org/Tools/Hosting/TestServer/SettingUpVirtualHosts 49 https://wackowiki.org/doc/Org/Tools/Hosting/TestServer/SettingUpVirtualHosts
32 Enabeling mod_rewrite 50 Enabeling mod_rewrite
33 Enabling .htaccess in Apache 51 Enabling .htaccess in Apache
42 https://en.opensuse.org/SDB:LAMP_setup 60 https://en.opensuse.org/SDB:LAMP_setup
43 61
44 62
    63 ----
    64 1.3.Step 3: Start
    65 1.4.Step 4: Test
    66 1.5.A matter of security (A MUST READ!)
    67 1.6.Advanced start and stop parameters
    68 1.7.What is where?
    69 1.8.Setting SQL_MODE
    70 1.9.Enable GD and Intl extension on Windows
    71 1.10.Stopping XAMPP
    72 1.11.Uninstall
    73 1.12.Enable or Disable Mode Rewrite
    74 1.13.Setting Up Virtual Hosts
    75 1.14.Create a symbolic link to htdocs
    76 1.15.Create a shortcut link to manager-linux-x64.run
45 77
46