![]() |
Writing CronJobs Web int. It's time! - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Development Area (/forum-1.html) +--- Forum: General discussion (/forum-11.html) +--- Thread: Writing CronJobs Web int. It's time! (/thread-5339.html) |
RE: Writing CronJobs Web int. It's time! - data-stream_ru - 11-04-2009 01:37 PM is the executed file exist? And what about they chmod and owner? RE: Writing CronJobs Web int. It's time! - WuChEn - 11-04-2009 05:54 PM Yes its an execute file and this exist. Full Pfad is: /var/www/virtual/domain.tld/cgi-bin/perltest.pl chmod tested with 750 and 755 and 777 Command an Cronejobs ad is perl /var/www/virtual/domain.tld/cgi-bin/perltest.pl If i add, it says: File not found! If i move File to /var/www/virtual/perltest.pl and change pfad an GUI to perl /var/www/virtual/perltest.pl it works. perltest.pl has owner and user vu2001. Whats wrong? Greatz WuChEn RE: Writing CronJobs Web int. It's time! - data-stream_ru - 11-07-2009 02:45 PM (11-04-2009 05:54 PM)WuChEn Wrote: Yes its an execute file and this exist. Mey be ispCP user have not access to cgi-bin In comand line type #sudo -u vu2001 perl /var/www/virtual/domain.tld/cgi-bin/perltest.pl If it's executable, You may disable file checking in /var/www/ispcp/gui/client/cronjobs_add.php Coment lines - PHP Code: //Check files and permission If it's not executable in command line, find your permission error. Hmmmm... Now I tested cronjob in my server under CentOS perl /var/www/virtual/veterinars.ru/cgi-bin/ikonboard.cgi I have not thise error. RE: Writing CronJobs Web int. It's time! - WuChEn - 11-07-2009 09:28 PM Without File Checking it runs. ![]() I test some Cronejobs and give a feedback. --- Works all fine. But without File Checking is not good. ![]() Every User can ADD Cronejobs without file checking and hcron says is running. ![]() But when the file not exist it says runnign too. ![]() Greatz WuChEN RE: Writing CronJobs Web int. It's time! - data-stream_ru - 11-08-2009 09:39 PM (11-07-2009 09:28 PM)WuChEn Wrote: Works all fine. Is it running under command line? What is your OS? I have a chmod 0755 on cgi-bin and 0555 on *.cgi There simple php line if(!file_exists($file)) It Have no any error... Maybe php bug? What is your php version? Maybe you post any variable to script? RE: Writing CronJobs Web int. It's time! - WuChEn - 11-08-2009 11:47 PM Okay. On Commandline with user vu2000 not. With user vu2001 no Problems. By OS is Debian 5.0 Lenny. I´m using PHP 5.2.11-0.dotdeb.1. ![]() I´m using ISPCP 1.0.3 from the trunk. I think thats a chown Problem. /var/www/virtual/domain.tld/ has Owner : vu2001 and Group : www-data /var/www/virtual/domain.tld/htdocs/ has Owner : vu2001 and Group : vu2001 so the GUI with user and group vu2000 can´t acces the files to test. Greatz WuChEn RE: Writing CronJobs Web int. It's time! - data-stream_ru - 11-09-2009 01:35 PM Maybe... You can chown GUI group to www-data Or chown only cronjobs_add.php RE: Writing CronJobs Web int. It's time! - WuChEn - 11-09-2009 07:24 PM The GUI has group www-data. Problem is not solved. *g file check musst run as root or user that want to add. ![]() Any solution? ![]() Greatz WuChEn RE: Writing CronJobs Web int. It's time! - data-stream_ru - 11-10-2009 08:48 PM (11-09-2009 07:24 PM)WuChEn Wrote: The GUI has group www-data. Quote:so the GUI with user and group vu2000 ??? Quote:Any solution? If php script can't have permission to file which have one group, your system have bad configuration. Or your perl file haven't permission for group users. RE: Writing CronJobs Web int. It's time! - WuChEn - 11-10-2009 10:34 PM ok, i try again to describ the problem. the ispcp gui has user: vu2000 group: www-data so it runs with rights from vu2000. user files has user: vu2001 group: vu2001 cronejob_add and cronejob_edit runs as vu2000 because the gui run as user vu2000. and vu2000 has no acces to user files. if i run in console sudo -u vu2000 perl /var/www/virtual/domain.tld/htdocs/file.pl Could not open input file: /var/www/virtual/domain.tld/htdocs/file.pl if i run in console sudo -u vu2001 perl /var/www/virtual/domain.tld/htdocs/file.pl it runs. ---- When a user Upload a file it becomes user and group vu2001 or vu2002. FTP Users can´t change Owner ir Group. So i must find a way, that the user vu2000 ( ISPCP GUI ) can check files and permission from files with user:group vu2001:vu2001. I Use ISPCP 1.0.3 and someone has tel me that 1.0.0 have other folder rights than 1.0.3. ![]() Sorry for my bad english, i´m from germany. ![]() Greatz WuChEn |