how do i change my index.html using filezilla

January 2, 2014 2k views
I have successfully installed LAMP and connected to my droplet via Filezilla. How do i change the "It works! This is the default web page for this server. The web server software is running but no content has been added, yet." page when someone visits the site? according to filezilla there is an index.html file in folder: home/(my user) according to the forums my index.html file should be in the root directory. but when i attempt to open the root folder to place the index.html file in it it get this: Error: Directory /root: permission denied Error: Failed to retrieve directory listing
2 Answers
You need to upload your files to /var/www which is where the default index.html file is.
"according to filezilla there is an index.html file in folder: home/(my user)"

Not necessarily. It depends on how you installed Apache. Did you follow a guide? The default root directory is the one noted by Kamal.

"Error: Directory /root: permission denied"

There's your clue. The user you're logged in as does not have "write" permissions. See Linux Permissions Basics and How to Use Umask on a VPS.
by Justin Ellingwood
In this article, we will discuss how to read and manipulate Linux permissions. We will cover how to use the "umask" command to choose default permission settings, and the "chmod" command, which can change the permissions of files and directories.
Have another answer? Share your knowledge.