DRUPAL: Difficulty Backup and Restore

0

I am new to using Drupal CMS and am having a difficulty regarding backup restore. I created a new server to restore the backup I do manually (dump Postgres and copy the directory inside apache).

The server is an ORACLE Linux 7.3, APACHE 2, Postgres and drupal

I usually backup and can restore, but the following message appears when I open the site, which loads normally.

  

Warning: chmod (): Permission denied in event_css_add () (line 272 from   /var/www/html/com9dn/sites/all/modules/event_calendar_colors/event_calendar_colors.module)

I can not use this module, and I can not install any modules anymore.

I've manually set the permissions on the original server and nothing has changed.

    
asked by anonymous 10.07.2017 / 19:41

1 answer

0

The problem is not related to the database, but to the file system.

What happens is that the module is trying to change the permissions of the event_calendar_colors folder that is inside the Drupal public folder.

If you have not customized your public files directory it should be:

/var/www/html/com9dn/sites/default/files

In this directory there should be a folder called "event_calendar_colors" or another files folder with "event_calendar_colors" inside it.

Change the permissions of this folder so that Drupal takes control of it (this is what the module is trying to do). The module is giving 755 permissions, but it is trying to write to the folder, which means that it assumes the folder belongs to the Apache user. Assign the folder to the apache user with the command:

chown apache:apache /var/www/html/com9dn/sites/default/files/ -R

So Drupal takes control of the entire "files" folder. You'll need it anyway ...

Note: I'm assuming that the user Apache is using is apache , that you're using Drupal7 and that you have not changed the settings for your public folder.

    
11.08.2018 / 16:07