Stack Exchange Network

Stack Exchange network consists of 174 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

The Apache HTTP Server, commonly referred to as Apache, is an open-source HTTP server for modern operating systems.

-1
votes
0answers
35 views

Issues with htaccess redirects [on hold]

I have recently upgraded my website from http to https protocol. I have added the following code to my .htaccess file to redirect all http traffic to https on my website. RewriteEngine On ...
1
vote
0answers
17 views

How to use wildcard search in apache solr search module?

I am working on apachesolr search module. I want to implement wildcard search I have used hook_apachesolr_query_prepare() function to modify apachesolr query but it is not working can any one give ...
1
vote
1answer
59 views

ERR_EMPTY_RESPONSE during installation with PHP 7.3

I'm trying to install Drupal 8 with PHP version 7.3.0RC4. When I go to http://localhost it redirects me to http://localhost/core/install.php with the empty response error. I checked the Apache error ...
0
votes
0answers
56 views

htaccess for Angular app in a subfolder

I have an Angular 6 app living in a subfolder on a D8 installation. I have no issues navigating to the app and the angular routing doing it's thing as I navigate the app. My issues is I get a Drupal ...
0
votes
0answers
11 views

Apache solr search suggestion result return empty

I am working on drupal 7 in this we have installed apche solr and apche solr autocomplete suggestion module. In my site node titles data are websites name (like amzen.com, google.com, qtern-hcp.com"). ...
0
votes
1answer
10 views

500 error on one page in entire site only showing error “You are here” instead of administration content

this error seems to only affect one page in on the website, and nowhere else. Here is what it looks like: The watchdog reports do not show the issue, and I believe it to be a permission error or ...
0
votes
1answer
38 views

How to get drupal to remove /drupal/ from all the links on the website

I first ran the install.php when drupal was reachable as example.org/drupal/, then later I changed the Apache configuration to make it into a virtual host. Now that I can reach the site at example....
0
votes
0answers
55 views

Drupal 7 AJAX not working on entire site

Images upload, Views Submit (Ex. Global: Text area, edit fields in Views) are not working in my Drupal 7 website. Here is the access log I found from Apache; 127.0.0.1 - - [19/Jul/2018:12:46:51 +...
0
votes
0answers
23 views

www.homepage.com/sites/ loads a 403 error and we want to redirect to 'page not found'

We are trying to tighten up our homepage drupal 7 installation and our SEO partner informed us that some subdirectories are showing up in our stats where they shouldn't be. At present, homepage.com/...
1
vote
1answer
23 views

How to configure my local Drupal site to contact my local Apache Solr server?

I installed Apache Solr server on my local machine and installed the Apache Solr Search module on my Drupal 7 site. When I configure the module and click submit an error message appears: Your site ...
1
vote
0answers
21 views

Page not found errors for images

The site becomes painfully slow at times and when I look into "Recent Log Mesaages" logs such as this is frequently found. The Location shows: http://example.com/sites/default/files/styles/featured/...
0
votes
1answer
235 views

“Page not found” or “Forbidden” when submitting form Is it a problem with Apache?

I have some reseller hosting and I am running Drupal 7 sites on several different accounts there. I recently noticed a problem when updating one of them. It happens when I am editing content or ...
0
votes
1answer
63 views

Configuring drupal in a virtual directory

I am running drupal using apache on redhat linux. Currently drupal is running at the root of the apache site. However, I want to put drupal in a sub-directory/virtual folder, because it's possible ...
1
vote
1answer
171 views

Products containing a hyphen or numbers not shown or wrong relevance

I have an external Apache Solr Server, with Search API and Search API Views. When we search for ordinary products, they are shown correctly, with the correct descending relevance order. When we ...
0
votes
1answer
19 views

How to install new drupal packages on local apache server [closed]

I have a drupal site set up on a local mysql and a local apache server. I am trying to install a new module the problem is it brings me to the login for server ftp. I'm not sure what credentials it ...
0
votes
0answers
83 views

Drupal 7 Apache Solr : Permission denied, Indexing is failing

Hi Am facing Permission denied error on server but not on my local machine, Code base and database and apache solr is exactly same. I checked the permission for Index folder, its drwxr-xr-x Edit 1:...
1
vote
0answers
362 views

Leverage browser caching

I'm trying to leverage the browser cache for my Drupal 8 site. I saw many posts regarding it, but whenever I edit the .htaccess file, there is still no difference in testing. This is my code right now....
3
votes
2answers
664 views

error 500: Premature end of script headers: index.php

Everything works except the /node/[nr]/edit page of only one content type page. And it's not for every page of this specific content type. Only one. So let's say I have a content type "product" and ...
-1
votes
1answer
696 views

Ajax submission leads to => An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 MB) that this server supports

So i'm trying to submit a form using ajax, in my form i have the following: $form['actions']['#type'] = 'actions'; $form['actions']['submit'] = array( '#type' => 'submit', ...
0
votes
1answer
52 views

Drupal configuration on non root url (how to change $base_url)?

sorry for my english, I'm french ok, that's I want to do is to install my drupal site on a url like : www.mymachine.fr/mydrupal/ and the problem is that when I go this url, he dispatch me to www....
0
votes
1answer
180 views

Cannot Login After Drupal 7 migration

Sorry, unrecognized username or password. Have you forgotten your password? The error above shows even though I have inputted correct credentials in my site(192.168.5.141/doc_monitor). Below are the ...
1
vote
1answer
58 views

When setting up the Drupal 7 database (mySql/mariadb) what database user accounts should be created?

When installing the database (mariadb) for use with Drupal 7 on Centos 7, what database admin and user accounts should be created and with what permissions? Do specific directory permissions or file ...
0
votes
1answer
179 views

The web service endpoint returned a “HTTP/1.1 403 Forbidden” response

There are 12 or so similar questions but not drupal related. Here is my site on a digitalocean droplet: http://104.236.27.226/ It is apache2 on ubuntu16 php7. I am using: 000-default.conf: ...
0
votes
1answer
2k views

Too many redirects error with https and domain access module

I'm redirecting traffic for my various domains to HTTPS. Things seem to work fine on my local, but when I deploy to my production site I get the "www.mysite.cn redirected you too many times." error. I'...
0
votes
1answer
450 views

Did anyone have success in configuring Mod security?

I am trying to set up Mod security (the Apache module) for my Drupal site, but it affects basic Drupal functionalities like node submission, module enable/disable and people permission submissions etc....
0
votes
1answer
40 views

How to have two domains for same site, but site working in directory in second domain

Example: www.domain1.com -> Drupal site in root dir (Managed by Apache) www.domain2.com/usa -> Drupal site of domain1.com (Managed by Nginx) The idea is that www.domain2.com/<countrycode&...
-2
votes
1answer
35 views

Problems with Drupal 7.55 Apache2 Subdomain Virtual Host no CSS

Setting up a fresh Drupal install in the domain root example.com works fine. Removing that and using a copy of the default virtualhost config file for a new virtual host site.example.com with a ...
4
votes
1answer
2k views

Index.php prompts to download instead of executing

I am running into a issue where I am trying to load up my Drupal site, but instead of going to the main page, it instead prompts to download / save the file. I know that my PHP is active and I can't ...
0
votes
1answer
74 views

Multisite: Only Drupal Root recognized for subpath

I am having a Drupal 8 multisite installation: Hostname: example.com 1st Drupal site: in example.com 2nd Drupal site: in example.com/sub/path I have configured this in sites.php: $sites['example....
3
votes
1answer
335 views

What should I set my Content-Security-Policy to on Drupal 8?

I'm using Drupal 8, and I currently use Header always set Content-Security-Policy "default-src 'self'; nosniff" However, this causes bugs, such as Google Analytics not working and the textbox ...
-1
votes
1answer
351 views

404 and 403 Errors after site migration

I have migrated a site from one server to another and the page just refuses to work. I have all modules enabled as on the old server, .htaccess is present in the root folder yet when i access the ...
0
votes
1answer
23 views

Drush up caused httpd process bloom

I ran drush up -n to see what updates were available on the production site and watched in horror as the number of httpd processes increased to several hundred and the server load began to approach ...
5
votes
2answers
3k views

How to prevent executing .php files in sites/default/files directory for nginx+php7.0-fpm?

URL to Drupal.org article Preventing execution of untrusted PHP By default .htaccess inside sites/default/files contains: <IfModule mod_php5.c> php_flag engine off </IfModule> Adding ...
0
votes
0answers
76 views

How to get CLEAN URL's to work?

I have apache running and setup correctly. I have mod_rewrite on in both apache and in my .htaccess file, yet clean urls refuse to work for my site. How can I fix this issue??? My .htaccess file. # #...
5
votes
1answer
410 views

Understanding how SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 works?

I understand that the files directory requires this in the .htaccess file: SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 I know it prevents PHP from running in the files directory, but ...
0
votes
1answer
233 views

SA-CORE-2013-003 - Files directory Not fully protected

I'm using Pressflow 6.38 and I'm trying to implement SA-CORE-2013-003 - Drupal core - Multiple vulnerabilities | Drupal.org inside of /etc/httpd/conf.d/pressflow.conf configuration file, like ...
0
votes
1answer
333 views

Why are all files (except index.php) being redirected to 'index.html'

We have a Drupal 7 Drupal Commerce site that we've just moved to our virtual private apache server, however we're seeing very strange behaviour that's making the site not work. We're getting a ...
0
votes
1answer
177 views

Clean URL regarding admin/* paths return 503 Service unavailable

I'm facing a weird problem in which all clean urls of admin pages such as admin/dashboard return 503 notice. However, by changing url to non clean i.e. ?q=admin/dashboard it works. All other content ...
0
votes
1answer
42 views

Site won't display after logging in

OK, so I have a weird one that I have never seen before. I have about 15 Drupal sites setup locally that are all running fine. I am attempting to setup a new one that I am setting up from a Drush ...
1
vote
0answers
73 views

Views URL GET Query exceeding apache2 maximum limit

I am building a views based report that allows selection of fields using views dynamic fields [https://www.drupal.org/project/views_dynamic_fields]. The view also has more than 15 filters for ...
1
vote
1answer
1k views

Kernel error after setting up the site [closed]

I have realized that my Drupal Clean URLs didn't work because my .htaccess file was in ...drupal/sites/default/files directory and after copying it to .../drupal directory, now the .htaccess file is ...
2
votes
1answer
50 views

Need to alter response headers for error pages

We have Cloudflare sitting in front of our Drupal sites - and in order to take advantage of their "AlwaysOnline" feature - we need to alter the response code sent in the event of an error. I want to ...
0
votes
1answer
444 views

Can I use Apache 2.2.15 with mod_rewrite enabled?

I currently am running Centos 6 which only comes with Apache 2.2.15. Yeah, I know it is about time for me to upgrade... I get the following warning: The minimum version of Apache needed to run ...
2
votes
1answer
911 views

Clean urls not working

I just have Drupal 7 and 8 installed in my localhost on Opensuse Leap. With Drupal 7 I cannot pass the clean urls test, however the site is completely functional. By clicking the links on the menu I ...
1
vote
0answers
110 views

How do I add another field to facet for conditional filtering

I currently have a facet block that lists all sizes available for a certain category. The sizes come from a taxonomy vocabulary. I want the sizes facet block to only show the sizes that have stocks > ...
1
vote
0answers
495 views

How do I enable PHP extensions on CentOS to finally finish installing/configuring Drupal?

I am trying to install Drupal 8.0.5 (a standard profile) on Apache 2.4.6 on CentOS 7, with PHP 5.6.19. But in the GUI, I get a problem on the requirements page. It says "PHP extensions disabled. ...
1
vote
0answers
79 views

Drupal in Azure behind Loadmaster - HTTPS enforced no CSS

I bow to those who can help me out with this. I've done this with F5 before but for some reason this isn't working. Drupal 7 sitting behind a Kemp LoadMaster, behind an Azure Load balancer. With Kemp ...
1
vote
1answer
445 views

Updating the PHP version of an existing site?

I am asking this as a total ignorant in differences between PHP versions: Is it possible to update the PHP version of an existing Drupal site that is installed on a local server on Ubuntu? I mean, ...
0
votes
2answers
643 views

Setting up a Drupal environment on Ubuntu

After a few years of setting basic Drupal environments on Windows only, with WAMP (both the installment and the WAMP program) and Drush 7.0.0, I came to the conclusion I also need to work with LAMP ...
1
vote
2answers
658 views

Drupal can't create image styles for files located in theme directory

I have an image located in sites/all/themes/mytheme/images directory. I'm displaying it programmatically with attached image style like: $style = array( 'style_name' => 'my_style', '...