The web design landscape for 2024 is set to be a dynamic and revolutionary one, with a blend of evolutionary and reactionary trends. From sci-fi-inspired design to adaptive headers and teleprompter typography, the upcoming year will witness a diverse range of innovative approaches. Additionally, bold and experimental typography, dark mode design, 3D elements, virtual reality...
Over the last few weeks I’ve tried everything to get a simple cron job test running on 1and1 dedicated linux hosting. Although the test PHP file would run fine in the browser and again run fine from a SSL command it just would not run from crontab. All I kept getting was a “Could not open input file:” error.
I tried making sure the path to the php CLI/CGI/Executable was correct but that made no difference. I added #!/usr/bin/php to the top of the php file, still no joy. I tried adding the -q and -f commands, still nothing. I changed file permission, nowt. Everytime it ran it just gave the same “Could not open input file:” error until this morning I wanted to try and track everything that was happening when crontab tried to run the php script so I ended up trying to write the output to a cron.log file. The first thing I did was add an extra bit to the crontab entry that would save to the log file like this…
>> /home/######/cron.log
And suddenly it just worked! So, to make that clear, this wasn’t working…
45 1 * * * /usr/bin/php /home/#####/public_html/system/application/views/ImportRSS.php
But this did work…
45 1 * * * /usr/bin/php /home/#####/public_html/system/application/views/ImportRSS.php >> /home/######/cron.log
For some reason adding the log file entry after the script path got it going. Maybe crontab was expecting it to log something and without the reference to the log file it wasn’t running. Who knows. I’m just glad its working and hopefully this will save someone the hours and hours I’ve wasted over such a simple solution.
- Latest Inspiring Web Design Trends And Techniques For 2024 - January 25, 2024
- The Unrivaled Excellence of our Web Design Agency Canterbury - January 11, 2024
- Arxygen website, product UI and branding - January 8, 2024