manager - Error de Cron Daemon Con el trabajo de PHP Cron
php crontab manager (1)
Parece que copió su php.ini completo desde su máquina de Windows (probablemente el entorno de desarrollo) hasta un servidor remoto que está ejecutando alguna distribución de Linux.
Las extensiones enumeradas en su php.ini provisto por xampp no funcionarán de esta manera allí. Si está seguro de que desea copiar todo el php.ini de su máquina de desarrollo, (lo más probable es que no lo necesite), probablemente tendrá que eliminar o editar las líneas de extension=
para adaptarse al entorno (lo más probable es que deberían terminar con .so
al menos y tener una ruta diferente). Revisar todos los ajustes relacionados con la ruta también sería acertado.
(Usar rutas completas en cada extension=
línea es tonto ya que hay extension_dir
)
Así que soy bastante nuevo con Cron Jobs y me he topado con una pared tratando de hacer funcionar este trabajo cron específico. Todo lo que quiero es tener acceso a una página web de PHP a diario. Al acceder a la página PHP, la tarea cron activará la secuencia de comandos dentro de la cual se envía un correo electrónico a usuarios específicos. Aquí está el código de trabajo cron:
php -q /home/sitename/public_html/scripts/emailnotifications.php
Desafortunadamente, todos los días a la 1 AM, recibo este mensaje de error y nadie recibe su correo electrónico.
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_bz2.dll'' -
C:/xampp/php/ext/php_bz2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_bz2.dll'' - C:/xampp/php/ext/php_bz2.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_mbstring.dll'' - C:/xampp/php/ext/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_mbstring.dll'' - C:/xampp/php/ext/php_mbstring.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_exif.dll'' - C:/xampp/php/ext/php_exif.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_exif.dll'' - C:/xampp/php/ext/php_exif.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_gd2.dll'' - C:/xampp/php/ext/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_gd2.dll'' - C:/xampp/php/ext/php_gd2.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_gettext.dll'' - C:/xampp/php/ext/php_gettext.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_gettext.dll'' - C:/xampp/php/ext/php_gettext.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_imap.dll'' - C:/xampp/php/ext/php_imap.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_imap.dll'' - C:/xampp/php/ext/php_imap.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_mysql.dll'' - C:/xampp/php/ext/php_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_mysql.dll'' - C:/xampp/php/ext/php_mysql.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_mysqli.dll'' - C:/xampp/php/ext/php_mysqli.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_mysqli.dll'' - C:/xampp/php/ext/php_mysqli.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_pdo_mysql.dll'' - C:/xampp/php/ext/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_pdo_mysql.dll'' - C:/xampp/php/ext/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_pdo_odbc.dll'' - C:/xampp/php/ext/php_pdo_odbc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_pdo_odbc.dll'' - C:/xampp/php/ext/php_pdo_odbc.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_pdo_sqlite.dll'' - C:/xampp/php/ext/php_pdo_sqlite.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_pdo_sqlite.dll'' - C:/xampp/php/ext/php_pdo_sqlite.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_soap.dll'' - C:/xampp/php/ext/php_soap.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_soap.dll'' - C:/xampp/php/ext/php_soap.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_sockets.dll'' - C:/xampp/php/ext/php_sockets.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_sockets.dll'' - C:/xampp/php/ext/php_sockets.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_sqlite.dll'' - C:/xampp/php/ext/php_sqlite.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_sqlite.dll'' - C:/xampp/php/ext/php_sqlite.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_sqlite3.dll'' - C:/xampp/php/ext/php_sqlite3.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_sqlite3.dll'' - C:/xampp/php/ext/php_sqlite3.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_xmlrpc.dll'' - C:/xampp/php/ext/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_xmlrpc.dll'' - C:/xampp/php/ext/php_xmlrpc.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_ming.dll'' - C:/xampp/php/ext/php_ming.dll: cannot open shared object file: No such file or directory in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library ''C:/xampp/php/ext/php_ming.dll'' - C:/xampp/php/ext/php_ming.dll: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: Cannot open ''C:/xampp/php/extras/browscap.ini'' for reading in Unknown on line 0
<br />
<b>Warning</b>: Cannot open ''C:/xampp/php/extras/browscap.ini'' for reading in <b>Unknown</b> on line <b>0</b><br />
No input file specified.
No tengo acceso de shell al servidor ni acceso a ningún archivo de configuración del servidor (excepto php.ini). ¿Qué debo hacer para que este script se ejecute diariamente?