New answers tagged

1

With CentOS 8, the environment variables of your Apache server are handled by systemd. See the content of the httpd service: cat /usr/lib/systemd/system/httpd.service To customize the behaviour, run "systemctl edit httpd" to create an override unit. [...] enter the following: [Service] Environment=OPTIONS=-DMY_DEFINE So you have to create an ...


0

One possibility is to put the variables in file /etc/environment in the form MY_ENV_VAR1=envvar1 MY_ENV_VAR99="value with spaces" and these will be read and exported by pam_env on login. To have apache read the same file use EnvironmentFile=/etc/environment in the unit file. Note, the use of this keyword is not liked by the systemd designers so ...


1

I've solved my issue by changing all the internal links to the home page from https://mysite.com/index.php to https://mysite.com/


1

I've added the first rule block after noticing that the solution suggested in the link had a bug -- that is, URL https://mysite.com/ returned a File not Found. Now it works. I think it is not really a bug. The code you extracted from here is meant to be used in a .htaccess file, not in a VirtualHost directive. It turns out that RewriteRule does not work ...


1

The error you get is possibly because the index.html file is inside a root owned directory, try running LibreOffice with superuser privileges, if that doesn't work, try to edit the file with nano or vim, if its successful then the problem lies with LibreOffice. Atom is a very nice and kind lightweight IDE, it supports syntax highlighting for html, if you don'...


2

Run this command in your console: apache2 -v Output should be something like: Server version: Apache/2.4.7 (Ubuntu) Server built: Jan 14 2016 17:45:23


0

libapache2-mod-spamhaus, which is the Apache DNSBL module that blocks listed IP addresses, is available only in Ubuntu Xenial (16.04 LTS). This is why apt is not able to find and install the package in Ubuntu Bionic (18.04 LTS). It is not present in the repository. You can still download the package or the source at the package's page on the Ubuntu's website ...


Top 50 recent answers are included