Welcome Guest, Not a member yet? Register   Sign In
Automatic assignment of 0777 access permissions

You can use the module installer from the Yii framework to copy files and set access permissions to files and directories. It is well suited for this task, for it is an independent package that does not require the Yii framework, nor any other libraries.

Example of composer.json configuration:

PHP Code:
"require": {
"scripts": {
   "post-create-project-cmd": [
"extra": {
   "yii\\composer\\Installer::postCreateProject": {
       "copyFiles": [
       "setPermission": [

Read more

Basic App, an open source simple CMS based on CodeIgniter 4

I think 0755 is more appropriate.

Most hosting will set the root to html or public_html to 0755

Also not sure is the composer will cause an error but all permission must be
in octal format not strings. Strings will throw an error.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB