Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [drupal]

Drupal is an open-source, database-backed CMS written in PHP. It is maintained and supported by a worldwide community. Questions about installing and maintaining Drupal belong on Drupal.SE

0
votes
0answers
13 views

Cannot add a domain to existing drupal 7 site

Sorry in advance if this is a dumb question, I can't seem to figure out how to add a domain name to a D7 site, (currently using an IP). The website is hosted on digitalocean, the new domain is from ...
0
votes
0answers
14 views

How to diagnose: Ubuntu 16.04 error 403 forbidden in response to GET from updates.drupal.org

None of the 3 Drupal websites on this server are able to show available updates. Error message is: GuzzleHttp\Exception\ClientException: Client error: GET http://updates.drupal.org/release-...
-1
votes
1answer
42 views

My Nginx server is not working

I have an Apache server on Ubunu 18.04 with a Drupal 8 site that I want to migrate to Nginx and PHP7.3-FPM. This is the only site on the server. I do not know Nginx at all. The site works with Apache ...
0
votes
1answer
13 views

Varnish default.vcl to cover both Drupal and a simple regular website

I have a simple PHP index file website that changes color if refreshed on port 8080, but correctly shows the cached version of the page with the same color thanks to the following default.vcl: ...
0
votes
0answers
11 views

Home link on Drupal site on Apache virtualhost

I have a Drupal site, and I have configured Apache to let me write 'localhost/SITENAME' in the browser when the site is in /Users/USERNAME/Sites My site folder is called practice. I also configured ...
1
vote
0answers
19 views

Drupal / nginx redirect domain without changing URL with proxy_pass

We have a Drupal 8 website which runs about 18 languages, but only the Chinese one has a separate domain. We want this domain, which for testing purposes is testchinese.com to redirect in the ...
0
votes
2answers
551 views

Client denied by server configuration on Apache 2.4

