Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session Errors Everytime i Sync Domains (phptmpdir)
#1
EVERY TIME i sync domains and possibly some other functions to do with cron
I get session errors and the only way is to delete the files in phptmpdir to stop the problem and so it becomes very annoying when i have to constantly sync domains after every upload or update of domains.
This only seams to happen with certain sites that have Databases.
These are my issue sites: socialengine and opencart.

This is rendering EHCP as a very annoying and useless CP (I am using 0.30 btw)
Can anyone please help resolve this issue ? I never had this issue in EHCP 0.28


Restored from old drupal forum, for user uid:3933 username:carl97
You may reset your password to access your new account here.
Reply
#2
paste here output of following commands:
cd /var/www/vhosts/spotless-servicecom/spotless-service.com/
ls -lh
umask
cd phptmpdir
ls -lh | head -10
umask

cd /var/www/new/ehcp
grep wwwuser classapp.php
grep wwwgroup classapp.php
grep ftpuser classapp.php
grep ftpgroup classapp.php
grep ehcpversion classapp.php

These commands will help us investigate the case. mostly you have permission issue.


Restored from old drupal forum, for user uid:3933 username:carl97
You may reset your password to access your new account here.
Reply
#3
Below is the whole lot that came back at me.
I Must say thank you for being so helpful and fast.


colin@truestate:~$ cd /var/www/vhosts/spotless-servicecom/spotless-service.com/
colin@truestate:/var/www/vhosts/spotless-servicecom/spotless-service.com$ ls -lhtotal 84K
drwxrwxrwx 9 vsftpd www-data 4.0K 2012-09-29 15:42 httpdocs
-rw-r--r-- 1 vsftpd www-data 657 2011-10-19 12:01 index.php
drwxr-xr-x 2 root root 4.0K 2012-09-30 07:52 logs
drwxrwxrwx 2 vsftpd www-data 68K 2012-10-05 12:39 phptmpdir
colin@truestate:/var/www/vhosts/spotless-servicecom/spotless-service.com$ umask
0022
colin@truestate:/var/www/vhosts/spotless-servicecom/spotless-service.com$ cd phptmpdir
colin@truestate:/var/www/vhosts/spotless-servicecom/spotless-service.com/phptmpdir$ ls -lh | head -10
total 28K
-rw------- 1 www-data www-data 63 2012-10-03 22:53 sess_1j07ih7hgrnp09ar7n832ntmj5
-rw------- 1 www-data www-data 81 2012-10-04 11:28 sess_evmlkr16j3rjoj2t829q14dtj2
-rw------- 1 www-data www-data 63 2012-10-05 00:26 sess_jtnrl6voqfc8t85nn0ncdfp504
-rw------- 1 www-data www-data 125 2012-10-06 00:38 sess_marpqrnmhd7faj5n6fjunj9dm1
-rw------- 1 www-data www-data 63 2012-10-04 11:25 sess_ro3jm9qir8sim84b2s1nc2l012
-rw------- 1 www-data www-data 19 2012-10-05 12:39 sess_rthve00nkmdbjnhgft69psmk42
-rw------- 1 www-data www-data 19 2012-10-04 20:34 sess_uoehj5m796u112dsao8g798go0
colin@truestate:/var/www/vhosts/spotless-servicecom/spotless-service.com/phptmpdir$ umask
0022
colin@truestate:/var/www/vhosts/spotless-servicecom/spotless-service.com/phptmpdir$
colin@truestate:/var/www/vhosts/spotless-servicecom/spotless-service.com/phptmpdir$ cd /var/www/new/ehcp
colin@truestate:/var/www/new/ehcp$ grep wwwuser classapp.php
var $wwwuser="www-data"; # these vars should be used are "user related" places, to unify all user settings.. #equivalent: var $wwwowner="vsftpd:www-data";
$this->wwwowner=$this->wwwuser.':'.$this->wwwgroup;
colin@truestate:/var/www/new/ehcp$ grep wwwgroup classapp.php
var $wwwgroup="www-data";
$this->wwwowner=$this->wwwuser.':'.$this->wwwgroup;
colin@truestate:/var/www/new/ehcp$ grep ftpuser classapp.php
* add ftpuser/subdomain/email/db at single step, a feature request,
var $ftpuser="vsftpd"; # equivalent: var $ftpowner="vsftpd:www-data";
....

colin@truestate:/var/www/new/ehcp$ grep ehcpversion classapp.php


Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
I do have the same issue on any other Domain Sites with Databases

Restored from old drupal forum, for user uid:3933 username:carl97
You may reset your password to access your new account here.
Reply
#5
I will check that and will try to solve.

Restored from old drupal forum, for user uid:3933 username:carl97
You may reset your password to access your new account here.
Reply
#6
I think I fixed the problem with new testing version.
This will be a permanent solution for session permission error problem; once it works.

http://ehcp.net/ehcp_yeni.tgz

note that: http://ehcp.net/?q=node/1356

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#7
Thank you very much for your help.
I am guessing that it wasn't my fault in the way i have installed my server ?
I was getting a bit worried about that. Thank you also for the File.

How do i apply this file and will it erase my contents and accounts ?
;-)

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#8
I am very new to Linux and using Ubuntu 10.10
I know that i probably shouldn't be running a server as a newbee.
(Bit like a blind bus driver that has excellent hearing and a 6th sence) ;-)

Please could you provide the command line to upgrade the script ?


Restored from old drupal forum, for user uid:3933 username:carl97
You may reset your password to access your new account here.
Reply
#9
I have just updated the files you posted,
Copied my old config.php and classapp.php
overwriting the new ones as i read up on.
I have done a syndns and syncdomains
and it seamed to go on forever.

The Session error did not go away
Regards Carl

Restored from old drupal forum, for user uid:3933 username:carl97
You may reset your password to access your new account here.
Reply
#10
Furthermore i have more issues with permissions and having to sync domains just about every time i update websites and every time i sync domains i get a lot of postfix messages in EHCP status

Restored from old drupal forum, for user uid:3933 username:carl97
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping