Change TMP environment variable
Hi,
The environment variable TMP is set to /root/tmp by easy apache. This is creating problem with XCache, because user nobody does not have permission to create file in /root/tmp. The 0777 permission on /root/tmp has no effect.
I tried following the instructions at [url=http://docs.cpanel.net/twiki/bin/view/EasyApache3/ModifyingEnvironmentalVariables]Modifying Environment Variables and creating a file TMP under /var/cpanel/easy/apache/rawenv/ and rebuilding easy apache. But it did not work.
How can I change the value of TMP to /tmp. I have a cPanel dedicated server with Apache / PHP compiled with similar easy apache options. It does not have the environment variable TMP set.
-
Hello :) You may actually want to report the issue as a bug if it's resulting in an issue with XCache. What is the specific error message that you receive? Thank you. 0 -
Hi Michael, Xcache is unable to create the lock files [QUOTE]PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.1.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.2.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.3.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.4.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.5.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.6.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.7.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.8.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.9.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.10.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.11.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 PHP Fatal error: xc_fcntl_create: open(/root/tmp/.xcache.99.20845.12.lock, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 [Wed Sep 04 08:24:02.787475 2013] [:error] [pid 6930] [client 117.242.16.43:61073] [Cms\\ArticleManager] PHP Fatal error: xc_fcntl_lock failed errno:9 in /home/user/.cms-cache/tmp/37d28b3cec4752d9a327024d824ee459.tmp.php on line 4
0 -
It looks like this may actually be an issue with the XCache configuration itself. However, I advise submitting a bug report via: Submit A Bug Report It's possible some changes to the initial configuration of this module need to be made when it's installed through cPanel. Thank you. 0 -
Out of interest, is this problem occurring immediately after the apache build only? I submitted a similar case (don't remember the exact specifics) over a year ago now because I'd found it necessary to remember to manually restart apache after each built to prevent issues the env variables. As I recall it was relatively promptly rectified, so be interesting if a similar issue has returned. 0 -
[quote="cPanelMichael, post: 1456091">It looks like this may actually be an issue with the XCache configuration itself. However, I advise submitting a bug report via: Submit A Bug Report It's possible some changes to the initial configuration of this module need to be made when it's installed through cPanel. Thank you.
I was using a standalone version of XCache. I'll try with the bundled XCache. Xcache uses the $TMP directory for storing the lock files. User nobody does not have permission to write to /root/tmp even though it is 0777. So, I don't think it is an XCache problem. --- root@venus [/var/cpanel/easy]# chpst -u nobody touch /root/tmp/.xcache.99.27445.1.lock touch: cannot touch `/root/tmp/.xcache.99.27445.1.lock': Permission denied --- But, why am I unable to modify the TMP variable? [quote="ThinIce, post: 1456112">Out of interest, is this problem occurring immediately after the apache build only? I submitted a similar case (don't remember the exact specifics) over a year ago now because I'd found it necessary to remember to manually restart apache after each built to prevent issues the env variables. As I recall it was relatively promptly rectified, so be interesting if a similar issue has returned.
I tried restarting apache several times, but it did not work.0 -
It was a problem with XCache, after all. When I rebuilt apache with the bundled XCache, the environment variable and the error vanished. 0
Please sign in to leave a comment.
Comments
6 comments