🧔 Hello World

My name is Emil. I am a programmer, passionate by coding, music, video and photography

Installing Aptana Studio 3, PhpStorm, LAMP and Concrete5 on Ubuntu 14.04 LTS

I'm writing this post for those Ubuntu newbies like me, who intend to replace Windows7 with Ubuntu for development reasons. Not sure why, but it's hurting my eyes when I took a look into Windows Desktop now after using few days Ubuntu. The following unix commands are available on different forums or pages but I just wanted to write them down, together, because is too much work to search every time, so I can remember better having all here.

So, let's start with installation in Ubuntu terminal.

First, you can start to install the best file manager on Linux, which is GNU Midnight Commander, tool that can be a good replacement for Windows Total Commander, very useful for console view/Terminal. Install command will be this one:


@ubuntu:sudo apt-get install mc



Installing Aptana Studio 3



To get Aptana or PhpStorm running on Ubuntu, you will need first to install OpenJDK packages:


@ubuntu:sudo apt-get install openjdk-7-jdk libjpeg62 libwebkitgtk-1.0-0 git-core


Installing Aptana on Ubuntu requires you to download the last ZIP file from Aptana Studio, and I recommend you to do this in Firefox or Chrome because not all the time wget works fine, at least for me wget was very slow, don't no why. When download is ready, unzip the file and install the program under /opt Folder.


@ubuntu:cd ~/Downloads
@ubuntu:wget http://download.aptana.com/studio3/standalone/3.4.2/linux/Aptana_Studio_3_Setup_Linux_x86_3.4.2.zip
@ubuntu:sudo unzip Aptana_Studio_3_Setup_Linux_x86_3.4.2.zip -d /opt


Last installation step is to add the Aptana to desktop as menu shortcut:


@ubuntu:wget http://www.samclarke.com/wp-content/uploads/2012/04/AptanaStudio3.desktop
@ubuntu:sudo mv AptanaStudio3.desktop /usr/share/applications/AptanaStudio3.desktop



Installing PhpStorm 7.1.3



PhpStorm installation is somehow in the same manner as the previous one. Requires to download the file, to extract the TAR archive and to install the program on OPT folder from Ubuntu root.


@ubuntu:cd ~/Downloads
@ubuntu:wget http://download.jetbrains.com/webide/PhpStorm-7.1.3.tar.gz
@ubuntu:~/Downloads$ sudo tar -zxvf PhpStorm-7.1.3.tar.gz -C /opt/


To configure PhpStorm IDE, just go to BIN folder and start by shell PhpStorm configurator:


@ubuntu:/$ cd /opt/PhpStorm-133.982/bin
@ubuntu:/opt/PhpStorm-133.982/bin$ sh phpstorm.sh



Installing LAMP on Ubuntu



To run your websites under Ubuntu requires installation of Apache 2.X, PHP 5.X and MySQL 5.X which takes few seconds using command line:


@ubuntu:sudo apt-get install apache2
@ubuntu:sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
@ubuntu:sudo mysql_install_db
@ubuntu:sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt


After installation, Apache needs an restart:


@ubuntu:sudo service apache2 restart


Install mod_rewrite on Apache :


@ubuntu:sudo a2enmod rewrite


Set AllowOverride All in apache Directory


#edit default
@ubuntu:sudo nano /etc/apache2/sites-available/default

#Add this code

Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all


#restart apache
@ubuntu:sudo service apache2 restart


Now everything works like a charm, just go and set the Owner and the Rights for www Folder :)


@ubuntu:sudo chown -R www-data:www-data /var/www/
@ubuntu:sudo chmod -R 0777 /var/www/


Open now the browser and type "localhost". Welcome page from Apache has to be there.

Extra Step for GD lib. By default, GD lib is not running after you install Ubuntu fresh on machine.


@ubuntu:sudo apt-get install php5-gd
@ubuntu:sudo aptitude install php5-gd # alternative version


After first install is still not working, so you have to remove it and reinstall again:


@ubuntu:sudo apt-get autoremove php5-gd
@ubuntu:sudo apt-get install php5-gd
@ubuntu:sudo apt-get update



Installing Concrete5 on Ubuntu



Download the file in Downloads Folder, unzip and copy into HTML Folder:


@ubuntu:cd ~/Downloads
@ubuntu:unzip concrete5.6.3.1.zip
@ubuntu:cp -R /home/Downloads/concrete5.6.3.1 /var/www/html/concrete


Set the rights for new concrete folder:


@ubuntu:sudo chown -R www-data:www-data /var/www/html/concrete
@ubuntu:sudo chmod -R 0777 /var/www/html/concrete5


Create database for concrete installation from Terminal:


@ubuntu:/$ mysql -u root -p
mysql> create database concrete;
mysql> exit;


Do a backup of concrete installation, while you will need this if you want to reset the changes into concrete later ;)


@ubuntu:cd /var/www/html/concrete
@ubuntu:tar -cvvf concrete.tar concrete/
@ubuntu:mysqldump --user=root --password=root concrete > /var/www/concrete5.sql


That's all folks :)

Related Link


How To Set Up Mod_Rewrite
https://www.digitalocean.com/community/articles/how-to-set-up-mod_rewrite

How to enable mod_rewrite in Apache?
http://askubuntu.com/questions/48362/how-to-enable-mod-rewrite-in-apache

How to install Aptana Studio 3 on Ubuntu 12.04 LTS
http://www.samclarke.com/2012/04/how-to-install-aptana-studio-3-on-ubuntu-12-04-lts-precise-pangolin/

How To : JetBrains PhpStorm installieren unter Ubuntu 12.10 64bit
http://www.byte-artist.de/blog/2013/04/27/how-to-jetbrains-phpstorm-installieren-unter-ubuntu-12-10-64bit

Installing and running PHPStorm on Ubuntu
http://wiki.jetbrains.net/intellij/Installing_and_running_PHPStorm_on_Ubuntu

How to install Php Storm on Ubuntu
http://www.learnhowtodo.org/how-to-install-php-storm-on-ubuntu/