Sharing some of my configuration using Linux Trisquel Gnu/Linux free operating software, as a web developer LAMP or Linux Apache MySql and PHP are some of standard application, database and tools that I use in daily programming life.
Why Linux? Because it’s free and makes your laptop or desktop more powerful and advance in computing and not like propriety software every tools that you need in development you can get it free and more thing it’s really cool being free or open source developer.
Linux is your operating system that has a lot of flavor or faces that you can get and download for free, I personally using Trisquel Gnu/Linux that you may download at http://trisquel.info
Now let’s start installing Apache, you must first login as root or administrator on your Linux machine.
1
$ sudo su
Install in configure apache by calling the following command.
1
$ sudo aptitude install apache2
The following path and command are some reference you need to know about apache in your machine.
1 2 3 4 5 6 7 8 9
/var/ww - Here is your default document root.
/etc/apache2/apache2.conf - Configuration later we need to access this for some modification.
/etc/init.d/apache2 restart This the command to restart the Apache server
/etc/init.d/apache2 stop This is the command to stop Apache server
/etc/init.d/apache2 start This the command to start it again
Now to install Mysql execute the command and make sure have properly record the password you provided to mysql database configuration.
1
$ sudo aptitude install mysql-server mysql-client
Last to install the PHP execute the following command
1
$ sudo aptitude install php5 libapache2-mod-php5
To test the php restart the apache and create the following php script.
1 2 3 4 5
Create phpinfo.php file in /var/www/
gedit /var/www/phpinfo.php
<?php phpinfo(); ?>
Test it by calling localhost/phpinfo.php in your browser
No for additional you also like to install phpMyAdmin and Open JDK here the following command.
Installing phpMyadmin
1
$ sudo aptitude install phpmyadmin
During configuration chose the following option
- Select apache 2 in Configuring phpMyAdmin
- Select No in Configuring database for phpMyAdmin
- Edit apache configuration /etc/apache2/apache2.conf by adding the following line-Include /etc/phpmyadmin/apache.conf
Installing open-jdk
1 2 3
$ aptitude install openjdk-6-jre
$ aptitude install openjdk-6-jdk




