Centos - Newbie Question (LAMP)

Hello,

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)

Thanks.
andyw27Asked:
Who is Participating?
 
fosiul01Connect With a Mentor Commented:
Hi

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

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.
0
 
martin_2110Commented:
Try doing it as root.  type "su -" then enter the root password, you would have entered it when you did your install.  
0
 
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?
0
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.