Comments on How to Install and Configure Drupal with Apache on Debian 9

Drupal is a free and open source content management system that can be used to create online content, website and user communities. It is written in PHP language, uses MySQL as a database backends and distributes under the GNU General Public License. In this article, we will demonstrate how to install Drupal 8 on Debian 9 server.

9 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Radek

sudo chmod -R 777 /var/www/html/drupal

 

Why?!

 

By: Jan

Your default site will still be the apache2 test page, which will catch every request on port 80. You either need to disable this catch-all or be more specific which hosts your requests will handle based on the url they surf on.

By: Cedric

Thanks for the tutorial ! However, I have a question for you.

When I ran :

mysql -u root -p

with a fresh install of Debian 9.2.0, I had the following error :

ERROR 1698 (28000): Access denied for user 'root'@'localhost'

I resolved it by running :

sudo mysql -u root -p

Is it a acceptable solution ?

Thanks again !

Cedric

 

By: Cedric

Hello again !

Moreover, in the drupal.conf file on line 6, I belive there should be only one < at the beginning. Because with the << I get this error :

apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 14 of /etc/apache2/sites-enabled/drupal.conf: Expected </<Directory> but saw </VirtualHost>

Thanks !

By: Heinrich Kordewiner

Enabling MySQL doesn't work, because "mysql.service" is a link. You have to use

  sudo systemctl enable mariadb

because of

  /etc/systemd/system/mysql.service -> /lib/systemd/system/mariadb.service

By: Francisco

I can't  Access Drupal Web Interface because say 'La conexión tardó demasiado tiempo', Why?

By: Mohammad Javad

Hiplease answer to me. i install drupal. but in this step " 5 Access Drupal Web Interface ". when i type in url "http://192.168.15.189" i give this error : " Problem loading page " (The connection was reset)what i can do for fix it?

By: Felipe

 Hello,

if you have this message of error:

Job for apache2.service failed because the control process exited with error code.See "systemctl status apache2.service" and "journalctl -xe" for details.

is because "/etc/apache2/sites-available/drupal.conf" is bad wrote.

<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/drupal ServerName 192.168.15.189 ServerAlias www.example.com <<Directory "/var/www/html/drupal/"> Options FollowSymLinks AllowOverride All Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/drupal-error_log CustomLog /var/log/apache2/drupal-access_log common </VirtualHost>

This is correct:

<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/drupal ServerName 192.168.15.189 ServerAlias www.example.com <Directory "/var/www/html/drupal/"> Options FollowSymLinks AllowOverride All Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/drupal-error_log CustomLog /var/log/apache2/drupal-access_log common </VirtualHost>

By: Quetedigo

Replace "Servername" IP for your local IP or, anyway, as localhost

 

ServerName localhost

 

 

Then, you can accesse via http://localhost or http://your_local_ip