• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 349
  • Last Modified:

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.
0
andyw27
Asked:
andyw27
1 Solution
 
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
 
fosiul01Commented:
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

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now