ok i checked the log file and i found this error message
[Sun Oct 01 08:00:30.302505 2017] [:error] [pid 11902] [client 10.8.15.191:50208] PHP Parse error: syntax error, unexpected end of file, expecting ‘)’ in /var/www/html/nextcloud/config/config.php on line 41
[Sun Oct 01 08:00:31.350652 2017] [:error] [pid 11897] [client 192.168.50.208:41046] PHP Parse error: syntax error, unexpected end of file, expecting ‘)’ in /var/www/html/nextcloud/config/config.php on line 41
I just added this first
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘filelocking.enabled’ => ‘true’,
‘redis’ =>
array (
‘host’ => ‘/var/run/redis/redis.sock’,
‘port’ => 0,
‘timeout’ => 0.0,
),
Hi
after changing syntax like ’ to ‘ then i restarted http service i can able to view our nextcloud but when i checked the log file i found this.
[Sun Oct 01 16:27:29.577687 2017] [:error] [pid 16335] [client 192.168.50.208:54422] PHP Notice: Use of undefined constant \xe2\x80\x98host\xe2\x80\x99 - assumed ‘\xe2\x80\x98host\xe2\x80\x99’ in /var/www/html/nextcloud/config/config.php on line 40
the line 40 is
‘host’ => ‘/var/run/redis/redis.sock’,
there is no redis path directory
[root@stp1200 config]# ls -al /var/run/redis/
total 0
drwxr-xr-x 2 redis redis 40 Oct 1 07:51 .
drwxr-xr-x 39 root root 1080 Oct 2 02:35 …
You have new mail in /var/spool/mail/root
[root@stp1200 config]#
Ah so there it is, if redis-server starts up successfully (service redis-server status). This is just an unusul path to me, but then you have to change the host line in your config.php to 'host' => '/tmp/redis.sock' or change redis.conf to create the socket in /var/run/redis/redis.sock.
[root@stp1200 etc]# service redis status
Redirecting to /bin/systemctl status redis.service
● redis.service - Redis persistent key-value database
Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/redis.service.d
└─limit.conf
Active: active (running) since Mon 2017-10-02 14:37:48 PHT; 1min 0s ago
Process: 32061 ExecStop=/usr/libexec/redis-shutdown (code=exited, status=0/SUCCESS)
Main PID: 32098 (redis-server)
CGroup: /system.slice/redis.service
└─32098 /usr/bin/redis-server 127.0.0.1:0
Oct 02 14:37:48 stp1200.network.com systemd[1]: Started Redis persistent key…
Oct 02 14:37:48 stp1200.network.com systemd[1]: Starting Redis persistent ke…
Hint: Some lines were ellipsized, use -l to show in full.
i replaced it line 40 ‘/tmp/redis.sock’ but still no luck i restarted the httpd and redis
[Mon Oct 02 14:40:51.701762 2017] [:error] [pid 1077] [client 192.168.50.165:55861] PHP Notice: Use of undefined constant \xe2\x80\x98host\xe2\x80\x99 - assumed ‘\xe2\x80\x98host\xe2\x80\x99’ in /var/www/html/nextcloud/config/config.php on line 40
Hmm okay, after reviewing your error message (and google it: link) I think Jasons idea was right and there is still something wrong about the apostrophe. Nevertheless let config.php pointing to the right redis.sock position is of course necessary, too.
but there is new error message line 36
[Mon Oct 02 15:22:05.704018 2017] [:error] [pid 32466] [client 192.168.50.254:23977] PHP Parse error: syntax error, unexpected ‘\’ (T_NS_SEPARATOR), expecting ‘)’ in /var/www/html/nextcloud/config/config.php on line 36
here is the line 36
'memcache.locking => ‘\OC\Memcache\Redis’,