Unable to log in through web interface. New installation

Hello. I’m a programmer doing some IT work, so be gentle. I’m learning as I go. I’ve built a new server running RHEL 7.4, on which I recently installed Nextcloud 13. I’ve worked through several issues but I’m stuck on a problem where I cannot log in though the web interface. When I try to log in as admin, the page seems to refresh, but I am never logged in. It just goes back to the same log in page. The Windows app seems to work (syncs files to the server) while using the admin credentials.

In the nextcloud.log file (see below), the following message shows up but I’m at a loss on what the problem might be:

session_regenerate_id(): Cannot regenerate session id - session is not active at ...

Any help would be appreciated.
Randall

Here’s my setup:
RHEL 7.4
Apache 2.4.6
PHP 7.2.8
Nextcloud 13.0.5

nextcloud.log

{"reqId":"W37BNusuvBAqPswW@v3gXAAAAAA","level":0,"time":"2018-08-23T10:14:14-04:00","remoteAddr":"my-server-ip","user":"--","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/admin\/","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/var\/www\/html\/nextcloud\/lib\/private\/Session\/Internal.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"W37BN@suvBAqPswW@v3gXQAAAAA","level":0,"time":"2018-08-23T10:14:15-04:00","remoteAddr":"my-server-ip","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/ocs\/v1.php\/cloud\/capabilities?format=json","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/var\/www\/html\/nextcloud\/lib\/private\/Session\/Internal.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"W37BN@suvBAqPswW@v3gXgAAAAA","level":0,"time":"2018-08-23T10:14:15-04:00","remoteAddr":"my-server-ip","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/ocs\/v1.php\/cloud\/user?format=json","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/var\/www\/html\/nextcloud\/lib\/private\/Session\/Internal.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"W37BN@suvBAqPswW@v3gXwAAAAA","level":0,"time":"2018-08-23T10:14:15-04:00","remoteAddr":"my-server-ip","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/var\/www\/html\/nextcloud\/lib\/private\/Session\/Internal.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"W37BN44AV4EtJd9J3KSPRAAAAAE","level":0,"time":"2018-08-23T10:14:15-04:00","remoteAddr":"my-server-ip","user":"--","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/admin\/","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/var\/www\/html\/nextcloud\/lib\/private\/Session\/Internal.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"W37BVmT2C0@GNsEOo3S45QAAAAI","level":0,"time":"2018-08-23T10:14:46-04:00","remoteAddr":"my-server-ip","user":"--","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/admin\/","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/var\/www\/html\/nextcloud\/lib\/private\/Session\/Internal.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"W37BYA@@XPJn0x1@zbTa8AAAAAM","level":0,"time":"2018-08-23T10:14:56-04:00","remoteAddr":"my-server-ip","user":"--","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/admin\/","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/var\/www\/html\/nextcloud\/lib\/private\/Session\/Internal.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"W37BfCSWCzNUSsQL-k59@wAAAAQ","level":0,"time":"2018-08-23T10:15:24-04:00","remoteAddr":"my-server-ip","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/var\/www\/html\/nextcloud\/lib\/private\/Session\/Internal.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"W37BfiSWCzNUSsQL-k59-AAAAAQ","level":0,"time":"2018-08-23T10:15:26-04:00","remoteAddr":"my-server-ip","user":"--","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/admin\/","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/var\/www\/html\/nextcloud\/lib\/private\/Session\/Internal.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"W37Bg3u9ZRHsp25oMiXQWgAAAAU","level":0,"time":"2018-08-23T10:15:31-04:00","remoteAddr":"::1","user":"--","app":"no app in context","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/","message":"Current user is not logged in","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko\/20100101 Firefox\/60.0","version":"13.0.5.2"}
{"reqId":"W37Bgzq0Ln5SjZkkeMoDBQAAAAY","level":0,"time":"2018-08-23T10:15:31-04:00","remoteAddr":"::1","user":"--","app":"core","method":"GET","url":"\/nextcloud\/index.php\/login?redirect_url=\/nextcloud\/index.php\/apps\/files\/","message":"Scss is disabled for \/var\/www\/html\/nextcloud\/core\/css\/jquery-ui-fixes.scss, ignoring","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko\/20100101 Firefox\/60.0","version":"13.0.5.2"}
{"reqId":"W37Bgzq0Ln5SjZkkeMoDBQAAAAY","level":0,"time":"2018-08-23T10:15:31-04:00","remoteAddr":"::1","user":"--","app":"core","method":"GET","url":"\/nextcloud\/index.php\/login?redirect_url=\/nextcloud\/index.php\/apps\/files\/","message":"Scss is disabled for \/var\/www\/html\/nextcloud\/core\/css\/server.scss, ignoring","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko\/20100101 Firefox\/60.0","version":"13.0.5.2"}
{"reqId":"W37Bgzq0Ln5SjZkkeMoDBQAAAAY","level":0,"time":"2018-08-23T10:15:31-04:00","remoteAddr":"::1","user":"--","app":"core","method":"GET","url":"\/nextcloud\/index.php\/login?redirect_url=\/nextcloud\/index.php\/apps\/files\/","message":"Scss is disabled for \/var\/www\/html\/nextcloud\/core\/css\/share.scss, ignoring","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko\/20100101 Firefox\/60.0","version":"13.0.5.2"}
{"reqId":"W37Bgzq0Ln5SjZkkeMoDBQAAAAY","level":0,"time":"2018-08-23T10:15:31-04:00","remoteAddr":"::1","user":"--","app":"core","method":"GET","url":"\/nextcloud\/index.php\/login?redirect_url=\/nextcloud\/index.php\/apps\/files\/","message":"Scss is disabled for \/var\/www\/html\/nextcloud\/core\/css\/jquery.ocdialog.scss, ignoring","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko\/20100101 Firefox\/60.0","version":"13.0.5.2"}
{"reqId":"W37BhA@@XPJn0x1@zbTa8QAAAAM","level":0,"time":"2018-08-23T10:15:32-04:00","remoteAddr":"::1","user":"--","app":"cron","method":"GET","url":"\/nextcloud\/cron.php","message":"Run OCA\\Activity\\BackgroundJob\\ExpireActivities job with ID 4","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko\/20100101 Firefox\/60.0","version":"13.0.5.2"}
{"reqId":"W37BhA@@XPJn0x1@zbTa8QAAAAM","level":0,"time":"2018-08-23T10:15:32-04:00","remoteAddr":"::1","user":"--","app":"cron","method":"GET","url":"\/nextcloud\/cron.php","message":"Finished OCA\\Activity\\BackgroundJob\\ExpireActivities job with ID 4 in 0 seconds","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko\/20100101 Firefox\/60.0","version":"13.0.5.2"}
{"reqId":"W37BnCSWCzNUSsQL-k59-QAAAAQ","level":0,"time":"2018-08-23T10:15:56-04:00","remoteAddr":"my-server-ip","user":"--","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/admin\/","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/var\/www\/html\/nextcloud\/lib\/private\/Session\/Internal.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}

FYI - I finally found the issue. It was a permission issue with some PHP directories.

They should be:

apache:apache /var/lib/session/
root:apache /var/lib/wsdlcache/
root:apache /var/lib/opcache/

They were all set to root after installation.

All is well now and I can log in through the web interface.

Permissions or ownership ??

Oops. I meant ownership of the directories.

Thank you that helps-