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

Pages: 1 2 [3] 4 5 ... 7
31
Apache / Re: Serve index.php first than index.html
« on: March 13, 2022, 10:50:20 PM »
hi you can set Directory Index in htaccess or globally change it here /usr/local/apache/conf/httpd.conf
search for DirectoryIndex

example :

Code: [Select]
<IfModule dir_module>
DirectoryIndex index.php index.html.var index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.phtml default.htm default.html home.htm index.php5 Default.html Default.htm home.html
</IfModule>

Thank you!

32
Information / Re: CentOS Stream Delayed Question
« on: March 13, 2022, 10:42:45 PM »
Sorry for kidnap the topic but I have this:
[root@moon ~]# ls -all /etc/yum.repos.d
total 136
drwxr-x---.   2 root root  4096 Mar  8 04:29 .
drwxr-xr-x. 121 root root 12288 Mar 13 11:44 ..
-rw-r--r--.   1 root root   718 Feb 28 05:02 CentOS-Linux-AppStream.repo.rpmsave
-rw-r--r--.   1 root root   703 Feb 28 05:02 CentOS-Linux-BaseOS.repo.rpmsave
-rw-r--r--.   1 root root  1129 Feb 28 05:02 CentOS-Linux-ContinuousRelease.repo.rpmsave
-rw-r--r--.   1 root root   731 Feb 28 05:02 CentOS-Linux-Devel.repo.rpmsave
-rw-r--r--.   1 root root   703 Feb 28 05:02 CentOS-Linux-Extras.repo.rpmsave
-rw-r--r--.   1 root root   718 Feb 28 05:02 CentOS-Linux-FastTrack.repo.rpmsave
-rw-r--r--.   1 root root   739 Feb 28 05:02 CentOS-Linux-HighAvailability.repo.rpmsave
-rw-r--r--.   1 root root   705 Feb 28 05:02 CentOS-Linux-Plus.repo.rpmsave
-rw-r--r--.   1 root root   723 Feb 28 05:02 CentOS-Linux-PowerTools.repo.rpmsave
-rw-r-----    1 root root   807 Jan 19  2021 CWP-CentOS-Stream-AppStream.repo
-rw-r-----    1 root root   785 Jan 19  2021 CWP-CentOS-Stream-Base.repo
-rw-r-----    1 root root   879 Jan 19  2021 CWP-CentOS-Stream-centosplus.repo
-rw-r-----    1 root root  1205 Jan 19  2021 CWP-CentOS-Stream-ContinuousRelease.repo
-rw-r-----    1 root root   666 Dec 19  2019 CWP-CentOS-Stream-Debuginfo.repo
-rw-r-----    1 root root   810 Jan 19  2021 CWP-CentOS-Stream-Devel.repo
-rw-r-----    1 root root   829 Jan 19  2021 CWP-CentOS-Stream-Extras.repo
-rw-r-----    1 root root   801 Jan 19  2021 CWP-CentOS-Stream-FastTrack.repo
-rw-r-----    1 root root   829 Jan 19  2021 CWP-CentOS-Stream-HighAvailability.repo
-rw-r-----    1 root root   932 Dec 19  2019 CWP-CentOS-Stream-Media.repo
-rw-r-----    1 root root   806 Jan 19  2021 CWP-CentOS-Stream-PowerTools.repo
-rw-r-----    1 root root  1374 Dec 19  2019 CWP-CentOS-Stream-Sources.repo
-rw-r-----    1 root root    74 Dec 19  2019 CWP-CentOS-Stream-Vault.repo
-rw-r--r--    1 root root   146 Mar  5 11:51 cwp.repo
-rw-r--r--    1 root root  1485 Jan 31 16:19 epel-modular.repo
-rw-r--r--    1 root root  1434 Mar  5 11:51 epel.repo
-rw-r--r--    1 root root  1584 Jan 31 16:19 epel-testing-modular.repo
-rw-r--r--    1 root root  1521 Jan 31 16:19 epel-testing.repo
-rw-r--r--    1 root root   279 Mar  5 11:51 mariadb.repo
-rw-r-----    1 root root   109 Mar 13 03:23 nginx.repo
-rw-r--r--    1 root root   603 Mar  7 17:17 varnishcache_varnish64.repo

I saw some duplicated repos for example CentOS-Linux-AppStream.repo.rpmsave and CWP-CentOS-Stream-AppStream.repo the extension .rpmsave meaning that this repo is not active?

33
Apache / Serve index.php first than index.html
« on: March 12, 2022, 09:07:45 AM »
I updates Apache to version 2.4.52, and some sites on the server start showing the default cwp page, this happens because the index.html start being handle before the index.php, the websites where I forget to delete the index.html are getting problems.

How can I change the settings to restore the previous configuration and start serve first the .php files?

I use Apache with nginx and use php cgi.

34
E-Mail / Re: How to change MX record to subdomain?
« on: March 11, 2022, 06:14:01 PM »
Yes with cwp I know that the MX record is only the domain, my question is there are any way to create a subdomain and use it on the MX record?

I have a subdomain mail.domain.com that is pointing to the server, but if I use that subdomain on the MX record the emails I never receive any email.

35
E-Mail / How to change MX record to subdomain?
« on: March 10, 2022, 04:30:22 PM »
In many panels the MX record is something like "mail.domain.com", but in cpanel the MX record is only the domain in this example is "domain.com".

If I set a different mx record for example "mail.domain.com" even if that subdomain points to the server I don't receive any email, how can we create a different mx record that works?

