Current time: 05-19-2024, 06:22 AM Hello There, Guest! (LoginRegister)


Post Reply 
Writing CronJobs Web int. It's time!
Author Message
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #33
RE: Writing CronJobs Web int. It's time!
(11-04-2009 05:54 PM)WuChEn Wrote:  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

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(!file_exists($file)) {
    set_page_message(tr('File not found!'));
    return;
    } //No file!

if(!is_readable($file)) {
    set_page_message(tr('File not readable!'));
    return;
    }; //Wrong permissions!

if(strpos("cgi",$file) || strpos("pl",$file)) // only for cgi and pl and so..
{
    if(!is_executable($file)) {
    set_page_message(tr('Wrong permissions!'));
    return;
    }; //Wrong permissions!
}
*/ 

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.
(This post was last modified: 11-07-2009 02:52 PM by data-stream_ru.)
11-07-2009 02:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Writing CronJobs Web int. It's time! - data-stream_ru - 11-07-2009 02:45 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)