Posted by odili on January 28, 2016 at 1:56pm
I wanted to update d8 from 8.0.1 to 8.0.2, but i couldn't run the update.php due to the error "Access Denied". Am logged in as user1 which should have all required privileges.Following the drupal 8 update guide I deleted core and vendor folders with all the files in the drupal root from the the 8.0.1 install, and replaced the same files and folders from the newly downloaded 8.0.2 version.
What could be the solution to this problem?
My Environment:
OSX El Captain, nginx 1.8 using the latest config from https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/, PHP 7.0.2
| Attachment | Size |
|---|---|
| eve_dev_update_php_selection.jpg | 32.77 KB |
Comments
Check File Permissions
Verify your file permissions. It's possible when you manually replaced the files you didn't give nginx and/or php-fpm the required permissions.
No success yet at full permission
I had to give full permission just to experiment (sudo chmod -R a+w *), am running local so quite safe, but same result.
Use Perusio's config rather
Use Perusio's config rather than the flawed one from Nginx's site. Among various other improvements, it also allows for whitelisting update.php (and install.php) so you can access them from a browser.
Alternatively, use a command line tool like Drush or Drupal Console.
The Boise Drupal Guy!