36
PHP / Re: PHP 7.4 Startup: snuffleupagus: Unable to initialize module
« on: March 07, 2022, 08:26:23 PM »
Did you solve this problem? I have the same problem

37
I have multiple accounts in my server most of the users have a limit of 40 processes at the same time, but in the last days some of the wordpress websites are getting hit by some bots doing login attemps, the problem is that in that times the cwp don't limit the number of proccess, and an account can have many more processes that was supposed.

I'm using netdata, and I can check the number of processes in a specific time:

As you can check the user dietafin have 269 processes at the same time that account should be limited to 40processes.

What is wrong and how can I force the limit to be applied?

38
Backup / Storage Box Hetzner via SSH
« on: February 28, 2022, 06:18:16 PM »
Storage Box from hetzner.com are a cheap option to create remote backups it supports rsync via SSH but I can't make it work.

Anyone have already tested it? If I ran on the server the rsync command it connects to the storage box, but I have tried both the regular and the new backup system an can't connect.

I think the SSH connection to storage box it's really limited it only can be done directly from the rsync command something like this:
rsync --progress -e 'ssh -p23' --recursive <local_directory> <username>@<username>.your-storagebox.de:<target_directory>

Documentation here - https://docs.hetzner.com/robot/storage-box/access/access-ssh-rsync-borg

I'd like to enable the new backup system using incremental backup via SSH, I thought it use rsync command but probably it try to connect first to do something and it fails.
Any help?

39
Installation / Re: Centos 7 still the recommended version?
« on: February 28, 2022, 06:11:21 PM »
I read some where if your on centos 8 stream you cant migrate to any thing after that i moved to rocky linux 8 and every thing is working fine.

I also read that and it's other reason that probably make me go for the centos 8 stream delayed

40
Installation / Re: Centos 7 still the recommended version?
« on: February 28, 2022, 01:45:41 PM »
yes, centos 7 is still the most covered with all services while el8 is now also mostly all covered including cwp kernel.
So it's up to you about the version you want to select, note that el7 to el8 update is not possible, however, there is a cwp-to-cwp migration tool for account migration.

But there are any relevant service that it not covered in el8? Or some known important bug?
It's a little annoying to buy a new server and know that in 2 years I will need to move everything from there.

41
Installation / Centos 7 still the recommended version?
« on: February 28, 2022, 11:47:24 AM »
I will buy a new server I read on the official documentation that Centos 7 is the recommended version, we also have the centos 8 stream delayed or even Rocky Linux. This information is updated? Do you still recommend Centos 7?

When the Centos 7 reach the end of life it's possible to update for example to Centos Stream or I will need to create a new installation and migrate manually everything?

It's a little strange to install a OS with about 2 years of life, it's a lot of work to migrate websites and emails and everything related

42
Apache / Re: nginx -> apache -> php-fpm VS nginx -> php-fpm
« on: February 28, 2022, 09:15:38 AM »
using apache allows you to have more flexibility as for nginx all config needs to be done in the nginx vhost conf file,
while apache is more flexible with additional modules and rules like with htacces, PHP custom configuration .user.ini ...and even some scripts will not work well with nginx only.

But with nginx -> apache -> php-fpm all regular htaccess rules will work like in my current config that is Nginx + Apache php-cgi?

yes and no. Everything will work normally in htaccess except the rules that nginx has been specifically configured to take over. Either way, the best server option is "nginx - varnish - apache - phpfpm"

In reallity at the moment in my current server  I have nginx - varnish - apache php-cgi, but I think varnish it not working. After reading a little but varnish seems a little tricky, we need to configure and test it on every website, I will host losts of client websites I don't want to implement anything that required a special configuration for each one.

I'm more interested in have a default configuration like nginx - apache - php-fpm and if I required for some website enable the nginx - varnish - apache - phpfpm

43
Apache / Re: nginx -> apache -> php-fpm VS nginx -> php-fpm
« on: February 27, 2022, 12:49:31 PM »
using apache allows you to have more flexibility as for nginx all config needs to be done in the nginx vhost conf file,
while apache is more flexible with additional modules and rules like with htacces, PHP custom configuration .user.ini ...and even some scripts will not work well with nginx only.

But with nginx -> apache -> php-fpm all regular htaccess rules will work like in my current config that is Nginx + Apache php-cgi?

44
Apache / nginx -> apache -> php-fpm VS nginx -> php-fpm
« on: February 27, 2022, 10:17:32 AM »
I found that CWP have a configuration that is nginx -> apache -> php-fpm what are the advantages of this instead of nginx -> php-fpm?

With nginx -> apache -> php-fpm can we still use .htaccess?

At the moment I'm using Nginx + Varnish + Apache php-cgi, I don't know exactly the impact of Varnish since I don't change any configuration but all websites work well.

Most of the examples on the internet use nginx + php-fpm or apache + php-fpm, I don't understand what are exactly the advantages of have nginx + apache + php-fpm

45
Backup / Retention of backup for the last X days
« on: February 21, 2022, 11:43:37 AM »
At the moment the regular backup system can do a daily, weekly and monthly backup, but it lacks a function for example to keep the last 3 daily backups. There are any way to have the last X daily backups?

With the new backup system we already can have a backup for each day this will required the have space for at least 7 days, there are any way to get only for the last X days, this is very common in many systems but I don't know how to implement it on CWP

Pages: 1 2 [3] 4 5 ... 7