FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Two questions





starta
I have two questions.
1. What is the path to perl?

2. Can you enable cron jobs for me? :O
alskmaster
in the Cpaniel pre configured and of facil use has script.

But I do not know if it you will have the CPaniel or the DirectAdmin.

therefore post the images not explaining as if made. Crying or Very sad
starta
i have DirectAdmin. It can find the location of perl anywhere.
And cron jobs seem to be disabled. Sad
Bondings
I enabled cron jobs for you. It isn't enabled by default.

You can find the paths on http://www.site-helper.com/scripts.html .
Quote:
Path to perl: /usr/bin/perl


For more information about php settings, go to http://www.admin.frih.net/phpinfo.php .
alskmaster
starta wrote:
i have DirectAdmin. It can find the location of perl anywhere.
And cron jobs seem to be disabled. Sad


You can find tutorials about:
Autoresponder
Backups
Catch All
Email Forwarder
Error Pages
FTP Accounts
MySQL Database
Password Protect
POP3 Email
SPAM Filters
Subdomains
Support Tickets
Vacation Message


I found this site:
http://www.davlin.net/directadmin/da_tutorials.php
starta
Maybe i am doing something wrong but i can't even get a simple hello world script to work. I put the script in the cgi-bin with the name hello.cgi and set permissions to 777 but it doesnt work. Sad

Code:

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html>";
print "<head>";
print "<title>Test</title>";
print "</head>";
print "<body>";
print "<h1>Hello World</h1>";
print "</body>"; print "</html>";


[edit]
I just realised that i cant get cron job to work either.
I need to execute http://www.starta.frih.net/rss.php every 5 minutes.
Someone that can help me with the "code"?
starta
what tha heck ?! Very Happy cron jobs dont seem to work at all :S

I'm confused Sad
Bondings
starta wrote:
what tha heck ?! Very Happy cron jobs dont seem to work at all :S

I'm confused Sad

Your cron seems to be executed every 5 minutes according to the logs.

About the cgi, the 777 permission is not allowed (not secure). You need to change it to 755, 644 or something similar.
Quote:
[2005-10-25 14:14:54]: info: (target/actual) uid: (starta/starta) gid: (starta/starta) cmd: tc.cgi
[2005-10-25 14:14:54]: error: file is writable by others: (/home/starta/domains/starta.frih.net/public_html/cgi-bin/tc.cgi)
[2005-10-25 14:15:18]: info: (target/actual) uid: (starta/starta) gid: (starta/starta) cmd: tc.cgi
[2005-10-25 14:15:18]: error: file is writable by others: (/home/starta/domains/starta.frih.net/public_html/cgi-bin/tc.cgi)
starta
the CGI works now ;D
but does it still say in the logs that it executes every 5 min cause it doesnt seem to work. The file that it is supposed to write to doesnt get updated. If i run i manually ti works.
Bondings
starta wrote:
the CGI works now ;D
but does it still say in the logs that it executes every 5 min cause it doesnt seem to work. The file that it is supposed to write to doesnt get updated. If i run i manually ti works.

Maybe change the syntax of your cron a bit. Other people also use the cron jobs and it works for them. (at least they didn't tell me the opposite)
starta
i have tried with the following syntaxes.

5,10,15,20,25,30,35,40,45,50,55,0 * * * * /home/starta/domains/starta.frih.net/public_html/rss.php >/dev/null
5,10,15,20,25,30,35,40,45,50,55,0 * * * * GET http://www.starta.frih.net/rss.php MAILTO="linneuscool@hotmail.com"
5,10,15,20,25,30,35,40,45,50,55,0 * * * * GET http://www.starta.frih.net/rss.php >/dev/null
5,10,15,20,25,30,35,40,45,50,55,0 * * * * -e /home/starta/domains/starta.frih.net/public_html/rss.php >/dev/null
5,10,15,20,25,30,35,40,45,50,55,0 * * * * /usr/home/starta/domains/starta.frih.net/public_html/rss.php >/dev/null
*/5 * * * * /home/starta/domains/starta.frih.net/public_html/rss.php >/dev/null
Daniel15
To run a PHP script, you need to call the PHP binary. This is usally /usr/bin/php

So, you should use this as the command line:
/usr/bin/php -q /usr/home/starta/domains/starta.frih.net/public_html/rss.php

Your cronjob might look like:
5,10,15,20,25,30,35,40,45,50,55,0 * * * * /usr/bin/php -q /usr/home/starta/domains/starta.frih.net/public_html/rss.php > /dev/null
starta
thanks alot. i didnt know that. Smile i'll try it right away.
Related topics
Forrest Gump goes to heaven
[php/cookies] poll on two sites
Carl's Start-to-Finish Professional Website Tutorial
Linux installation
Ok Two Questions whic i really need answered :/
Wonders of the world
Two questions
Greetings, Introductions, and Questions ^_^;
Two Questions
two problems
Some not so commonly asked questions.
Two questions.
2 questions
Two questions about the file ".htaccess"
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.