Skip to content

Instantly share code, notes, and snippets.

@dewwwald
Last active August 29, 2015 14:16
Show Gist options
  • Save dewwwald/8db525ea86cea344a2c6 to your computer and use it in GitHub Desktop.
Save dewwwald/8db525ea86cea344a2c6 to your computer and use it in GitHub Desktop.
Set up LAMP

#How to install LAMP (Ubuntu 14.10) this did not work

Note that after I added my old bash scripts the issue of repositories missing disappeared.

##LINUX Install linux by creating a bootable flash.

  • I used 'startup disc creator' on ubuntu.
  • Access BIOs F2 and set startup order to flash first. (Remember to fix the order when done)
  • Follow the setup

##APACHE I go for apache2.

$ apt search apache
$ sudo apt-get install [what you found]

##MYSQL I am not sure here but you'll definitely need to install MYSQL Server. Again use apt search.

##php5 Install php 5.5 as we use it the most of the time. Also install phpmyadmin.

  • Now the config will maybe work since mysql-server has been installed.

Another setup is to include apache.conf for phpmyadmin to the apache.inc.php.

  • open -> sudo subl /etc/apache2/apache2.conf
  • add line -> include /etc/phpmyadmin/apache.conf
  • you might have to run to reconfigure phpmyadmin sudo dpkg-reconfigure phpmyadmin

##V-Hosts

To the /etc/hosts file add the virtual host domain (example.dev) name.

Then create a /etc/apache2/sites-available/[domain].conf file with the following content.

<Directory /home/dewald/server/site>
	Options FollowSymLinks
	Order Deny,Allow
	Allow from all
	AllowOverride None
	Require all granted
</Directory>
<VirtualHost 127.0.0.1:80>
	DocumentRoot "/home/dewald/work/server/site"
	ServerName site.dev
	ServerAlias site.dev.*.xip.io

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
	
</VirtualHost> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment