Install Drupal

How to install Drupal in openSUSE Leap 15.0?

Download Drupal, unpack, move content to /srv/www/htdocs
For the rest: follow Drupal install instructions.

I’m trying to install Drupal in openSUSE, but when I start the installation I get the below error message.

Apache
Due to the settings for ServerTokens in httpd.conf, it is impossible to accurately determine the version of Apache running on this server. The reported value is Apache, to run Drupal without mod_rewrite, the minimum version of 2.2.16 is needed.

PHP OPcode caching
Not enabled
PHP OPC caching can improve your site’s performance considerably. It is highly recommended to have OPcache installed on your server.

How should I proceed?

For the first issue: sudo a2enmod rewrite and restart apache2
For the second issue: install php7-opcache and restart apache2.

Did not work the first tip.

I have Drupal 8 running here on Leap 15.0 with the following packages installed (normally with YaST) from the “openSUSE BuildService - PHP:Applications” repository:


 > zypper info drupal8 drupal8-apache2
Loading repository data...
Reading installed packages...


Information for package drupal8:
--------------------------------
Repository     : openSUSE BuildService - PHP:Applications
Name           : drupal8
Version        : 8.5.5-lp150.1.1
Arch           : noarch
Vendor         : obs://build.opensuse.org/server:php:applications
Installed Size : 58.3 MiB
Installed      : Yes
Status         : up-to-date
Source package : drupal8-8.5.5-lp150.1.1.src
Summary        : A content management framework written in PHP and distributed under the GNU
Description    :
    Drupal is an open source content management platform powering millions of websites and applications. It’s built,
    used, and supported by an active and diverse community of people around the world.


Information for package drupal8-apache2:
----------------------------------------
Repository     : openSUSE BuildService - PHP:Applications
Name           : drupal8-apache2
Version        : 8.5.5-lp150.1.1
Arch           : noarch
Vendor         : obs://build.opensuse.org/server:php:applications
Installed Size : 1.3 KiB
Installed      : Yes
Status         : up-to-date
Source package : drupal8-8.5.5-lp150.1.1.src
Summary        : Apache configuration files for drupal8
Description    :
    The Drupal8 Apache 2 mod_php configuration files

 > 

Please note that, there is some post installation work needed which is documented in ‘/srv/www/drupal8/core/INSTALL.txt’ – other text which needs to be read is also located in ‘/srv/www/drupal8/’ and ‘/srv/www/drupal8/core/’ …
There’s also some work to be done in ‘/etc/sysconfig/apache2’: AFAICR there’s some things to add to “APACHE_MODULES” but my memory is failing me – I have a couple of other Content Management Systems (CMS) installed here which also needed some extra modules:
Original:

# APACHE_MODULES="authz_host actions alias asis auth autoindex cgi dir imap include log_config mime negotiation setenvif status userdir"

My current value (suitable for the several CMS’s I have installled … ) is:

APACHE_MODULES="authz_host actions alias auth_basic authz_user authn_file authz_groupfile autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imagemap  perl reqtimeout socache_shmcb authz_core authn_core version expires rewrite php7"

“APACHE_SERVER_FLAGS” also has to be changed to include the string “DRUPAL8” …
There’s possibly a couple of other things which need to be done but, as I wrote above, my memory is failing me – please check the Drupal Apache documentation for anything I’ve forgotten to mention …

It may not be obvious to the @OP that whereas Knurpht described installing Drupal downloaded from the Drupal site, dcurtisfra describes installing from the OSS.

From what dcurtisfra posted,
Drupal can be downloaded and initially installed from the OSS with the following command (and needs further configuration)

zypper in  drupal8 drupal8-apache2

TSU

And, by “OSS” we mean “the openSUSE Repositories” …

The error still remains

Apache
Due to the settings
for ServerTokens in httpd.conf, it is impossible to accurately determine
the version of Apache running on this server. The reported value is
Apache, to run Drupal without mod_rewrite, a minimum version of 2.2.16
is needed

Also,
You might find the following posted script interesting although ti was written for LEAP 42.2 and Drupal7

TSU