[Ubuntu-BD] php5 on ubuntu
maSnun
masnun at gmail.com
Wed Aug 5 14:34:21 BST 2009
Addition to my last problem:
I can su root and restart the apache2 like this:
masnun at ubuntu:~$ su root
Password:
root at ubuntu:/home/masnun# /etc/init.d/apache2 restart
* Restarting web server
apache2 ...
waiting [ OK ]
root at 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 <nasim.haque at gmail.com> wrote:
> 2009/8/5 maSnun <masnun at gmail.com>:
> > 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
> ubuntu-bd at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
>
More information about the ubuntu-bd
mailing list