Post by Kemo2018 » Thu Dec 13, 2018 6:46 am

Hello

Why I can't go to modifications page which contain refresh button, every time it shows me " 403 Forbidden nginx/1.14.0", Chmod is 644

this page worked perfectly but since 2 months I can't open it, I'm on a freehost server, I think the server admin didn't ban this page.

also I tried to re-upload the file public_html/admin/controller/marketplace/modification.php, but still shows the 403 error, I also tried a fresh install copy.
I'm using 3.0.2.0 (Arabic codlance)

the page url is like : http://www.mysite.com/admin/index.php?r ... _token=xyz

please help

Newbie

Posts

Joined
Thu Mar 29, 2018 6:30 am

Post by xxvirusxx » Thu Dec 13, 2018 4:49 pm

Maybe storage folder doesn't have 0777 permision.

Opencart 3.0.2.0 with bugs fixed | Free extensions


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by Kemo2018 » Thu Dec 13, 2018 9:24 pm

xxvirusxx wrote:
Thu Dec 13, 2018 4:49 pm
Maybe storage folder doesn't have 0777 permision.
Yes, I found that storage folder chmod is 0755, so I set it to 0777 but the 403 error still appears on that page.

is there any other solution?

Newbie

Posts

Joined
Thu Mar 29, 2018 6:30 am

Post by OSWorX » Sat Dec 22, 2018 4:38 pm

One of the must stupid advices in the whole Internet and especially here, is to set permissions on folders to 0777

Why?
Because these permissions opens every door any scriptkiddy and hacker wants!

What are the correct permissions?
Folders: 0755 (or 0750)
Files: 0644 (or 0640)
(or depends on the provider, some of them require that).

Regarding the response code 403 here: I would assume that you are not the owner of that file.
What is that?
Simply read here more about permissions and ownership:
https://nginxlibrary.com/403-forbidden-error/

Forum Rules [en]: viewtopic.php?f=176&t=200480
Forumregeln [de]: viewtopic.php?f=37&t=114208
Commercial Request: viewforum.php?f=88

Image


User avatar
Expert Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Kemo2018 » Tue Jan 15, 2019 3:47 am

OSWorX wrote:
Sat Dec 22, 2018 4:38 pm
One of the must stupid advices in the whole Internet and especially here, is to set permissions on folders to 0777

Why?
Because these permissions opens every door any scriptkiddy and hacker wants!

What are the correct permissions?
Folders: 0755 (or 0750)
Files: 0644 (or 0640)
(or depends on the provider, some of them require that).

Regarding the response code 403 here: I would assume that you are not the owner of that file.
What is that?
Simply read here more about permissions and ownership:
https://nginxlibrary.com/403-forbidden-error/
So, for which file should I check the permissions to solve the modifications page 403 error??

Newbie

Posts

Joined
Thu Mar 29, 2018 6:30 am

Post by Kemo2018 » Tue Jan 15, 2019 4:18 am

Hello,

I've found that my server blocks this path "marketplace/modification", is there any way to rename the modification page in Admin control panel? or run the refresh cash with codes?

I've tried a lot of refresh extensions but failed

Thank you

Newbie

Posts

Joined
Thu Mar 29, 2018 6:30 am

Post by xxvirusxx » Wed Jan 16, 2019 6:21 pm

OSWorX wrote:
Sat Dec 22, 2018 4:38 pm
One of the must stupid advices in the whole Internet and especially here, is to set permissions on folders to 0777

Why?
Because these permissions opens every door any scriptkiddy and hacker wants!
If you see the function....
image, download, upload,cache,logs,modification will have 0777 chmod...

Code: Select all

function dir_permissions() {
	$dirs = array(
		DIR_OPENCART . 'image/',
		DIR_OPENCART . 'system/storage/download/',
		DIR_OPENCART . 'system/storage/upload/',
		DIR_OPENCART . 'system/storage/cache/',
		DIR_OPENCART . 'system/storage/logs/',
		DIR_OPENCART . 'system/storage/modification/',
	);
	exec('chmod o+w -R ' . implode(' ', $dirs));
}
And modification folder does'n mean all folders as you said...

Opencart 3.0.2.0 with bugs fixed | Free extensions


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Who is online

Users browsing this forum: No registered users and 4 guests