<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=LAMP_Stack</id>
	<title>LAMP Stack - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=LAMP_Stack"/>
	<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=LAMP_Stack&amp;action=history"/>
	<updated>2026-05-15T09:11:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://dikapediav2.com/wiki/index.php?title=LAMP_Stack&amp;diff=106&amp;oldid=prev</id>
		<title>Ardika Sulistija: Created page with &quot;==== How to install a LAMP stack: ==== ----   For Red Hat Enterprise Linux version 8: RHEL8 includes PHP 7.2 so the standard PHP is fine and Software Collections isn&#039;t needed:  dnf install httpd php php-mysqlnd php-gd php-xml mariadb-server mariadb php-mbstring php-json  Ubuntu 16.04.2 LTS (Xenial) and Debian Stretch include PHP 7.0, and renamed many packages from &quot;php5&quot; to plain &quot;php&quot;. In addition, some PHP modules are now in separate packages (xml, mbstring):  apt-get...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=LAMP_Stack&amp;diff=106&amp;oldid=prev"/>
		<updated>2024-08-27T00:36:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==== How to install a LAMP stack: ==== ----   For Red Hat Enterprise Linux version 8: RHEL8 includes PHP 7.2 so the standard PHP is fine and Software Collections isn&amp;#039;t needed:  dnf install httpd php php-mysqlnd php-gd php-xml mariadb-server mariadb php-mbstring php-json  Ubuntu 16.04.2 LTS (Xenial) and Debian Stretch include PHP 7.0, and renamed many packages from &amp;quot;php5&amp;quot; to plain &amp;quot;php&amp;quot;. In addition, some PHP modules are now in separate packages (xml, mbstring):  apt-get...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==== How to install a LAMP stack: ====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For Red Hat Enterprise Linux version 8: RHEL8 includes PHP 7.2 so the standard PHP is fine and Software Collections isn&amp;#039;t needed:&lt;br /&gt;
 dnf install httpd php php-mysqlnd php-gd php-xml mariadb-server mariadb php-mbstring php-json&lt;br /&gt;
&lt;br /&gt;
Ubuntu 16.04.2 LTS (Xenial) and Debian Stretch include PHP 7.0, and renamed many packages from &amp;quot;php5&amp;quot; to plain &amp;quot;php&amp;quot;. In addition, some PHP modules are now in separate packages (xml, mbstring):&lt;br /&gt;
 apt-get install apache2 mysql-server php php-mysql libapache2-mod-php php-xml php-mbstring&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For instructions on installing php7.2 on RHEL 7, please refer to my &amp;lt;b&amp;gt;[[PHP|PHP]]&amp;lt;/b&amp;gt; page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== How to install a LAMP stack ====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====(old notes)=====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Install your choice of Linux (RHEL, Centos, Ubuntu, etc.)&lt;br /&gt;
2. Follow this guide to install Apache, MariaDB (Skip the PHP installation): http://www.servermom.org/install-lamp-centos-7/1741/&lt;br /&gt;
::* This guide will direct you to install PHP but you will install PHP version 5. You will run into trouble when trying to download phpMyAdmin with these instructions. Proceed to step 3 in order to install PHP successfully.&lt;br /&gt;
3. Install PHP: https://unityconstruct.org/uc/node/766&amp;lt;br/&amp;gt;&lt;br /&gt;
4. (Optional) You should now be able to install phpMyAdmin:&amp;lt;br/&amp;gt;&lt;br /&gt;
 yum install phpmyadmin -y&lt;br /&gt;
 apt-get install -y phpmyadmin&lt;br /&gt;
5. Configure phpMyAdmin and restart apache in steps 12, 13, and 14: http://www.servermom.org/install-lamp-centos-7/1741/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Install LAMP stack on Amazon Linux 2=====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Link: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (For local/home machine) Apache is unable to start due to new IP address: ====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If Apache is unable to start, and you have gotten a new IP address, you need to add the new IP address into the Apache config file:&lt;br /&gt;
 vim /etc/httpd/conf/httpd.conf&lt;br /&gt;
Then change the “Listen” to Listen on ‘[LOCAL_IP_ADDR]:80’&lt;br /&gt;
 Listen 192.168.0.17:80&lt;br /&gt;
