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

Pages: 1 ... 19 20 [21] 22 23 ... 29
301
Installation / Re: Installation guide wrong
« on: October 01, 2024, 03:34:51 PM »
CentOS Stream 8 has reached end of life on May 31, 2024.

Use Almalinux 8/9 or Rocky Linux 8/9 or Oracle Linux 8 for CWP.

I recommend to use Almalinux 8.


302
There is no "best" scenario because it depends on many factors. Some factors are your system administration skill and linux knowledge. So if you are very skilled system administrator and knows how linux works then you can try to Elevate your server/VPS to Almalinux 8/9. If you aren't very skilled then prepare a new fresh server and migrate your accounts from the old server to new using CWP migration tools.

Please don't be offended but if you ask such questions and need "step by step" instructions then it means you have average system administration skills and linux knowledge. Therefore you could be unable to fix unmet dependencies during the ELevating. That is why I think the way of migration/transfer should be best for you. ;)

303
CSF Firewall / Re: unlock ip
« on: September 30, 2024, 12:29:41 PM »
CWP doesn't have API calls for CSF to manage firewall rules, blocked/allowed IPs.

304
Installation / Re: ClamAV will not start - keeps disabling
« on: September 30, 2024, 12:23:26 PM »
1. Open CWP admin and go to "Email" --> "MailServer Manager", make sure "ClamAV, Amavis & Spamassassin, Requires 2Gb+ RAM" is checked (enable other options if necessary) then "Rebuild Mail server" (button at the bottom section of the page).

2. Wait some time and check the output to make sure all services are installed and run successfully.

If ClamAV doesn't work then access the server as root over SSH and try:

Code: [Select]
systemctl enable clamd
service clamd start

Pay attention to free RAM of your VPS/server because Clamd likes to eat RAM a lot :)

305
CentOS Configuration / Re: How to setup user quotas ?
« on: September 29, 2024, 11:05:54 AM »
Did you check real disk usage using "du", repquota, etc ? Are there some files located outside of the account and owned by your user ?

306
CentOS 9 Problems / Re: Monit do not have the PHP-FPM83 configuration file
« on: September 28, 2024, 11:16:58 AM »
I don't use Monit personally and can't tell you why CWP doesn't configure it to monitor php-fpm for PHP 8.3. Anyway, review this tutorial:
https://www.awsmonster.com/cwp-how-to-monitor-cwp-server-services
it should help you to understand where Monit's config files are stored. Therefore you can add the necessary settings for php-fpm of php 8.3 using the settings for php-fpm of php 8.1, 8.2. etc. I do believe the changes will be minor.

307
I can build it / Re: Apache Status - Accesses
« on: September 26, 2024, 06:26:28 PM »
In case the server is configured to use the webserver config like: Nginx+Apache, Nginx+Varnish+Apache then the script must be changed to:

Code: [Select]
<?php
// Apache Status - Accesses v0.4

$url "http://localhost:8181/server-status";
$ch_session curl_init();
curl_setopt($ch_sessionCURLOPT_RETURNTRANSFER1);
curl_setopt($ch_sessionCURLOPT_URL$url);
$result_url curl_exec($ch_session);
echo 
$result_url;

?>

Additionally, to see the reals IPs of the visitors the module mod_rpaf should be replaced with the module mod_remoteip in the main apache config and configured accordingly. In other case the main IP address of the server will be shown as the visitor's IP.

308
Quote
Therefore, what about the PHP 7.4?

Is it still OK to use PHP 7.4 for the main server?

Actually, PHP 7.4 is EOL:
https://www.php.net/supported-versions.php
If you want to change it then you can do it here:
CWP admin --> PHP Settings --> PHP Version Switcher.
On my optinion, PHP 8.1 or any higher version will be ok.

It will change the PHP version used by the main webserver too and leave PHP-FPM versions intact.

309
E-Mail / Re: End-toEnd Encryption of emails
« on: September 26, 2024, 05:45:20 PM »
I think you can find detailed answers about ETEE on the FAQ section of the Thunderbird's website here:
https://support.mozilla.org/en-US/kb/openpgp-thunderbird-howto-and-faq

Actually, you don't need to install any extra software on the server to support ETEE. You just need to add/import keys (public/private) to each mail application you use to manage emails.

310
To check which version of PHP is used by the website create a .php script with the following content:

Code: [Select]
<?php
phpinfo
();
?>

in the document root (home folder) of the website and then access it over:
http://domain.com/script.php
Remove the script after the test for security reasons.

Also, what do you get when you run:

Code: [Select]
php -vin the command prompt (shell) of your server ?


311
Installation / Re: Install fresh or elevate to Alma 8?
« on: September 26, 2024, 03:09:44 PM »
I recommend to install a fresh server, configure it according to your requirements and then migrate all accounts from the old server to new.

If you upgrade your current server using "elevate" then some software requirements/dependencies could be unmet and it will fail the whole migration process. So if you want to upgrade using elevate then it is better to make backup/snapshot of the production server before upgrade.

312
Postfix / Re: postfix only allow PDF attachments
« on: September 26, 2024, 01:06:41 PM »
Try the following regular expression:

Code: [Select]
/name=[^>]*\.\w{3}(?<!pdf)/ REJECT attachments not allowed
or

Code: [Select]
/^Content-Disposition:.*filename=.*\.\w{3}(?<!pdf)/ REJECT attachments not allowed
However, you need to check the above rules very closely.

313
PHP / Re: can't install new php version on PHP-FPM
« on: September 26, 2024, 09:48:14 AM »
Do you have any solution for this issue?

It looks like the provided build log is incomplete. There are a lot of errors like "No such file or directory".

If you have similar problem then try to build/update PHP and then provide us with your build log.

314
There is some problem associated with access permissions:

Code: [Select]
2024/09/25 09:27:17 [error] 28033#0: *12840 FastCGI sent in stderr: "PHP message: PHP Warning:  fopen(/home/gente/cron): failed to open stream: Permission denied in /usr/local/cwpsrv/var/services/user_files/modules/crontab/index.php on line 0
Try:

Code: [Select]
chown gente.gente /home/gente/cron
chmod 660 /home/gente/cron

and then check if the problem remains. If it still exists then check logs again.

315
Update CWP up to the latest stable version.

If the problem remains then look for errors in the file:
Code: [Select]
/usr/local/cwpsrv/logs/error_log

Pages: 1 ... 19 20 [21] 22 23 ... 29