alright I've got php5, apache2 and mysql5 installed now, but when I try to edit the php.ini file, it tells me it's read-only. So I went to the file and tried to change its permissions, but it told me I'm not the owner. Who is?
The Ninja Space Goat wrote:alright I've got php5, apache2 and mysql5 installed now, but when I try to edit the php.ini file, it tells me it's read-only. So I went to the file and tried to change its permissions, but it told me I'm not the owner. Who is?
how are you trying to edit the file? You need to be root to do be able to use the GUI to edit files, and by default you will be unable to log in as root. Instead, you insert "sudo" infront of your terminal line commands. Try:
Remember, Security is like top priority in Linux. Almost anything you want to do that involves the system will require root level admin rights. And make sure the as soon as you are done handling the root level work that you
The first time you do that it asks for a password, subsequent times in the same session do not require a password.
If you really wanted to, you could change the permissions of the webroot too. I always use virtual hosts and make directories under /srv/www/<website> anyway.
for right now, how do you change the permissions to the webroot? I just spent about 30 minutes trying to set up a virtual host and now I'm just annoyed and getting impatient. I'll have to figure that out another time.
IIRC ubuntu creates a group for each user the same as their login name.
As your own user: sudo chown nickvd.nickvd files
(sudo: SuperUser DO)
Do that as recursive by using the "-R" flag.
You can also create a new group called something like "webmasters" and give that group write permissions to the webroot, then add yourself to the group:
Another thing you can do too Ninja is get help at the MAN pages by using the 'man' command in conjunction with your command you want information on. And I know on RedHat, I can type the command followed by '--help' to get some more information on that command as well.
Another thing you can do too Ninja is get help at the MAN pages by using the 'man' command in conjunction with your command you want information on. And I know on RedHat, I can type the command followed by '--help' to get some more information on that command as well.
Colons and dots work fine. --help, -h and just ignoring passing any arguments are common ways to work out how to do things
I will say this: Understanding user permissions, groups and how processes need to run under a certain userid is a fairly big part of understanding your linux system and troubleshooting potential problems.
yea and one of the biggest reasons for making the switch is to learn all about linux so that when we get a linux box at my work and start hosting our own site, I will know how to administrate it (or at least help administrate it). I should probably learn these things, but for now I need to work on some php stuff so I need to have read/write access to the files and I need to do it the easy way. I fully intend on learning as much as possible about linux and ubuntu, and I thank you guys for being so helpful
Although right now linux is strange and difficult for me, I am really enjoying learning about it and I really like it so far.