Needhi Documentation Software System Required for Installation Install Java system -> setting-system-synaptic -> package manager -> setting-repositories -> other software -> ADD-write APT (deb http://archive.canonical.com/ubuntu maverick partner) -> add resource -> reload-mark -> jdk-apply OR sudo apt-get install sun-java6-jre Install Netbeans: (cd directory where package exists) sudo sh netbeans-7.0.1-ml-php-linux.sh Install Debugger sudo apt-get install php5-xdebug (configure the ) sudo gedit /etc/php5/apache2/conf.d/xdebug.ini ; configuration for php xdebug module zend_extension="/usr/lib/php5/20090626/xdebug.so" xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.profiler_enable=1 Install kcachegrind profiler sudo apt-get install kcachegrind Now restart the apache server. Install Lampp sudo apt-get install lamp-server^ Install phpmyadmin sudo apt-get install phpmyadmin Install Pear package pear package: sudo apt-get install php5-cli php5-dev php-pear curl Package: sudo apt-get install curl libcurl3 libcurl3-dev php5-curl Log package: sudo pear install Log-1.12.6 GD Package: sudo apt-get install libgd2-xpm-dev* Imagick Package: sudo apt-get install imagemagick libmagickwand-dev sudo pecl install imagick Add Extension: sudo gedit /etc/php5/apache2/conf.d/imagick.ini write line: extension = "/usr/lib/php5/20090626/imagick.so" pear install http pear install http_request pear install Net_IDNA-0.8.1 pecl install pecl_http and add extension extension=http.so to php.ini set include_path=":/usr/share/php:/usr/share/php/PEAR" in php.ini. Provide Permission for Folders Required sudo nautilus Cron tab: crontab -e (nano editor) write: */5 * * * * php /var/www/testing_feeds_v3/CronJob.php unprocessedfeed Other : rabbitVCS (SVN) filezilla (WinSCP) SSH command line host name key file (Putty) enable pdf extension: sudo pecl install pdflib When prompted we need to enter the path to the PDFlib Lite library, which is /usr/local. To make PHP load the extension we need to edit the /etc/php5/apache2/php.ini file and add the following line. extension = pdf.so Now you can restart apache server Install Postfix Mail Server sudo apt-get install postfix Separate Apache2,PHP & Mysql sudo su Installing MySQL 5 apt-get install mysql-server mysql-client You will be asked to provide a password for the MySQL root user - this password is valid for the user root@localhost as well as root@server1.example.com, so we don't have to specify a MySQL root password manually later on: New password for the MySQL "root" user: <-- yourrootsqlpassword Repeat password for the MySQL "root" user: <-- yourrootsqlpassword Installing Apache2 Apache2 is available as an Ubuntu package, therefore we can install it like this: apt-get install apache2 Now direct your browser to http://192.168.0.100, and you should see the Apache2 placeholder page (It works!): Apache's default document root is /var/www on Ubuntu, and the configuration file is /etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules), /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d. Installing PHP5 apt-get install php5 libapache2-mod-php5 We must restart Apache afterwards: /etc/init.d/apache2 restart Getting MySQL Support In PHP5 To get MySQL support in PHP, we can install the php5-mysql package. It's a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this: apt-cache search php5 Pick the ones you need and install them like this: apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5sqlite php5-tidy php5-xmlrpc php5-xsl Now restart Apache2: /etc/init.d/apache2 restart Mod rewrite & ssl copy rewrite.load and ssl.load from mods-available to mods-enable. copy default-ssl from sites-available to sites-enable and change as From: <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> To:<Directory /var/www/> Options Indexes FollowSymLinks MultiViews RewriteEngine On AllowOverride all Order allow,deny allow from all </Directory> To make .htaccess files work as expected, you need to edit this file: /etc/apache2/sites-available/default Look for a section that looks like this: <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # Uncomment this directive is you want to see apache2's # default start page (in /apache2-default) when you go to / #RedirectMatch ^/$ /apache2-default/ </Directory> You need to modify the line containing AllowOverride None to read AllowOverride All. This tells Apache that it's okay to allow .htaccess files to over-ride previous directives. You must reload Apache before this change will have an effect: sudo /etc/init.d/apache2 reload Import A MySQL Database The file must be in .sql format. It can not be compressed in a .zip or .tar.gz file. Start by uploading the .sql file onto the server If you haven't already done so, create the MySQL database via the cpanel. Using SSH, navigate to the directory where your .sql file is. Next run this command: (In windows go to mysql/bin then run command with full path of .sql file) mysql -p -u root db_name < file.sql Note: The -p will prompt for your account's password. Import csv file LOAD DATA LOCAL INFILE 'c:/xampp/htdocs/postalcode/us1.csv' INTO TABLE yz_postalcode FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (PostalCode,City,StateCode,Country,Latitude,Longitude); LOAD DATA LOCAL INFILE '/var/www/us1.csv' INTO TABLE yz_postalcode FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' (PostalCode,@dummy,City,@dummy,@dummy,StateCode,@dummy,@dummy,@dmmy,Latit ude,Longitude,@dummy,Country); Launch Instance Login Amazon account Launch Instance by following instructions. Generate .ppk file from .pem file download from amazon(Through Putty KeyGen).