Then change the ‘ServerName’ with the new IP address.&lt;br /&gt;
 ServerName 192.168.0.17:80&lt;br /&gt;
&lt;br /&gt;
Test by opening your browser and entering in URL the local IP address.&lt;br /&gt;
If you get ‘Testing 123..’ This page is used to test the proper operation of the Apache HTTP server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Test if Apache and PHP are running and able to process any *.php files: ====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To do this you first create a php info page using this command:&lt;br /&gt;
 echo “&amp;lt;?php phpinfo(); ?&amp;gt;” &amp;gt; /var/www/html/info.php&lt;br /&gt;
Then restart Apache:&lt;br /&gt;
 systemctl restart httpd&lt;br /&gt;
Then open your browser and enter the following; This will pull up the php info page:&lt;br /&gt;
 loc.al.IP.Add/info.php&lt;br /&gt;
If you cannot reach your blog loc.al.IP.Add/info.php, then you must update the ‘wp-options’ with the new IP address for the &amp;#039;home&amp;#039; &amp;amp; &amp;#039;siteurl&amp;#039;. You can do this by logging into phpmyadmin or mysql, and/or hard coding it into the wp-config.php file.&amp;lt;/br&amp;gt;&lt;br /&gt;
In phpMyAdmin, it will show a login page, enter credentials and then go to the DB with ‘wp-options’ and update IP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== A Cloud Guru&amp;#039;s WordPress Bootstrapping Script (user-data) ====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run:&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 yum update -y&lt;br /&gt;
 yum install httpd php php-mysql -yumcd /var/www/html&lt;br /&gt;
 echo &amp;quot;heatlhy&amp;quot; &amp;gt; healthy.html&lt;br /&gt;
 wget https://wordpress.org/latest.tar.gz&lt;br /&gt;
 tar -xzf latest.tar.gz&lt;br /&gt;
 cp -r wordpress/* /var/www/html/&lt;br /&gt;
 rm -rf wordpressr -rf latest.tar.gz&lt;br /&gt;
 chmod -R 755 wp-content&lt;br /&gt;
 chown -R apache:apache wp-content&lt;br /&gt;
 chkconfig httpd on &lt;br /&gt;
 &lt;br /&gt;
 # Not necessary parts&lt;br /&gt;
 wget https://s3.amazonaws.com/bucketforwordpresslab-donotdelete/htaccess.txt&lt;br /&gt;
 mv httaccess.txt .htaccess&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====If you get a new IP and you cannot reach your Wordpress site or the admin page====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
If you have recently gotten a new IP address and cannot reach your blog/site [localhost/ip_addr]/wordpress or [localhost/ip_addr]/wordpress/wp-admin, then you must update the &amp;lt;b&amp;gt;‘wp-options’&amp;lt;/b&amp;gt; with the new IP address for the home &amp;amp; siteurl. Do this by opening your browser and going to:&lt;br /&gt;
	[local_IP_add or public DNS IP aws]/phpmyadmin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It will show a login page, enter credentials (ardika, ************) and then go to the DB with ‘wp-options’ and update IP. &lt;br /&gt;
&lt;br /&gt;
You can also do this through &amp;lt;b&amp;gt;MariaDB&amp;lt;/b&amp;gt;: https://mariadb.com/resources/blog/how-to-install-and-run-wordpress-with-mariadb/&lt;br /&gt;
&lt;br /&gt;
Good mysql command line to modify wp-options: https://isabelcastillo.com/fix-local-ip-address-changed-cant-log-into-wordpress-in-ubuntu-lamp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Software On Your LAMP Stack: ====&lt;br /&gt;
----&lt;br /&gt;
[+] &amp;lt;b&amp;gt;[[WordPress|WordPress]]&amp;lt;/b&amp;gt;&amp;lt;/br&amp;gt;&lt;br /&gt;
[+] [https://www.mediawiki.org/wiki/Manual:Installation_guide#Main_installation_guide MediaWiki]&lt;/div&gt;</summary>
		<author><name>Ardika Sulistija</name></author>
	</entry>
</feed>