Missing /var/www directory
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
I created an CentOS 7 EC2 instance on AWS and installed nginx as my web server. However unlike Apache, it has not created a /var/www folder and instead created /usr/share/nginx/html.
I'd prefer to upload my website files to /var/www. While I have some experience with the Linux terminal (I am primarily a Windows developer), I'd like to know what is the right way in creating the /var/www folder for a PHP website (Yii2 Framework).
I did use mkdir, but Filezilla gets a permission denied error when uploading files and creating sub-directories. I can do chown on the directory, but I am not sure whether that is secure or the right thing to do. What permissions would I set the folder?
centos permissions nginx webserver
New contributor
add a comment |Â
up vote
-1
down vote
favorite
I created an CentOS 7 EC2 instance on AWS and installed nginx as my web server. However unlike Apache, it has not created a /var/www folder and instead created /usr/share/nginx/html.
I'd prefer to upload my website files to /var/www. While I have some experience with the Linux terminal (I am primarily a Windows developer), I'd like to know what is the right way in creating the /var/www folder for a PHP website (Yii2 Framework).
I did use mkdir, but Filezilla gets a permission denied error when uploading files and creating sub-directories. I can do chown on the directory, but I am not sure whether that is secure or the right thing to do. What permissions would I set the folder?
centos permissions nginx webserver
New contributor
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I created an CentOS 7 EC2 instance on AWS and installed nginx as my web server. However unlike Apache, it has not created a /var/www folder and instead created /usr/share/nginx/html.
I'd prefer to upload my website files to /var/www. While I have some experience with the Linux terminal (I am primarily a Windows developer), I'd like to know what is the right way in creating the /var/www folder for a PHP website (Yii2 Framework).
I did use mkdir, but Filezilla gets a permission denied error when uploading files and creating sub-directories. I can do chown on the directory, but I am not sure whether that is secure or the right thing to do. What permissions would I set the folder?
centos permissions nginx webserver
New contributor
I created an CentOS 7 EC2 instance on AWS and installed nginx as my web server. However unlike Apache, it has not created a /var/www folder and instead created /usr/share/nginx/html.
I'd prefer to upload my website files to /var/www. While I have some experience with the Linux terminal (I am primarily a Windows developer), I'd like to know what is the right way in creating the /var/www folder for a PHP website (Yii2 Framework).
I did use mkdir, but Filezilla gets a permission denied error when uploading files and creating sub-directories. I can do chown on the directory, but I am not sure whether that is secure or the right thing to do. What permissions would I set the folder?
centos permissions nginx webserver
centos permissions nginx webserver
New contributor
New contributor
New contributor
asked 9 mins ago
Shahid Thaika
991
991
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Shahid Thaika is a new contributor. Be nice, and check out our Code of Conduct.
Shahid Thaika is a new contributor. Be nice, and check out our Code of Conduct.
Shahid Thaika is a new contributor. Be nice, and check out our Code of Conduct.
Shahid Thaika is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478753%2fmissing-var-www-directory%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password