Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Image Added

The message HTTP 403

...

"Forbidden"

...

when

...

accessing

...

your

...

home

...

page

...

is

...

caused

...

by

...

file

...

system

...

permissions.

...

Even

...

though

...

all

...

users

...

should

...

have

...

Read

...

permission

...

for

...

the

...

directories

...

and

...

files

...

that

...

you

...

have

...

created

...

in

...

your

...

public_html

...

directory

...

there

...

may

...

be

...

a

...

problem

...

with

...

the

...

permissions

...

depending

...

on

...

when

...

the

...

files

...

were

...

created

...

in

...

the

...

home

...

directory.

...

To

...

make

...

your

...

pages

...

visible

...

to

...

others,

...

you

...

must

...

modify

...

the

...

permissions

...

so

...

that

...

other

...

users

...

have

...

Read

...

permission

...

for

...

the

...

files

...

and

...

directories.

...

You

...

can

...

modify

...

the

...

permissions

...

either

...

on

...

a

...

Windows

...

workstation

...

or

...

in

...

a

...

Linux

...

environment.

...

When

...

done

...

correctly,

...

the

...

settings

...

made

...

in

...

the

...

Windows

...

environment

...

affect

...

also

...

the

...

new

...

files

...

that

...

you

...

have

...

created

...

in

...

the

...

public_html

...

directory

...

from

...

both

...

Windows

...

and

...

Linux

...

environmets.

...

If

...

you

...

set

...

the

...

permissions

...

in

...

a

...

Linux

...

environment,

...

you

...

must

...

set

...

them

...

right

...

every

...

time

...

you

...

create

...

new

...

files.

...

Here

...

is

...

how

...

to

...

change

...

the

...

public_html

...

folder

...

permissions

...

to

...

give

...

others

...

access

...

to

...

your

...

home

...

page.

...

On

...

a

...

Windows workstation

Image Added
 
Select your home directory in the public_html folder on the Z: drive. Right-click on the public_html folder and in the popup menu, select Properties.
 

Image Added
 
In the window that opens, select the Security tab. When the Advanced button activates, click on it.
 

Image Added
 
Next, in the window that opens, check that Everyone group has Read & execute permissions and click on the Change permissions button.
 

Image Added
 
Select bottommost check box Replace all child object permissions with inheritable permissions from this object. Click on Apply
 

Image Added
 
A window opens explaining that permissions are about to be changed in all files and folders. Accept by clicking on Yes. After that you can close all the windows. It may take a while before new permissions are effective.
 

In the Linux shell

Use SSH to connect to the shell.metropolia.fi server and run the following commands:

Code Block
 workstation

!public_html0e.png|border=1!
 
Select your home directory in the public_html folder on the Z: drive. Right-click on the public_html folder and in the popup menu, select *Properties*.
 

!public_html1e.png|border=1!
 
In the window that opens, select the *Security* tab. When the *Advanced* button activates, click on it.
 

!public_html2e.png|border=1!
 
Next, in the window that opens, check that *Everyone* group has *Read & execute* permissions and click on the *Change permissions* button.
 

!public_html3e.png|border=1!
 
Select bottommost check box *Replace all child object permissions with inheritable permissions from this object*. Click on *Apply*
 


!public_html4e.png|border=1!
 
A window opens explaining that permissions are about to be changed in all files and folders. Accept by clicking on *Yes*. After that you can close all the windows. It may take a while before new permissions are effective.
 


h2. In the Linux shell

Use SSH to connect to the shell.metropolia.fi server and run the following commands:

{code}
find ~/public_html -type d -exec chmod 755 {} \;
find ~/public_html -type f -exec chmod 644 {} \;
{code}

If

...

the

...

webpage

...

is

...

not

...

visible,

...

execute-rights

...

(error) are

...

missing

...

from

...

"Others"

...

group.

...

Execute-rights

...

must

...

be

...

both

...

in

...

public_html

...

and

...

home

...

drive

...

flders:

Code Block

 
{code}
chmod o+x ~
chmod o+x ~/public_html
{code}

The

...

above

...

code

...

should

...

fix

...

the

...

visibility

...

problems

...

and

...

make

...

your

...

webpage

...

accessible

...

again.

...

HTTP 403 Forbidden