Im a bit of a noob here so apologies if the question is stupid but… when I try to switch to Cron in the web interface of nextcloud, the web interface shows me that the change was made, my password is not asked from me by the system, then, when I refresh the page, the selection is back to AJAX and I dont seem to be able to move from AJAX to cron. I setup the cron tab to excecute each 5 minutes. In a previous installation following this tutorial → How to Install and Configure Nextcloud Hub 21 - Tech Guides.
I dont seem to be able to find any info about this online is it my error? Why is this happening!? How can i fix it!!?!
Thanks a lot once again. Im in a system that its intended for me to learn! Its been really great to learn linux hands on and thanks to people like you this chapter of human history becomes available to many noobs like me. Im super gratefully really.
About the installation, Its running on Ubuntu 20.4 and I did it Following this tutorial → https://techguides.yt/guides/how-to-install-and-configure-nextcloud-hub-21/ … If I understood correctly, they call this “the old fashioned way” of installing it, I didnt used Snap, just made it all in the command line.
I have what you said from the nextcloud directory. I got the following message! If possible, could you hint me towards where I could go to sort this one out?
That’s your main problem here, no driver is found to connect to the database. Judging from the installation guide you linked, you’re using mysql.
I’m not familiar with this error (although I’ve seen it a couple of times here in the forum, so a search might help), but can you check, which php version you’re running?
So use php -v and look at the output.
The guide installed php 8, but it might be possible that you also have 8.1 or the like installed, where the mysql driver is missing.
Another thing would be ls /usr/bin/php* to look up if there’re multiple php binaries. If it is the case, try using php8.0 instead of just php
I’ve ran into your exact error recently atfer trying to run occ commands. The Solution is easy.
In your Nextcloud, check what Version you’re running for PHP (Settings → System)
PHP
Version: 8.0.20
This is the PHP Version you want to use to execute the Command. Other installed Version do not work. Usually if you just type “php”, it will refer to the newest version present in your System.
This is a typical case of “Know your System and Tools”
You have to use the www-data User (Or whatever your webserver-user is, www-data is default most of the times). Also make sure to use sudo. Next you’re going to add the direct path to your php version (Under /usr/bin/version/ and the direct path to your nextcloud occ directory. Your Command should look like this now: