MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: kloxo-fan on 2015-06-29, 16:18:32

Title: problem with setcookie in php
Post by: kloxo-fan on 2015-06-29, 16:18:32
Hi, I have problem with function "setcookie".
Yesterday I did update with command "yum clean all; yum update -y; sh /script/cleanup" and I found that setcookie is not working in php on my server.
Example:
setcookie('mycookie', $value, ....);
can not create the cookie "mycookie".
My websites uses cookies so I need them.
How to fix it?
Title: Re: problem with setcookie in php
Post by: MRatWork on 2015-06-29, 16:30:16
Inform here 'sh /script/sysinfo'.
Title: Re: problem with setcookie in php
Post by: kloxo-fan on 2015-06-29, 19:20:33
A. Kloxo-MR: 7.0.0.b-2015062702
   - Web:
   - PHP: php54s-5.4.41-1.ius.el6 (cgi mode)
B. Plateform:
   - OS: CentOS release 6.6 (Final) x86_64
   - Hostname: vps.zaknigi.com
C. Services:
   1. MySQL: MariaDB-server-10.0.20-1.el6.x86_64
   2. PHP:
      - Branch: php54-cli-5.4.41-1.ius.el6.x86_64
      - Used: --Use PHP Branch--
   3. Httpd: httpd-2.2.29-2.mr.el6.x86_64
      - PHP Type: php-fpm_event
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --uninstalled--
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.7-1.mr.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          2048        490       1557          3          0        185
   -/+ buffers/cache:        304       1743
   Swap:            0          0          0
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/simfs       80G  3.4G   77G   5% /
Title: Re: problem with setcookie in php
Post by: MRatWork on 2015-06-29, 19:27:47
Try 'sh /script/fixphp; sh /script/fixweb; sh /script/fix-chownchmod; sh /script/restart-web -y'.