Centos - Newbie Question (LAMP)


I'm trying to configure a server to act as internet server.  I think I've got it but I'm unable to test php because I cannot add a file to /var/www/html

All I get is an error message - " you do not have the permissions necessary to save the file"

It sounds like a simple error to fix however I'm a complete newbie when it comes to Linux (I'm talking about a days experience)

Who is Participating?
fosiul01Connect With a Mentor Commented:

are you trying to add a php page in /var/www/html directory ??
currently to create any file or edit from that directory you need root previliges

so as @Martin said, use root password ro su - command to become root.


Or Createa group suppose Developer

change the permission of the www directory from root to developer

chgrp -R Group_name Directory_name

and insert your name in that directory. so you will have permission to edit by your self
but as a new user, you should use root permission for this.
Try doing it as root.  type "su -" then enter the root password, you would have entered it when you did your install.  
andyw27Author Commented:
Can I not just change the permissions of the folder?

The choice to do this appears to be there except its all greyed out?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.