Versionsunterschiede von Test Server




← Vorherige Änderung
Nächste Änderung →




1   ==OpenSuse==
  1 ==OpenSuse ==
2 2
3   ===Installing===
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.
  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 and 15.x 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
  6 ===1.1 Download and Install===
  7
5 8 https://www.linuxbabe.com/opensuse/apache-mariadb-php7-lamp-opensuse-leap
6 9
7 10
17 20 %% sudo zypper install apache2 %%
18 21
19 22 By default, Apache will not automatically start after installation. You can start it with:
20   %% sudo systemctl start apache2 %%
  23 %% systemctl start apache2.service %%
21 24
22 25 Check its status:
23   %% systemctl status apache2 %%
  26 %% sudo systemctl status apache2 %%
24 27 file:apache2_activerunning.png
25 28 We can see from the screenshot that Apache is running and auto start enabled.
26 29
31 34 %% Server version: Apache/2.4.57 (Linux/SUSE)
32 35  Server built: 2023-04-07 13:20:25.000000000 +0000 %%
33 36
34   Now create index.html file under the document root.
  37 Now change into DocumentRoot,
35 38
36   %% mkdir -p /srv/www/htdocs/index.html %%
  39 %% cd /srv/www/htdocs/%%
37 40
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.
  41 create index.html file and put the following text into the file.
  42 %% echo -e '<html>\n<html>\n\t<body>\n\t\t<h1>It Works!</h1>\n\t</body>\n</html>' > index.html%%
39 43
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.
  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.
41 45
  46 file:apache2_works.png  
42 47
43   %%cd /srv/www/htdocs/  
44   echo "<h1>This is Apache OpenSUSE Leap 42.1</h1>" > index.html %%  
45 48 ===Local Testserver Configuration===
  49 Configuring Apache manually involves editing plain text configuration files as user root.  
  50  
46 51 And enable auto start at boot time with:
47 52 %% sudo systemctl enable apache2 %%
48 53
61 66 https://en.opensuse.org/SDB:LAMP_setup
62 67
63 68
  69 ----  
  70 1.3.Step 3: Start  
  71 1.4.Step 4: Test  
  72 1.5.A matter of security (A MUST READ!)  
  73 1.6.Advanced start and stop parameters  
  74 1.7.What is where?  
  75 1.8.Setting SQL_MODE  
  76 1.9.Enable GD and Intl extension on Windows  
  77 1.10.Stopping XAMPP  
  78 1.11.Uninstall  
  79 1.12.Enable or Disable Mode Rewrite  
  80 1.13.Setting Up Virtual Hosts  
  81 1.14.Create a symbolic link to htdocs  
  82 1.15.Create a shortcut link to manager-linux-x64.run  
64 83
65