451
Developer's Corner / Re: if(file_exists..) is Failing!
« Last post by Shades on April 08, 2019, 10:24 PM »That is most likely a Linux server that hosts your website. As a backup for my locally running web server, I have a another domain hosted in a different continent. But access to that site is not managed by cPanel. In that web GUI interface it is pretty easy to alter access rights for files/folders. But with cPanel I don't know if you have the same functionality. If not, you could try to setup a Putty session to your web-server and use:
CHMOD /R 775 /the.exact.folder.path.on.your.hosted.server.which.is.case.sensitive (on a shared host server it can be a very different path than you expect from the onset)
- CHMOD name of the command to alter access rights of files and/or folders on Linux.
- /R recursive. All sub folders below the folder you want to alter are altered as well.
- 775 That code indicates the root account has complete access.
The user groups you assign to this folder have complete access as well (the user group linked to the web server software is one of these groups).
All other users can read and execute files in the folder you select. This is a good value during development, but not if you serve your website to the public.
Afterwards you should change from 775 to 755 and check if your website still works as you intended. It should work and if it doesn't, revise your code until it does.
Be very careful with this line, it is very easy to open up your website too much and that is something you really don't want to do.
CHMOD /R 775 /the.exact.folder.path.on.your.hosted.server.which.is.case.sensitive (on a shared host server it can be a very different path than you expect from the onset)
- CHMOD name of the command to alter access rights of files and/or folders on Linux.
- /R recursive. All sub folders below the folder you want to alter are altered as well.
- 775 That code indicates the root account has complete access.
The user groups you assign to this folder have complete access as well (the user group linked to the web server software is one of these groups).
All other users can read and execute files in the folder you select. This is a good value during development, but not if you serve your website to the public.
Afterwards you should change from 775 to 755 and check if your website still works as you intended. It should work and if it doesn't, revise your code until it does.
Be very careful with this line, it is very easy to open up your website too much and that is something you really don't want to do.

Recent Posts