See your server root is pointed to the folder /var/www by default. So you have to save your programs in /var/www. But There is a problem, you can't write in to the folder /var/www as ordinary user, it needs root privilege . (I am using gksu for solving this proble, it will ask for your sudo password)