<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kangtain.com/wiki/index.php?action=history&amp;feed=atom&amp;title=LAMP</id>
	<title>LAMP - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kangtain.com/wiki/index.php?action=history&amp;feed=atom&amp;title=LAMP"/>
	<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=LAMP&amp;action=history"/>
	<updated>2026-05-13T07:50:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=LAMP&amp;diff=7751&amp;oldid=prev</id>
		<title>Kangtain: /* Source */</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=LAMP&amp;diff=7751&amp;oldid=prev"/>
		<updated>2023-01-18T04:08:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Source&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:08, 18 January 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l82&quot;&gt;Line 82:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 82:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Restart Apache for the changes to take effect.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Restart Apache for the changes to take effect.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo systemctl restart apache2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo systemctl restart apache2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Terkait==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*[[LAMP:Shell Script Install LAMP]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Source==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Source==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=LAMP&amp;diff=4105&amp;oldid=prev</id>
		<title>Kangtain at 09:58, 19 March 2022</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=LAMP&amp;diff=4105&amp;oldid=prev"/>
		<updated>2022-03-19T09:58:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:58, 19 March 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:Lamp stack.jpg|thumb|Source: [https://geekboots.sfo2.cdn.digitaloceanspaces.com/post/lamp-stack-1567223529136.jpg digitaloceanspaces.com]]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Update Software Packages==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Update Software Packages==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo apt update&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo apt update&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=LAMP&amp;diff=4103&amp;oldid=prev</id>
		<title>Kangtain: Created page with &quot;==Update Software Packages==  sudo apt update   sudo apt upgrade  ==Install Apache Web Server==  sudo apt install -y apache2 apache2-utils  After it’s installed, Apache should be automatically started. Check its status with systemctl.  systemctl status apache2  If it’s not running, use systemctl to start it.  sudo systemctl start apache2  It’s also a good idea to enable Apache to automatically start at system boot time.  sudo systemctl enable apache2  Check Apache...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=LAMP&amp;diff=4103&amp;oldid=prev"/>
		<updated>2022-03-19T09:54:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Update Software Packages==  sudo apt update   sudo apt upgrade  ==Install Apache Web Server==  sudo apt install -y apache2 apache2-utils  After it’s installed, Apache should be automatically started. Check its status with systemctl.  systemctl status apache2  If it’s not running, use systemctl to start it.  sudo systemctl start apache2  It’s also a good idea to enable Apache to automatically start at system boot time.  sudo systemctl enable apache2  Check Apache...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Update Software Packages==&lt;br /&gt;
 sudo apt update&lt;br /&gt;
&lt;br /&gt;
 sudo apt upgrade&lt;br /&gt;
&lt;br /&gt;
==Install Apache Web Server==&lt;br /&gt;
 sudo apt install -y apache2 apache2-utils&lt;br /&gt;
&lt;br /&gt;
After it’s installed, Apache should be automatically started. Check its status with systemctl.&lt;br /&gt;
 systemctl status apache2&lt;br /&gt;
&lt;br /&gt;
If it’s not running, use systemctl to start it.&lt;br /&gt;
 sudo systemctl start apache2&lt;br /&gt;
&lt;br /&gt;
It’s also a good idea to enable Apache to automatically start at system boot time.&lt;br /&gt;
 sudo systemctl enable apache2&lt;br /&gt;
&lt;br /&gt;
Check Apache version:&lt;br /&gt;
 apache2 -v&lt;br /&gt;
&lt;br /&gt;
If you are using UFW firewall, then run this command to open TCP port 80.&lt;br /&gt;
 sudo ufw allow http&lt;br /&gt;
&lt;br /&gt;
Now we need to set www-data (Apache user) as the owner of document root (otherwise known as web root). By default it’s owned by the root user.&lt;br /&gt;
 sudo chown www-data:www-data /var/www/html/ -R&lt;br /&gt;
&lt;br /&gt;
Then enable this config file.&lt;br /&gt;
 sudo a2enconf servername.conf&lt;br /&gt;
&lt;br /&gt;
Reload Apache for the change to take effect.&lt;br /&gt;
 sudo systemctl reload apache2&lt;br /&gt;
&lt;br /&gt;
==Install MariaDB Database Server==&lt;br /&gt;
 sudo apt install mariadb-server mariadb-client&lt;br /&gt;
&lt;br /&gt;
After it’s installed, MariaDB server should be automatically started. Use systemctl to check its status.&lt;br /&gt;
 systemctl status mariadb&lt;br /&gt;
&lt;br /&gt;
If it’s not running, start it with this command:&lt;br /&gt;
 sudo systemctl start mariadb&lt;br /&gt;
&lt;br /&gt;
To enable MariaDB to automatically start at boot time, run&lt;br /&gt;
 sudo systemctl enable mariadb&lt;br /&gt;
&lt;br /&gt;
Now run the post-installation security script.&lt;br /&gt;
 sudo mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
So you can run the following command to login without providing MariaDB root password.&lt;br /&gt;
 sudo mariadb -u root&lt;br /&gt;
&lt;br /&gt;
To exit, run&lt;br /&gt;
 exit;&lt;br /&gt;
&lt;br /&gt;
Check MariaDB server version information.&lt;br /&gt;
 mariadb --version&lt;br /&gt;
&lt;br /&gt;
==Install PHP7.4==&lt;br /&gt;
 sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline&lt;br /&gt;
&lt;br /&gt;
Enable the Apache php7.4 module then restart Apache Web server.&lt;br /&gt;
 sudo a2enmod php7.4&lt;br /&gt;
&lt;br /&gt;
 sudo systemctl restart apache2&lt;br /&gt;
&lt;br /&gt;
Check PHP version information.&lt;br /&gt;
 php --version&lt;br /&gt;
&lt;br /&gt;
===Run PHP-FPM with Apache===&lt;br /&gt;
Disable the Apache PHP7.4 module.&lt;br /&gt;
 sudo a2dismod php7.4&lt;br /&gt;
&lt;br /&gt;
Install PHP-FPM.&lt;br /&gt;
 sudo apt install php7.4-fpm&lt;br /&gt;
&lt;br /&gt;
Enable proxy_fcgi and setenvif module.&lt;br /&gt;
 sudo a2enmod proxy_fcgi setenvif&lt;br /&gt;
&lt;br /&gt;
Enable the &amp;lt;code&amp;gt;/etc/apache2/conf-available/php7.4-fpm.conf&amp;lt;/code&amp;gt; configuration file.&lt;br /&gt;
 sudo a2enconf php7.4-fpm&lt;br /&gt;
&lt;br /&gt;
Restart Apache for the changes to take effect.&lt;br /&gt;
 sudo systemctl restart apache2&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
*[https://www.linuxbabe.com/ubuntu/install-lamp-stack-ubuntu-20-04-server-desktop linuxbabe.com]&lt;br /&gt;
&lt;br /&gt;
[[Category:Server]]&lt;br /&gt;
[[Category:Web Server]]&lt;/div&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
</feed>