Colin Robinson

Icon

Just another guy on the internet

Setting up a LAMP for local development on Arch Linux

Just installed Arch Linux (after leaving Ubuntu due to Unity/GNOME 3). Now I need to setup my development environment. This should work for most distros, not just Arch. I want Apache, MySQL, PHP, phpMyAdmin, and SSL. Because its easy and I’m lazy, we’re going to setting up XAMPP. As always, first reference the wiki (Xampp – ArchWiki).

The steps break down like this:

1) Download the latest version from here.

2) Extract and move to /opt/

# tar xvfz xampp-linux-*.tar.gz -C /opt

3) Set passwords for MySQL and stuff

# sudo /opt/lampp/lampp security

4) Only listen for local connections
- Open /opt/lampp/etc/httpd.conf
- Change “Listen 80″ to “Listen 127.0.0.1:80″

You could stop here, but I’m going to make a virtual host (with SSL).

Continue reading “Setting up a LAMP for local development on Arch Linux” »

Unable to access phpMyAdmin

Quick entry today. I installed a LAMP on Ubuntu and when I accessed http://localhost/ on my browser it said “It Works” but when I tried to access http://localhost/phpMyAdmin/ I got a 404. The fix was simple, for some reason the phpMyAdmin config file wasn’t being loaded so I did a

sudo nano /etc/apache2/apache2.conf

then went to the end of the file (ctrl+w+v) and added the line

Include /etc/phpmyadmin/apache.conf

All good. Hopefully this helps someone.

How to install Eclipse 3.7 on Ubuntu 11.04

The Eclipse packages in Ubuntu are are very out of date. The latest version in the Ubuntu repos is 3.5.2 where as the latest version of Eclipse is 3.7. I’m posting this because Ubuntu 11.04 uses the new Unity desktop which uses overlay-scrollbars (scrolls bars that are hidden until you hover over them). For some reason Eclipse 5.3.2 doesn’t like to play nice with the overlay scrollbars, and I’d rather use the newest version anyways. With Eclipse, you can just download the tar.gz file from eclipse.org and run it no problem, but I like set things up in a cleaner fashion, so here’s how I did it.
Continue reading “How to install Eclipse 3.7 on Ubuntu 11.04” »

Twitter Updates