We have migrated multiple Drupal 7 / 8 sites to a new stack, where the main changes were replacing Apache 2.2 and FastCGI with Apache 2.4 and PHP-FPM. We have the following error on multiple sites: [...
1
vote
1answer
78 views

drupal and remote database

I get error "Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '192.168.0.20' (13)." while installing drupal. ...
0
votes
1answer
66 views

How can I configure sites like subfolder on nginx?

I want to configure 3 sites on nginx (Drupal sites) www.domain.com == served in ==> /var/www/domain.com/ www.domain.com/folder01/ == served in ==> /var/www/folder01/ www....
0
votes
0answers
77 views

CICD drupal website

I have ansible scripts which will install the Drupal. On the other hand, I have a website for which the database is pushed onto bitbucket. How can I perform CICD with these? My automation scripts ...
1
vote
0answers
111 views

leader_only is not working in Elastic Beanstalk

We are doing CI/CD for drupal site using Jenkins. Now, we need to run drush commands which we should run only in single instance. For this, we have created elastic beanstalk config script with ...
1
vote
0answers
41 views

Add a fake subdirectory to uri

When installing drupal 8 with composer, the default installation moves to the subdirectory /web. When visiting the root at http://example.com apache 2.3 serves a 403, but when visiting http://example....
0
votes
3answers
184 views

Ansible playbook errors for installing Drupal

Please help in resolving the errors for the below playbook. There are few other playbooks and all that's for setting up Drupal. The below playbook is part of that setup which is throwing error. --...
0
votes
1answer
357 views

Nginx with php-fpm url encoding

I have also posted my question in Stackoverflow but i think here is more appropriate place to ask. I use docker and i have setup a nginx container with nginx 1.12.2, a php-fpm container with 5.6.33 ...
1
vote
1answer
44 views

How to configure .htaccess to bypass specific subdirectories?

I have three directories, Dir1,Dir2 & Dir3 in the root of my Drupal installation. I want to bypass these directories. I have tried the below in .htaccess and its not working (Allowing ...
0
votes
1answer
75 views

Zabbix - monitoring version numbers of software on a server (Drupal websites)

I have a web server that is running the Zabbix Agent (3.4.x), reporting the normal stuff back to a Zabbix Server. The web server runs a number of websites based on common software (Drupal, Magento etc)...
0
votes
1answer
55 views

Site hacked, need help to look for clues about how it happened [duplicate]

i recognized a successful hacking attempt where someone managed somehow to modify a file under my drupal installation and to inject javascript code the file that was hacked was :jquery-1.9.1.min.js ...
-1
votes
1answer
70 views

Is it safe to give ownership of files to “daemon”?

I was having trouble uploading files using my CMS (Drupal). When I put more restrictive file permissions on, I could not upload anything. Then I changed the owner of the upload directory and all sub-...
0
votes
1answer
178 views

MySQL account has password, but only logs in without it

I am running Windows Server 2012 R2 trying to host a Drupal site. Because it is Drupal, I am trying to connect to a MySQL server rather than a MSSQL server. I created a new schema as well as a new ...
1
vote
1answer
28 views

Civicrm - Add SPF Record, All Emails are going to spam,

All of my civicrm email's are going to spam. do i have to add SPF records for it? and if yes what it would be? For more details: https://www.screencast.com/t/hG2xCuBuE
1
vote
1answer
190 views

Apache rewrite mod breaking apache

I am setting up Drupal Open Atrium, and halfway through the configuration receive an error: Clean Urls must be available and enabled to use OpenAtrium. https://www.drupal.org/docs/7/configuring-...
0
votes
2answers
318 views

Possible SQL Injection and malformed URLs on Drupal Server

We have a Production Drupal server serving content but some pages are broken when a pager link is clicked upon. It was found that the URL's are being changed with unrecognizable keywords. For example, ...
2
votes
1answer
830 views

NGINX + Drupal installed in subfolder on linux server

I'm trying to configure the server like this have this accessible addresses: domain.com/webmail (webmail app) domain.com/app (node.js app) domain.com/mailadmin (mail administration app) domain.com/...
0
votes
1answer
116 views

Performance issue on drupal

I am running a drupal 7 website on a Linux server (with 4 cores and 12GB RAM) with LEMP (nginx+php5-fpm+mysql). The drupal installation has a large number of modules enabled(all of which are needed). ...
0
votes
0answers
348 views

Directory Index forbidden on sites/default/files - Drupal NGINX

We noticed this error when users filled up forms on our Drupal site, attached an image and saved it. To identify the root cause (I expected it to be an ownership or a directory permission issue). I ...
0
votes
1answer
727 views

Integrating Web Application Firewall into this architecture

I need some help figuring out how to implement a Web Application Firewall (WAF) in my existing architecture. Currently I have 2 HAproxy servers clustered using keepalived which are responsible for ...
0
votes
0answers
273 views

Drupal on Apache: Consecutive PHP errors “Maximum execution time of 240 seconds exeeded”

This Apache/MySQL server (Debian 8) running a Drupal site shows a strange behaviour: There's always one Apache process running with 100% CPU utilization (according to htop). Every four minutes (~240 ...
0
votes
1answer
145 views

Where to place the .htaccess file on OpenShift for Drupal?

I would like to redirect to https and add this code to a .htaccess file for Drupal. Where should I place this file? RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www.domainname\.com* ...
0
votes
1answer
238 views

Drupal 8.0.5 and FreeBSD 10.2 Issues

I am running a FreeBSD 10.2 server with Apache 2.4.18, php56-, and SQL 57. I am trying to install Drupal 8.0.5, but I am stuck. I got the PHP stuff working, as well as the clean URL things that drupal ...
0
votes
1answer
64 views

How to show/include originating domain/application in Postfix logs

I have a server which hosts a number of applications mostly built with Drupal. These applications are configured to send mails and Postfix is my MTA. Is it possible to have the applications and/or ...
0
votes
1answer
55 views

Trying to get property of non-object in advagg_font_admin_settings_form()

I enabled the module Advanced CSS/JS Aggregation (advagg) 7.x-2.17 on Drupal 7 and now in my admin page admin/config/development/performance/advagg/font I see a warning: Trying to get property of non-...
2
votes
1answer
820 views

index.php 403 in Drupal on centos 7 with SELinux enabled [duplicate]

i tried to install drupal on centos, i have configure my server (install httpd, mysql, php, etc) everything looks good until the last part: hit the url to install drupal the problem here is once i ...
0
votes
1answer
467 views

Nginx limit_conn inheritance

I am trying to protect Drupal running on Nginx from simple DDoS with limit_conn and limit_req. But I encountered some strange behavior with inheritance of limit_conn directive which I cannot explain. ...
1
vote
0answers
135 views

Drupal multi-site, virtual hosts and CloudFlare

I'm hoping that someone with some experience with CloudFlare can lend me some guidance. Background Drupal multi-site hosting 200+ sites, launching new sites on a regular basis. Single IP for all ...
0
votes
1answer
429 views

Should I use Drupal with Nginx or Apache? [closed]

I'm currently running my own built server, where I host my own coded website, as well as websites I have built for local businesses. Currently it's running Ubuntu server edition, with Nginx. I already ...
0
votes
1answer
231 views

How to resize a root persistent disk of a Drupal/Debian instance on Google Compute Engine

It's about a Drupal 7 site running on a debian 7 virtual machine instance on Google Compute Engine, deployed by this tutoriel Actually noting is running because boot/root disk full, MySQL crash ... ...
1
vote
2answers
70 views

How do I change the username nginx/PHP creates files as

Is there a way in which nginx/php can be configured so it creates files with a specific user. For example when a drupal/wordpress site uploads a file the user is assigned like: john:www-data nginx....
0
votes
0answers
26 views

Prevent Drupal modules listing

Is there any way to prevent drupal modules to be enumerated by eventual attackers accessing know file locations ie: http://mysyte.io/sites/all/modules/extlink/README.txt
0
votes
1answer
315 views

Server denied check_authentication after migration of Drupal

I just moved a drupal website from one server to another. On the original server the site was set up directly in apache. On the new server, i have a docker layer in between: The machine runs a debian ...
0
votes
0answers
62 views

apache refuses to start when apc.shm_size is greater than 76M

I'm just setting up a new faster server for our Drupal site and was setting up APC and tried to set the apc.shm_size up to 128M however after restarting apache and reloading the APC Admin page Apache ...
0
votes
0answers
195 views

How do I accomplish Drupal “double gzip” prevention in Nginx?

There is this section of the default .htaccess that Drupal ships with: # Serve correct content types, and prevent mod_deflate double gzip. RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1] ...
3
votes
1answer
4k views

NGINX cache error: conflicts with already declared size 0 in /etc/nginx/nginx.conf

My current nginx for drupal config gives following error. Somehow, I am not able to enable nginx cache. Tried different config but overtime i get the same error. Can anyone help please? nginx: [emerg]...
1
vote
1answer
193 views

ansible cannot download git repo on centos 7

I have this in my drupal roles to download drupal git --- - name: Install git yum: name=git state=latest - name: Clone Drupal git: repo=http://git.drupal.org/project/drupal.git dest=/var/...
1
vote
1answer
48 views

Drupal application load troubleshooting

I'm receiving some sporadic high server load on a Drupal application (really high. 8 cores, load average of 50). The load is normally sitting between 5-10. The Drupal application sits behind a ...
0
votes
1answer
464 views

Should Varnish Hits Touch PHP?

I have a reasonably large Drupal site sitting being Varnish on a box with 4GB of memory. I had thought (hoped? assumed?) that standing Varnish up in front of Nginx/PHP-FPM would take the load off of ...
4
votes
1answer
5k views

nginx - deny all *.php requests except index.php for security reasons

os: CentOS 7 nginx: 1.6.2 httpd: apache 2.4.6 cms: Drupal 7 After my server was compromised I removed all from server, reinstalled OS and soft, and restored data from backup. Now I configure all ...
3
votes
1answer
874 views

Determine if possible successful probe is successful exploit?

A logwatch report outputted the following message. A total of 1 possible successful probes were detected (the following URLs contain strings that match one or more of a listing of strings that ...
0
votes
1answer
1k views

Drupal 7 Multi-site Sub-folders nginx configuration

I'm using perusio configuration for drupal but I think that is only designed for single web site. php does not work in subfolders. I want to create a structure as follows: Main site /var/www/...
2
votes
1answer
403 views

Secure permissions setup for Drupal website with multiple maintainers

For several Drupal sites a colleague of mine and I (for demonstration purposes alice and bob) are responsible for maintaining these installations. We both have an SSH account to log into the server (...
0
votes
1answer
43 views

how to allow nginx to allow /forum

so we have a nginx and drupal site and the the folder structure looks like this /my_site [ drupal site root] /mysite/index.php [ drupal main index file] /my_site/forum [ I created this folder ...