Saturday, November 24, 2012

22/11/12012

My need was to demonstrate the caching process of HTML 5 .
The first step was to install
1. LAMP  -  
- Open terminal and Type the command :install it   first  with
sudo apt-get install tasksel
Now to install LAMP, type the taskel command in terminal :
sudo  tasksel
 
 
- During the process of installation a text box appears , where u need to enter ur password for MYSQL.
 
 - Next is the testing part
              
 Check if php is working :

$sudo vi /var/www/info.php-- //opens the vim editor
and add
<?php
phpinfo();
?>
save and exit
restart apache2 ,
#sudo /etc/init.d/apache2 restart
Now open browser and type :
http://ip/info.php or http://localhost/info.php
 
NOTE : for every possible access to the local host u need to restart ur apache so 
its better to get acquainted with command.
 
2.
Task 2:
To copy my web page into the /var/www folder
  
 cp -r html5 /var/www

now the file is copied ..still i was not able to run it
   
- ls -l - listed the whole info about the contents of the folder
                   permissions where assigned to root
In order to change the permissions to unik
 
       chown -R unik:/tmp/src 
 
Still not working ...
 
I assigned permissions ( full permissions to every file in the folder) 
     chmod -R 777 <foldername >
   
 - Run from ur browser localhost/html5/html5.htm 
 
WWolaaaaaaaaaa! ;)
 
References :
1.http://www.unixmen.com/install-lamp-with-1-command-in-ubuntu-1010-maverick-meerkat/ 
2. http://askubuntu.com/questions/181481/how-to-create-files-and-directorys-in-var-www
3. http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds1/chown.htm