Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ~Q~

Pages: [1]
1
Addons / Cron on Nextcloud
« on: November 16, 2023, 07:20:57 AM »
I tried to use Cron but for what ever reason I did not figure cron out the way Nexcloud docs say it should be.

In Nextcloud Admin panel there are three choices.
AJAX <--- Only good for one user
WEBCRON <--- Supposed to be good for 1-5 users
CRON <--- They way it should be done

I did get webcron to work though.


I created this cron job in the end user control panel: 

Code: [Select]
/usr/bin/wget -O - https://YOUR-NEXCLOUD-SERVER.COM/cron.php >/dev/null 2>&1

This is what Nexcloud says is the prefered method:

Code: [Select]
crontab -u www-data -e
And append this line:

Code: [Select]
*/5  *  *  *  * php -f /var/www/nextcloud/cron.php

Source: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html

When I try it the error is that it needs sudo to do "-u" but it needs to be done by the account directory owner.
Nextcloud says it must be done by the directory owner. It is not a such a good idea to give a enduser account shell access with sudo

When I  use "crontab -u www-data -e" with sudo cenos says there is no " www-data" user. <--- what would it be called in CWP?

Any idea how to accomplish this?



O

2
Other / No SSL @ centos-webpanel.com
« on: October 03, 2023, 03:23:02 AM »

3
Other / How to block a domain name based bot from crawling the server.
« on: April 23, 2022, 08:28:11 PM »
 I want to block a bot coming from turing.threedgraphics.com

It crawls the server day and night.
Can you point me to a howto on how to block it on a CWP CentOS server.
Thank you.

4
CentOS-WebPanel GUI / CWP edited php.ini blank panel just a WSOD
« on: August 25, 2021, 09:29:16 PM »
CWP is just a WSOD (White Screen Of Death)

both 2031 and 2087

What I did:
nano /usr/local/cwp/php71/php.ini
added increased values to the max_limit etc.

What I did not do...
I did not back up the php.ini...

Can some one paste a standard or default CWP copy here?

Thanks.

5
MySQL / MariaDB - How to rescue the databases?
« on: August 13, 2021, 07:43:59 PM »
I did as instructed via the error message from CWP:

Quote
"**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf"
I have purchased support so I put in a ticket.

They got MariaDB working again but said I have lost all my data and need to restore from a back up...?

The thing of it is the /var/lib/mysql/  files are still there.

CWP and phpMyadmin where giving me infinite login loops for a couple of hours but that now seems to be working... but not really...

I go to upload one database using phpMyAdmin and I get errors Like the following error:


Quote
#1010 - Error dropping database (can't rmdir './DATABASE_IS_here', errno: 39 "Directory not empty")

I just preformed the following:

Quote
service mariadb stop

$mkdir /OLDMYSQL-DIR

cd /OLDMYSQL-DIR
tar cvf mysql-olddirectory.tar /var/lib/mysql gzip mysql-olddirectory.tar

service mariadb start


The day before this happened I did yum update and MariaDB was updated.


HOW CAN I RESCUE MY MYSQL DATABASES?

The latest support ticket I submitted was hours ago and one yesterday to ask what they did and how there was databases losses... I have still yet to here back.

I am worried that CWP is broke and that my databases are in jeopardy!


Pages: [1]