Поэтому я довольно новичок в Cron Jobs, и я столкнулся с стеной, пытаясь заставить эту конкретную работу cron работать. Все, что я хочу, – это доступ к веб-странице PHP ежедневно. Получив доступ к странице PHP, задание cron активирует скрипт, внутри которого отправляется электронное письмо определенным пользователям. Вот код задания cron:
php -q /home/sitename/public_html/scripts/emailnotifications.php
К сожалению, каждый день в 1:00 я получаю это сообщение об ошибке, и никто не получает их электронную почту.
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.
У меня нет доступа к серверу на сервер или доступа к файлам настроек сервера (кроме php.ini). Что мне делать, чтобы запустить этот скрипт ежедневно?
Похоже, вы скопировали свой полный php.ini со своего компьютера Windows (возможно, в среде разработчиков) на удаленный сервер, на котором запущен некоторый дистрибутив Linux.
Расширения, перечисленные в вашем xampp, при условии, что php.ini не будет работать таким образом там. Если вы уверены, что хотите скопировать весь php.ini с вашего компьютера-разработчика (вам, скорее всего, это не понадобится), вам, вероятно, придется удалить или отредактировать строки extension=
чтобы они соответствовали окружающей среде (они, скорее всего, должны заканчивайтесь .so
по крайней мере и имеете другой путь). Проверка всех параметров, связанных с каждой дорогой, также будет разумной.
(Использование полных путей в каждом extension=
строка глупо, поскольку есть extension_dir
)