<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://leo.leung.xyz/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://leo.leung.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=LAMP"/>
	<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=LAMP&amp;action=history"/>
	<updated>2026-11-09T16:45:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=LAMP&amp;diff=2425&amp;oldid=prev</id>
		<title>Leo at 20:49, 21 August 2017</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=LAMP&amp;diff=2425&amp;oldid=prev"/>
		<updated>2017-08-21T20:49:04Z</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 20:49, 21 August 2017&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;This is an old script that I used to set up a LAMP server.&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;&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;{{highlight|lang=bash|code=&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;{{highlight|lang=bash|code=&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;cd&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;cd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-2422:rev-2425:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=LAMP&amp;diff=2422&amp;oldid=prev</id>
		<title>Leo: Formatting</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=LAMP&amp;diff=2422&amp;oldid=prev"/>
		<updated>2017-08-21T15:54:43Z</updated>

		<summary type="html">&lt;p&gt;Formatting&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 15:54, 21 August 2017&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;{{highlight|lang=bash|code=&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;cd&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;cd&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;wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&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;wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&lt;/div&gt;&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-l122&quot;&gt;Line 122:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 123:&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;wall PHP Installed&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;wall PHP Installed&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;!-- diff cache key wiki:diff:1.41:old-49:rev-2422:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=LAMP&amp;diff=49&amp;oldid=prev</id>
		<title>Leo: Created page with &quot;cd wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt rpm -K rpmforge-release-0.5.2-2.el6...&quot;</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=LAMP&amp;diff=49&amp;oldid=prev"/>
		<updated>2012-12-04T08:01:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;cd wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt rpm -K rpmforge-release-0.5.2-2.el6...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;cd&lt;br /&gt;
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&lt;br /&gt;
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt&lt;br /&gt;
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm&lt;br /&gt;
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm&lt;br /&gt;
&lt;br /&gt;
yum -y install make autoconf g++ gcc-c++ libtermcap-devel libgcc-c++ libtool gcc libpng-devel libjpeg-devel libxml1-devel libxml2-devel curl curl-devel libmcrypt libmcrypt-devel libtool-ltdl-devel libxml2.x86_64 libxml2-devel.x86_64 curl-devel.x86_64&lt;br /&gt;
&lt;br /&gt;
# mysql&lt;br /&gt;
yum -y install cmake&lt;br /&gt;
&lt;br /&gt;
# sphinx&lt;br /&gt;
yum -y install sudo&lt;br /&gt;
&lt;br /&gt;
#apache&lt;br /&gt;
yum -y install openssl openssl-devel&lt;br /&gt;
&lt;br /&gt;
# Get IPtable rules&lt;br /&gt;
wget http://host.steamr.com/supportfiles/iptables.sh&lt;br /&gt;
&lt;br /&gt;
cd /root&lt;br /&gt;
mkdir src&lt;br /&gt;
&lt;br /&gt;
cd /root/src&lt;br /&gt;
wget http://host.steamr.com/supportfiles/httpd-2.2.21.tar.gz&lt;br /&gt;
wget http://host.steamr.com/supportfiles/mysql-5.1.59.tar.gz&lt;br /&gt;
wget http://host.steamr.com/supportfiles/php-5.3.8.tar.gz&lt;br /&gt;
wget http://host.steamr.com/supportfiles/sphinx-2.0.1-beta.tar.gz&lt;br /&gt;
for f in `ls *.tar.gz` ; do tar -xzf $f ; done&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Setting up apache&lt;br /&gt;
#&lt;br /&gt;
cd /root/src/http*/&lt;br /&gt;
./configure --prefix=/opt/apache --enable-so --enable-rewrite --enable-ssl --enable-setenvif&lt;br /&gt;
make -j 4 &amp;amp;&amp;amp; make install &amp;amp;&amp;amp; wget -O /etc/init.d/httpd http://host.steamr.com/supportfiles/httpd.sh &amp;amp;&amp;amp; chmod 755 /etc/init.d/httpd &amp;amp;&amp;amp; wall Apache Installed!&lt;br /&gt;
&lt;br /&gt;
wget -O /opt/apache/conf/httpd.conf http://host.steamr.com/supportfiles/httpd.conf&lt;br /&gt;
ln -s /etc/init.d/httpd /etc/rc3.d/S55httpd&lt;br /&gt;
&lt;br /&gt;
# Note: The above preconfig .conf will load php which is not compiled yet. &lt;br /&gt;
# Do not start apache.&lt;br /&gt;
#/etc/init.d/httpd start&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Setting up MySQL 5.1 with sphinx&lt;br /&gt;
#&lt;br /&gt;
cd /root/src/mysql*/&lt;br /&gt;
&lt;br /&gt;
cp -R ../sphinx-*/mysqlse/ storage/sphinx&lt;br /&gt;
sh BUILD/autorun.sh&lt;br /&gt;
./configure --prefix=/opt/mysql --with-plugins=sphinx --with-unix-socket-path=/opt/mysql/mysql.sock --without-man --enable-shared  --without-debug --enable-assembler --with-ssl CFLAGS=-O3 &amp;#039;CXXFLAGS=-O3 -fno-exceptions -felide-constructors -fno-rtti&amp;#039; CXX=gcc &lt;br /&gt;
make -j 4&lt;br /&gt;
make install &amp;amp;&amp;amp; wall MySQL Installed&lt;br /&gt;
&lt;br /&gt;
/bin/cp support-files/mysql.server /etc/init.d/mysql&lt;br /&gt;
chmod 755 /etc/init.d/mysql&lt;br /&gt;
ln -s /etc/init.d/mysql /etc/rc3.d/S40mysql&lt;br /&gt;
/bin/cp support-files/my-medium.cnf /etc/my.cnf&lt;br /&gt;
/usr/sbin/useradd -r mysql&lt;br /&gt;
cd /opt/mysql&lt;br /&gt;
chown -R mysql .&lt;br /&gt;
chgrp -R mysql .&lt;br /&gt;
&lt;br /&gt;
# When using mysql 5.1:&lt;br /&gt;
/opt/mysql/bin/mysql_install_db --user=mysql&lt;br /&gt;
&lt;br /&gt;
# When using mysql 5.5, use:&lt;br /&gt;
#/opt/mysql/scripts/mysql_install_db --user=mysql --basedir=/opt/mysql&lt;br /&gt;
&lt;br /&gt;
chown -R mysql /opt/mysql&lt;br /&gt;
/opt/mysql/bin/mysqld_safe --user=mysql &amp;amp;&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Set the lib paths of mysql so the libmysqlclient.so or w/e can be found&lt;br /&gt;
#&lt;br /&gt;
echo &amp;quot;/opt/mysql/lib/mysql&amp;quot; &amp;gt; /etc/ld.so.conf.d/mysql.conf&lt;br /&gt;
/sbin/ldconfig&lt;br /&gt;
&lt;br /&gt;
# apply custom settings&lt;br /&gt;
wget -O /etc/my.cnf http://host.steamr.com/supportfiles/my.cnf&lt;br /&gt;
killall mysql&lt;br /&gt;
killall mysqld&lt;br /&gt;
/etc/init.d/mysql restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# sphinx&lt;br /&gt;
#&lt;br /&gt;
cd /root/src/sphinx*&lt;br /&gt;
./configure --prefix=/opt/sphinx --with-mysql&lt;br /&gt;
make -j 4&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
# post install stuff&lt;br /&gt;
/bin/cp /opt/sphinx/etc/sphinx.conf.dist /opt/sphinx/etc/sphinx.conf&lt;br /&gt;
cp contrib/scripts/searchd /etc/init.d/&lt;br /&gt;
chmod 777 /etc/init.d/searchd&lt;br /&gt;
ln -s /etc/init.d/searchd /etc/init.d/S55searchd&lt;br /&gt;
sed -i -e &amp;#039;s/\/release\/search/\/opt\/sphinx\/bin/g&amp;#039; /etc/init.d/searchd&lt;br /&gt;
sed -i -e &amp;#039;s/\$BASE_PATH\/searchd.pid/\/opt\/sphinx\/var\/searchd.pid/g&amp;#039; /etc/init.d/searchd&lt;br /&gt;
sed -i -e &amp;#039;s/\$BASE_PATH\/sphinx.conf/\/opt\/sphinx\/etc\/sphinx.conf/g&amp;#039; /etc/init.d/searchd&lt;br /&gt;
&lt;br /&gt;
/usr/sbin/useradd -r searchd&lt;br /&gt;
cd /opt/sphinx&lt;br /&gt;
chown -R searchd:searchd var&lt;br /&gt;
&lt;br /&gt;
/etc/init.d/searchd start&lt;br /&gt;
ln -s /etc/init.d/searchd /etc/rc3.d/S41searchd&lt;br /&gt;
&lt;br /&gt;
wall Sphinx Installed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Setup PHP&lt;br /&gt;
#&lt;br /&gt;
cd /root/src/php*/&lt;br /&gt;
./configure --prefix=/opt/php5 --with-apxs2=/opt/apache/bin/apxs --with-config-file-path=/etc/ --with-gd --enable-shmop --enable-track-vars --enable-ftp --enable-sockets --enable-exif --enable-zip --enable-sysvsem --with-zlib --enable-sysvshm --enable-magic-quotes --with-jpeg-dir --with-png-dir --enable-mbstring --enable-embedded-mysqli=shared --with-curl --with-mcrypt --with-mysql=/opt/mysql --with-mysqli=/opt/mysql/bin/mysql_config &lt;br /&gt;
# If you want imap support: use --with-imap --with-imap-ssl=/usr/include/openssl --with-kerberos&lt;br /&gt;
make -j 4&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
wall PHP Installed&lt;/div&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
</feed>