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.


Messages - ~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
Scripts / Re: CWP Pro Terminal Fails to load with a blank (black) Screen
« on: October 03, 2023, 07:00:52 AM »
I finally got it to work after three years!

Thank you.

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

4
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.

5
CentOS-WebPanel GUI / Re: How to enable Terminal for Users?
« on: August 27, 2021, 04:56:32 PM »
browse to on your CWP server this link:  admin/index.php?module=list_accounts

Or click on User Accounts > List Accounts

Click on settings of the account you want to give shell / terminal access to, this will take you to  "Account Edit" settings.

On the very bottom there is the option for shell access. Click to select it then click save.

See this CWP instruction video: https://youtu.be/oOomaRc7n9c

using "admin/index.php?module=chshell" you can manage the shell access parameters.

6
CentOS-WebPanel GUI / Re: CWP edited php.ini blank panel just a WSOD
« on: August 26, 2021, 02:13:29 AM »
Solved the issue.

I placed an "M" following the numerical value.

Simple fix now I am going to back it up. :-)

7
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.

8
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!


9
MySQL / Re: mysqli_connect
« on: August 13, 2021, 07:20:41 PM »
I have this issue as well.

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 lastest 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!


10
Updates / Re: MariaDB update failed
« on: December 10, 2020, 08:48:46 PM »
@sandeep

I followed your how to on how to upgrade MariaDB following this instruction set: https://forum.centos-webpanel.com/index.php?topic=9471.msg33152#msg33152

It worked, thanks for the support you give it is the best IMHO

Now I have this issue in CWP admin (using CWPpro) in the  services status panel it displays "MySQL Database Server" = failed

"The status log reads:  InnoDB: Unable to lock ./ibdata1 error: 11
[Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files."

How does one go about clearing this up?

Running on CentOS 7.5


11
Installation / Re: The big Question
« on: March 11, 2020, 12:54:24 AM »
Good to know. Thank you.

Simple workaround.  Create an account with the domain localhost.localdomain.  << DOesn't server anything.  Addon domains now got to /public_html/mydomainname.com

Now public_html doesn't have to server any website.

Of course you could always create your own template for apache/nginx
Location of the files: /usr/local/cwpsrv/htdocs/resources/conf/web_servers/ | http templates = .tpl | https templates = .stpl |

Create a new template that points your main domain to public_html/(domian), and use that template for your website.   Custom templates will not get overwritten.

Pages: [1]