|
|||
|
C'? qualcuno che utilizza come motore per i banner Phpadsnew?
Io utilizzo la 2.0 e nel manuale amministratore spiega che Phpadsnew potrebbe non funzionare correttamente se non viene lanciato ogni ora un file di manutenzione che risiede nella directory di phpadsnew. Ho visto che sul cpanel c'? anche la funzione cron job. Chi mi aiuta a configurarla? Ecco cosa c'? scritto: phpAdsNew uses a special maintenance script to activate campaigns, recalculate priorities, clean up statistics and send out advertiser reports. The maintenance scripts needsto run every hour for phpAdsNew to function correctly. There are many different ways to automatically schedule the maintenance script, some of which are described below. The most common way to schedule a task on Linux and UNIX based servers is to use the cron daemon. Scheduling tasks on Linux and UNIX based servers If you are using Linux server or a Unix based server such as BSD, Sun or MacOS X you can use the cron daemon to automatically run the maintenance.php file. You can edit your scheduled tasks using the crontab utility. If you don't have permission to use crontab, please contact your service provider or server administrator. In most cases you will need shell access to your server to add a new scheduled task. After using telnet or ssh to login to your server use the following command to export your existing scheduled tasks to a text file: Codice:
crontab -l > cron.txt curl, fetch, lynx or wget. To find out which is supported by your server simply type the name of the tool on the command-line. If you get a message ?command not found? the tool isn?t supported on your server. Based on which tool your server supports add one of the following lines to the cron.txt file: Codice:
# if your server supports curl: 0 * * * * curl -s -o /dev/null http://your.server.name.here/phpAdsN...aintenance.php # if your server supports fetch: 0 * * * * fetch -o /dev/null http://your.server.name.here/phpAdsN...aintenance.php # if your server supports lynx: 0 * * * * lynx > /dev/null -dump http://your.server.name.here/phpAdsN...aintenance.php # if your server supports wget: 0 * * * * wget -q -O /dev/null http://your.server.name.here/phpAdsN...aintenance.php Codice:
crontab cron.txt Grazie |
|
|||
|
Risolto il cron job.
L'istruzione da inserire ? quella con il tool wget. Ovviamente dal cpanel sono entrato nelle funzioni avanzate (unix) del cron job. Ora si che il phpadsnew funziona bene. Alla mezzanotte ha inviato le email con le stats a tutti i miei sponsor che fanno girare i propri banner sul mio sito web. Fa tutto da solo ormai... ed il nostro hoster ? anche pi? contento visto che le tabelle risultano sempre ottimizzate.
|
|
|||
|
Ho tentato di eseguire le istruzioni riportate nella guida amministratore di phpAdsNew con una prima istallazione "manuale" (non avevo utilizzato Fantastico, ma l'istaller e le procedure di phpAdsNew 2.0) e poi con una seconda istallazione, stavolta da Fantastico, in una nuova sottocartella (sempre v2.0)...
Ho configurato il Cron Job, utilizzando sia il tool curl (suggeritomi in un ticket) sia il tool wget (indicato in questo topic), su entrambe le istallazioni. Nel caso del tool curl ricevo questo messaggio: Codice:
/bin/sh: line 1: curl: command not found Codice:
/bin/sh: line 1: /usr/bin/wget: Permission denied :?: per far funzionare questo benedetto script di manutenzione ora che faccio??? Attualmente sono bloccato: senza questo script, non mi pare il caso di inserire inserzionisti e banner anche nella seconda istallazione! Grazie |
|
|||
|
Citazione:
GRAZIE |
|
|||
|
Citazione:
Ho usato sia wget che lynx e tutti e due mi danno il messaggio: /bin/sh: line 1: /usr/bin/lynx: Permission denied |
|
|||
|
il dominio ? gioielleriariga.it
a quali "connessioni persistenti nel file di configurazione dello script", fa riferimento? Io lo script non l'ho configurato, ma l'ho installato dal pannello "Fantastico". O fa riferimento al "Cron Job"? In ogni caso intato disabilito quello. |
![]() |
| Strumenti discussione | |
| Modalità visualizzazione | |
|
|
Discussioni simili
|
||||
| Discussione | Autore discussione | Forum | Risposte | Ultimo messaggio |
| Aggiornamento PhpAdsNew | smal | Suggerimenti | 1 | 19-08-2005 21.05.37 |