snipt

Ctrl+h for KB shortcuts

Bash

Ubuntu 12.04 LAMP server up and running with phpmyadmin installed nice and quick!

1
2
3
4
5
6
7
8
#!/bin/bash
sudo apt-get install mysql-server mysql-client
sudo apt-get install apache2
sudo apt-get install php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
sudo /etc/init.d/apache2 restart
sudo apt-get install phpmyadmin
https://snipt.net/embed/b8fde2488c189d048f085351633ade5a/
/raw/b8fde2488c189d048f085351633ade5a/
b8fde2488c189d048f085351633ade5a
bash
Bash
8
2019-06-22T11:10:05
True
False
False
/api/public/snipt/90070/
ubuntu-1204-lamp-server-up-and-running-with-phpmyadmin-installed-nice-and-quick
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="ch">#!/bin/bash</span> </span><span id="L-2"><a name="L-2"></a>sudo apt-get install mysql-server mysql-client </span><span id="L-3"><a name="L-3"></a>sudo apt-get install apache2 </span><span id="L-4"><a name="L-4"></a>sudo apt-get install php5 libapache2-mod-php5 </span><span id="L-5"><a name="L-5"></a>sudo /etc/init.d/apache2 restart </span><span id="L-6"><a name="L-6"></a>sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl </span><span id="L-7"><a name="L-7"></a>sudo /etc/init.d/apache2 restart </span><span id="L-8"><a name="L-8"></a>sudo apt-get install phpmyadmin </span></pre></div> </td></tr></table>
apache2, install, lamp, mysql, php, server