Pages

Thursday, September 29, 2011

To check your Ubuntu version using the command line:

1. TO CHECK UBUNTU VERSION;
  1. Open a Terminal (Applications -> Accessories -> Terminal).
  2. Type "lsb_release -a" and press Enter.
  3. The Ubuntu version will be displayed on the screen. 
2. CHANGE PERMISSION IN VAR/WWW

when you have install php in tour system in var/www/testphp.php. con't having write permission means you can do the command


If you can do this, try the following:
sudo chmod -R 777 /var/www

then do:
            sudo cp hello.php /var/www
I only recommend doing this if you know 100% that it is ok to set permissions on the whole WWW folder. By the sounds of it, you are running on your own production server as most live/shared hosting servers are setup so that the WWW folder is not in the /var folder (instead it is in the home folder of the user).
 
Be VERY careful when doing anything with the sudo prefix though, you can seriously damage your