Buonasera,
ho un problema di questo tipo, con la schedula di un comando:
/usr/bin/php /var/www/html/scalare/mailScalare.php >> /var/log/controllaScalare.log
ottengo questo errore:
PHP Warning: require(/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/html/scalare/mailScalare.php on line 12
PHP Fatal error: Uncaught Error: Failed opening required '/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php:/usr/share/pear:/usr/share/php') in /var/www/html/scalare/mailScalare.php:12
lo script php lanciato da web funziona correttamente ma da console si 'arrabbia'
sapete darmi una dritta?
Grazie
F
crontab e php
Re: crontab e php
Please note that this is an English only forum and that I've never seen anyone here make fun of another poster's English. So please use English in the future, even if you have to use google translate.
Anyway, running this through google translate, I get.
I have a problem like this, with the scheduling of a command:
i get this error:
the php script launched from the web works correctly but from the console it gets 'angry'
can you give me a tip?
Anyway, running this through google translate, I get.
I have a problem like this, with the scheduling of a command:
i get this error:
Code: Select all
PHP Warning: require(/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/html/scalare/mailScalare.php on line 12
PHP Fatal error: Uncaught Error: Failed opening required '/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php:/usr/share/pear:/usr/share/php') in /var/www/html/scalare/mailScalare.php:12
can you give me a tip?
New users should check the FAQ and Read Me First pages
Re: crontab e php
I'd guess there's some variable in the code that is not set when run from the command line.
Try grep -ir autoload.php /var/www/html/scalare/ and see if the line of code actually says something like 'require($SOMEPATH/vendor/autoload.php[/tt] and if so then set the correct variable.
Or maybe you're not meant to invoke it that way and you're doing it wrong. Sounds like a question for whoever wrote 'scalare'.
Try grep -ir autoload.php /var/www/html/scalare/ and see if the line of code actually says something like 'require($SOMEPATH/vendor/autoload.php[/tt] and if so then set the correct variable.
Or maybe you're not meant to invoke it that way and you're doing it wrong. Sounds like a question for whoever wrote 'scalare'.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke