Things todo for PHP Developer after install fresh ubuntu linux 11.04 64bit

This installation using Ubuntu 11.04 / Macbuntu 11.04 64bit

These steps is needed if you want to run Apache, Mysql, PHP5 and PHP IDE /editor in your linux.

-Install VGA Driver (installation process may different based on your graphics card)

-Install Apache2 Mysql5 and PHP5

$sudo apt-get install lamp-server^

in this installation you will be asked to enter your mysql database root password, just enter any password you like. After installation completed, test it by go to your browser then enter ‘localhost’, you will see the output text ‘It Works!’

install oracle java version 6 because this software required to run our Netbeans IDE , download the file from http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html

the filename is jdk-6u30-linux-x64.bin (81MB)

$chmod +x jdk-6u30-linux-x64.bin

$./jdk-6u30-linux-x64.bin

$sudo mkdir /usr/lib/jvm

$sudo mv ./jdk1.6.0_30/ /usr/lib/jvm/jdk1.6.0.0_30

$sudo update-alternatives –install /usr/bin/java java /usr/lib/jvm/jdk1.6.0.0_30/jre/bin/java 0

test the java with this command

$java -version

-install Netbeans, download Netbeans as our main PHP IDE when working with PHP Project, go to http://netbeans.org/downloads/ and download the PHP version (around 47MB)

$chmod +x netbeans-7.1.1-ml-php-linux.sh

$./netbeans-7.1.1-ml-php-linux.sh

** IF YOU WANT TO INSTALL SSL, FOLLOW THIS GUIDE **

$sudo openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem

$sudo chmod 600 /etc/apache2/apache.pem

edit file /etc/apache2/ports.conf with

$sudo vi /etc/apache2/ports.conf

and add this text below NameVirtualHost *:80

NameVirtualHost *:443

$sudo a2enmod ssl

$sudo vi /etc/apache2/sites-available/default

Add this line to make sure your SSL is ready to use

<VirtualHost *:443>
DocumentRoot /var/www
SSLEngine on
SSLCertificateFile /etc/apache2/apache.pem
</VirtualHost>

restart apache with

$sudo /etc/init.d/apache2 restart

test your ssl host by go to your internet browser then type https://localhost/

you will see warning the safe is not safe, it’s okay because we will only use this https for development only

-Install phpmyadmin as our main database browser

$sudo apt-get install phpmyadmin

when you asked to choose webserver, choose apache2 by pressing key ‘space’

-Install Firefox Addon

1. Firebug https://addons.mozilla.org/en-US/firefox/addon/firebug/

2. Webdeveloper https://addons.mozilla.org/en-US/firefox/addon/web-developer/?src=search

3. Cookies Manager+ https://addons.mozilla.org/en-US/firefox/addon/cookies-manager-plus/?src=ss

4.Colorzilla https://addons.mozilla.org/id/firefox/addon/colorzilla/

5. Speed Dial https://addons.mozilla.org/en-US/firefox/addon/speed-dial/

-Install Subversion Client

$sudo apt-get install subversion

-Install SVN GUI by go to Ubuntu Software Center then search for Rapid SVN
-Install Diff Tools in Ubuntu Software Center again and search ‘Meld’ to integrate with Rapid SVN

++ OPTIONAL ++

– Install PHP Curl :

$sudo apt-get install curl libcurl3 libcurl3-dev php5-curl php5-mcrypt php5-gd

$/etc/init.d/apache2 restart

– Enable mod_rewrite

$sudo a2enmod rewrite

$sudo /etc/init.d/apache2 restart

– Screenshot capture in your ubuntu > go to Ubuntu Software Center then install SHUTTER application

– Brightness Indicator for notebook, download from http://codevanrohde.nl/wordpress/?p=128

– If you install this in notebook and want to control brightness key, activate the LCD backlight by editing GRUB file

$sudo vi /etc/default/grub

$sudo update-grub

add ‘acpi_backlight=vendor’ in line GRUB_CMDLINE_LINUX_DEFAULT so it will like this

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash acpi_backlight=vendor”

– Remove popup dialog ‘Login Keyring’
1) Go click Applications > System > Preferences > Passwords and Encryption keys
2) The should be entries there listing an array of keyring password.
3) Right click on them and select change password
4) Enter the old password if you have one then leave the new password blank. (A warning message should appear)

Thats it.. now you can start coding with PHP
good luck

Iklan

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s