ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Nextcloud 12 / CentOS 7 -- Memcache Issue

    Scheduled Pinned Locked Moved IT Discussion
    nextcloud 12centos 7
    14 Posts 4 Posters 3.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch @momurda
      last edited by

      @momurda said in Nextcloud 12 / CentOS 7 -- Memcache Issue:

      Youre using redis instead of mysql/mariadb or mongo?
      Is your www-data/apache user part of redis group?

      It is not instead of mariadb. That is not what is happening here.

      1 Reply Last reply Reply Quote 0
      • wirestyle22W
        wirestyle22 @momurda
        last edited by

        @momurda I'm using MariaDB

        1 Reply Last reply Reply Quote 0
        • black3dynamiteB
          black3dynamite
          last edited by

          Did you create the config.php file manually or copy the config.sample.php file, renamed it and modified it?
          Make sure apache is the owner.

          Can you provide the status of httpd?

          systemctl status httpd
          

          You can try setting SELinux to permissive to troubleshoot in case that could be the issue?

          # Permissive
          setenforce 0
          
          # Set it back to enforcing after you are done
          setenforce 1
          
          wirestyle22W 1 Reply Last reply Reply Quote 0
          • wirestyle22W
            wirestyle22 @black3dynamite
            last edited by wirestyle22

            @black3dynamite said in Nextcloud 12 / CentOS 7 -- Memcache Issue:

            systemctl status httpd

            Interesting. It's pointing to /var/www/nextcloud instead of /var/www/html/nextcloud. I actually had this occur already and fixed it but something else is pointing there as well.

            
            [root@nextcloud ~]# systemctl status httpd -l
            ● httpd.service - The Apache HTTP Server
               Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
               Active: active (running) since Wed 2018-02-07 15:19:57 EST; 2h 16min ago
                 Docs: man:httpd(8)
                       man:apachectl(8)
             Main PID: 996 (httpd)
               Status: "Total requests: 737; Current requests/sec: 0.1; Current traffic: 204 B/sec"
               CGroup: /system.slice/httpd.service
                       ├─ 996 /usr/sbin/httpd -DFOREGROUND
                       ├─1458 /usr/sbin/httpd -DFOREGROUND
                       ├─1460 /usr/sbin/httpd -DFOREGROUND
                       ├─1518 /usr/sbin/httpd -DFOREGROUND
                       ├─1520 /usr/sbin/httpd -DFOREGROUND
                       ├─1522 /usr/sbin/httpd -DFOREGROUND
                       ├─1523 /usr/sbin/httpd -DFOREGROUND
                       ├─1905 /usr/sbin/httpd -DFOREGROUND
                       ├─2041 /usr/sbin/httpd -DFOREGROUND
                       ├─2072 /usr/sbin/httpd -DFOREGROUND
                       └─2126 /usr/sbin/httpd -DFOREGROUND
            
            Feb 07 15:19:54 nextcloud systemd[1]: Starting The Apache HTTP Server...
            Feb 07 15:19:56 nextcloud httpd[996]: AH00112: Warning: DocumentRoot [/var/www/nextcloud] does not exist
            Feb 07 15:19:56 nextcloud httpd[996]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::e37c:3451:aee8:1731. Set the 'ServerName' directive globally to suppress this message
            Feb 07 15:19:57 nextcloud systemd[1]: Started The Apache HTTP Server.
            
            black3dynamiteB 1 Reply Last reply Reply Quote 0
            • black3dynamiteB
              black3dynamite @wirestyle22
              last edited by black3dynamite

              @wirestyle22 said in Nextcloud 12 / CentOS 7 -- Memcache Issue:

              @black3dynamite said in Nextcloud 12 / CentOS 7 -- Memcache Issue:

              systemctl status httpd

              Interesting. It's pointing to /var/www/nextcloud instead of /var/www/html/nextcloud. I actually had this occur already and fixed it but something else is pointing there as well.

              
              [root@nextcloud ~]# systemctl status httpd -l
              ● httpd.service - The Apache HTTP Server
                 Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
                 Active: active (running) since Wed 2018-02-07 15:19:57 EST; 2h 16min ago
                   Docs: man:httpd(8)
                         man:apachectl(8)
               Main PID: 996 (httpd)
                 Status: "Total requests: 737; Current requests/sec: 0.1; Current traffic: 204 B/sec"
                 CGroup: /system.slice/httpd.service
                         ├─ 996 /usr/sbin/httpd -DFOREGROUND
                         ├─1458 /usr/sbin/httpd -DFOREGROUND
                         ├─1460 /usr/sbin/httpd -DFOREGROUND
                         ├─1518 /usr/sbin/httpd -DFOREGROUND
                         ├─1520 /usr/sbin/httpd -DFOREGROUND
                         ├─1522 /usr/sbin/httpd -DFOREGROUND
                         ├─1523 /usr/sbin/httpd -DFOREGROUND
                         ├─1905 /usr/sbin/httpd -DFOREGROUND
                         ├─2041 /usr/sbin/httpd -DFOREGROUND
                         ├─2072 /usr/sbin/httpd -DFOREGROUND
                         └─2126 /usr/sbin/httpd -DFOREGROUND
              
              Feb 07 15:19:54 nextcloud systemd[1]: Starting The Apache HTTP Server...
              Feb 07 15:19:56 nextcloud httpd[996]: AH00112: Warning: DocumentRoot [/var/www/nextcloud] does not exist
              Feb 07 15:19:56 nextcloud httpd[996]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::e37c:3451:aee8:1731. Set the 'ServerName' directive globally to suppress this message
              Feb 07 15:19:57 nextcloud systemd[1]: Started The Apache HTTP Server.
              

              Check your DocumentRoot setting in /etc/httpd/conf/httpd.conf.

              wirestyle22W 2 Replies Last reply Reply Quote 0
              • wirestyle22W
                wirestyle22 @black3dynamite
                last edited by wirestyle22

                @black3dynamite Yeah it was actually the old config, not the new ssl.conf version. I still changed it so that fixed the error.

                Feb 07 17:40:15 nextcloud systemd[1]: Starting The Apache HTTP Server...
                Feb 07 17:40:15 nextcloud httpd[2407]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::e37c:3451:aee8:1731. Set the 'ServerName' directive globally to suppress this message
                Feb 07 17:40:15 nextcloud systemd[1]: Started The Apache HTTP Server.
                

                ServerName directive is contained within my vhost file, so no idea why it's kicking that back at me.

                1 Reply Last reply Reply Quote 0
                • wirestyle22W
                  wirestyle22 @black3dynamite
                  last edited by wirestyle22

                  @black3dynamite Alright, fixed. I thought including conf.modules.d/*.conf overwrote the ServerName entry in http.conf?

                  1 Reply Last reply Reply Quote 0
                  • wirestyle22W
                    wirestyle22
                    last edited by wirestyle22

                    The "Strict-Transport-Security" HTTP header is not configured to at least "15552000" seconds. For enhanced security we recommend enabling HSTS as described in our security tips.
                    
                    No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.
                    Please double check the installation guides ↗, and check for any errors or warnings in the log.
                    

                    Still an issue though. If I try to enable memcache nextcloud is no longer functional

                    black3dynamiteB 1 Reply Last reply Reply Quote 0
                    • black3dynamiteB
                      black3dynamite @wirestyle22
                      last edited by black3dynamite

                      @wirestyle22 said in Nextcloud 12 / CentOS 7 -- Memcache Issue:

                      The "Strict-Transport-Security" HTTP header is not configured to at least "15552000" seconds. For enhanced security we recommend enabling HSTS as described in our security tips.
                      
                      No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.
                      Please double check the installation guides ↗, and check for any errors or warnings in the log.
                      

                      Still an issue though. If I try to enable memcache nextcloud is no longer functional

                      Check your /etc/httpd/conf.d/ssl.conf to see if Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains" is there.

                      It looks like this.

                      ##
                      ## SSL Virtual Host Context
                      ##
                      
                      <VirtualHost _default_:443>
                      
                      # General setup for the virtual host, inherited from global configuration
                      #DocumentRoot "/var/www/html"
                      #ServerName www.example.com:443
                      
                      # Enable HTTP Strict Transport Security
                      <IfModule mod_headers.c>
                          Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
                      </IfModule>
                      ...
                      
                      wirestyle22W 1 Reply Last reply Reply Quote 0
                      • wirestyle22W
                        wirestyle22 @black3dynamite
                        last edited by

                        @black3dynamite It's there, but I'm still getting the above error

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post