Addition to my last problem: I can su root and restart the apache2 like this:
mas...@ubuntu:~$ su root Password: r...@ubuntu:/home/masnun# /etc/init.d/apache2 restart * Restarting web server apache2 ... waiting [ OK ] r...@ubuntu:/home/masnun# But I could run apache2 from my own account when I first installed it. -- Abu Ashraf Masnun Grad Student, BBA, Khulna University. http://masnun.com On Wed, Aug 5, 2009 at 9:13 AM, Nasimul Haque <[email protected]> wrote: > 2009/8/5 maSnun <[email protected]>: > > Thanks. But when I try to remove or add any files to the /var/www > directory, > > I am informed that I don't have enough permission. What should I do ? > > > > Because, the folder is outside of your home. And you do not have file > permissions outside your home. For developing purpose, you can change > the ownership of /var/www/ to yourself. To do that, you need run this > command: > > sudo chown USERNAME:USERGROUP /var/www/ > > where USERNAME and USERGROUP both should be yours. > > But this fix is for development only. In production server, do not do this. > > -- > M. Nasimul Haque, M.Sc.(SUST) > Wessex Institute of Technology > Southampton, UK > > -- > Ubuntu Bangladesh | http://ubuntu-bd.org > [email protected] > https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd > -- Ubuntu Bangladesh | http://ubuntu-bd.org [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
