contentacms / contenta_jsonapi

Contenta CMS, the decoupled Drupal
http://www.contentacms.org/
GNU General Public License v2.0
328 stars 104 forks source link

Unable to install manually #348

Closed hyperfocus1337 closed 5 years ago

hyperfocus1337 commented 5 years ago

Had to make all files in default directory 777 but still I'm left with following permissions issue.

The specified file core/modules/media/images/icons/no-thumbnail.png could not be moved/copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.

The specified file core/modules/media/images/icons/video.png could not be moved/copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.

The specified file core/modules/media/images/icons/audio.png could not be moved/copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.

The specified file core/modules/media/images/icons/generic.png could not be moved/copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.

Warning: mkdir(): Permission denied in Drupal\Core\File\FileSystem->mkdirCall() (line 237 of core/lib/Drupal/Core/File/FileSystem.php).
Drupal\Core\File\FileSystem->mkdirCall('/var/www/html/web/../keys', 509, , NULL) (Line: 222)
Drupal\Core\File\FileSystem->mkdir('/var/www/html/web/../keys', 509, , NULL) (Line: 114)
Drupal\simple_oauth\Service\Filesystem\Filesystem->mkdir('/var/www/html/web/../keys') (Line: 62)
_contenta_jsonapi_generate_keys(Array) (Line: 709)
install_run_task(Array, Array) (Line: 584)
install_run_tasks(Array, NULL) (Line: 125)
install_drupal(Object) (Line: 44)

It's possible to resolve this if you install contenta with composer run-script install:with-mysql but wouldn't it be nice if you could also install contenta without the script?

All contenta files were updated to latest version with composer. I'm using a Google cloud SQL instance as db.

e0ipso commented 5 years ago

The only supported installation method is the one described in http://www.contentacms.org/#install

If you step away from that path you need to know what you're doing because it's prone to be failing due to missing steps/setup.

If you find a good alternative installation method, I'd be grateful if you can add a documentation PR to the README.md in this project.

hyperfocus1337 commented 5 years ago

Edit: crazy timing, okay thanks.

Tried it again on fresh local installation, same result with new error:

6Error messages
The specified file core/modules/media/images/icons/generic.png could not be moved/copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
The specified file core/modules/media/images/icons/audio.png could not be moved/copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
The specified file core/modules/media/images/icons/video.png could not be moved/copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
The specified file core/modules/media/images/icons/no-thumbnail.png could not be moved/copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
Warning: mkdir(): Permission denied in Drupal\Core\File\FileSystem->mkdirCall() (line 237 of core/lib/Drupal/Core/File/FileSystem.php).
Drupal\Core\File\FileSystem->mkdirCall('/var/www/html/web/../keys', 509, , NULL) (Line: 222)
Drupal\Core\File\FileSystem->mkdir('/var/www/html/web/../keys', 509, , NULL) (Line: 114)
Drupal\simple_oauth\Service\Filesystem\Filesystem->mkdir('/var/www/html/web/../keys') (Line: 62)
_contenta_jsonapi_generate_keys(Array) (Line: 709)
install_run_task(Array, Array) (Line: 584)
install_run_tasks(Array, NULL) (Line: 125)
install_drupal(Object) (Line: 44)
Warning: file_put_contents(/var/www/html/web/sites/default/services.yml): failed to open stream: Permission denied in _contenta_jsonapi_enable_cors() (line 150 of profiles/contrib/contenta_jsonapi/contenta_jsonapi.profile).
_contenta_jsonapi_enable_cors(Array) (Line: 709)
install_run_task(Array, Array) (Line: 584)
install_run_tasks(Array, NULL) (Line: 125)
install_drupal(Object) (Line: 44)