4 comments on “Install Drupal8 in Xubuntu 16.04

  1. Hi, can you insert images when writting articles in Drupal? I installed Drupal 8 with LEMP on Ubuntu 16.04. I always get an Ajax error when trying to add images to article in Drupal 8. I’m planning to switch from WordPress to Drupal but this bug prevents me from doing this.

    Like

  2. I have tested this on my server and found no issues regarding adding images, do you have any modules installed, where exactly is the error you are receiving when adding images?

    Like

    • Look like it’s my Nginx configuration file is not working. Here’s a working Nginx config for Drupal 8.

      server {
      listen 80;
      server_name http://www.your-domain.com your-domain.com;
      root /usr/share/nginx/html/;
      index index.php index.html index.htm;

      error_page 404 /404.html;
      error_page 500 502 503 504 /50x.html;

      location = /50x.html {
      root /usr/share/nginx/html;
      }

      location ~ \..*/.*\.php$ {
      return 403;
      }

      # Block access to hidden directories
      location ~ (^|/)\. {
      return 403;
      }

      location ~ ^/sites/.*/private/ {
      return 403;
      }

      # No php is touched for static content
      location / {
      try_files $uri @rewrite;
      }

      # Clean URLs
      location @rewrite {
      rewrite ^ /index.php;
      }

      # Image styles
      location ~ ^/sites/.*/files/styles/ {
      try_files $uri @rewrite;
      }

      location = /favicon.ico {
      log_not_found off;
      access_log off;
      }

      location = /robots.txt {
      allow all;
      log_not_found off;
      access_log off;
      }

      location ~ \.php$ {
      try_files $uri =404;
      fastcgi_pass unix:/run/php/php7.0-fpm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_split_path_info ^(.+\.php)(/.+)$;
      include fastcgi_params;
      }
      }

      Like

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s