[Not Solved]
Problem ssl subdomain access Control Panel 05-28-2024, 02:06 PM (This post was last modified: 05-28-2024, 10:25 PM by franmm25.)
All works fine and SSL for domains perfect, but if i have this domain, for example www.test.com and add cp in DNS for example for create cp.test.com and access to my admin CP all works, yes, but in the moment i create SSL for admin CP, all fail, and when access control panel from Ip or from for example subdomain, redirect as index of domain www.test.com, really no sense.
For Fix this situation i restore backup of vhosts apache configuration and restart apache, and until running daemon delete SSL for subdomain access Control Panel as Admin, and this fix all, but i think there are some problem because i see the file of vhosts of configuration and show well.
I don´t know if know from Sentora Team what happend, thanks
Quote:# Configuration for Sentora control panel. <VirtualHost *:443>
ServerAdmin info@test.com
DocumentRoot "/etc/sentora/panel/"
ServerName cp.test.com
<Directory "/etc/sentora/panel/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
SSLEngine On
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
SSLHonorCipherOrder on
SSLCipherSuite "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305HE-RSA-AES128-GCM-SHA256HE-RSA-AES256-GCM-SHA384"
SSLCertificateFile /var/sentora/hostdata/zadmin/ssl/sencrypt/letsencrypt/cp.test.com/cert.pem
SSLCertificateKeyFile /var/sentora/hostdata/zadmin/ssl/sencrypt/letsencrypt/cp.test.com/private.pem
SSLCACertificateFile /var/sentora/hostdata/zadmin/ssl/sencrypt/letsencrypt/cp.test.com/chain.pem
# Made from Sencrypt - letsencrypt - end
# Custom settings are loaded below this line (if any exist)
[Not Solved]
RE: Problem ssl subdomain access Control Panel 05-28-2024, 10:24 PM
I identified the problem and tested it and it is that when putting ssl to the Sentora subdomain, the same entry with the same port is repeated in httpd-vhosts.conf twice as 443 instead of once with port 80 and once with port 443, Changed manually and restarted Apache, it is accessed perfectly with http and https for the subdomain, but when the daemon runs it again overwrites the subdomain with 443 twice, I don't know what solution could be given to this, greetings
[Not Solved]
RE: Problem ssl subdomain access Control Panel 05-29-2024, 04:48 PM
(05-28-2024, 10:24 PM)franmm25 Wrote: I identified the problem and tested it and it is that when putting ssl to the Sentora subdomain, the same entry with the same port is repeated in httpd-vhosts.conf twice as 443 instead of once with port 80 and once with port 443, Changed manually and restarted Apache, it is accessed perfectly with http and https for the subdomain, but when the daemon runs it again overwrites the subdomain with 443 twice, I don't know what solution could be given to this, greetings
I would be glad to help. If I may start with a few questions.
- Is this a fresh install?
- What version were you using before, If any?
- What version are you currently using? Your profile stats Zpanel 10.x. Sencrypt does not support Zpanel.
- Have you used another SSL manager module in the past? if so what module?
This issue normally happens when Sencrypt is installed and does not have the proper Sentora core files/DB installed.
Sencrypt requires Sentora v2.0.1+.
-Jettaman-
NEW: Sentora v.2.0.1 has been released!!!
Sentora's quick recovery depends on community support and donations. We need to stand as one and help Sentora into the future.
Donate HERE and do your part. We thank you for your support.
Also i test in another server with fresh install han happend the same, only fail when install SSL for subdomain access CP, nothing more.
The problem is in vhost repeat the same port 2 times only for subdomain CP, is strange because the 2 configurations is ok and the only problem is repeat 443 in the first step, if you put 80 works, restart apache and works perfectly but when daemond tun overwrite all.
Actually i test in Ubuntu other time and continue the same, only can fix if delete SSL for subdomain, and dont install other module, etc, nothing more.
[Not Solved]
RE: Problem ssl subdomain access Control Panel 05-30-2024, 05:22 AM
I think there may be a typo in the Sencrypt module (or apache admin module) where it is getting the port number from the over-ride port (443) and not the default apache port (80).
Looks to be a simple $variable change and it should work. Looking into it.
SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE Find my support or modules useful? Donate to TGates HERE Developers and code testers needed!
Also i test in another server with fresh install han happend the same, only fail when install SSL for subdomain access CP, nothing more.
The problem is in vhost repeat the same port 2 times only for subdomain CP, is strange because the 2 configurations is ok and the only problem is repeat 443 in the first step, if you put 80 works, restart apache and works perfectly but when daemond tun overwrite all.
Actually i test in Ubuntu other time and continue the same, only can fix if delete SSL for subdomain, and dont install other module, etc, nothing more.
Did you by chance install crr1969 PHP changer module or any other module? Your Apache_admin hook code is wrong. I have checked default install and all code is correct. Somehow your apache_admin mod code got changed.
-Jettaman-
NEW: Sentora v.2.0.1 has been released!!!
Sentora's quick recovery depends on community support and donations. We need to stand as one and help Sentora into the future.
Donate HERE and do your part. We thank you for your support.
Did you by chance install crr1969 PHP changer module or any other module? Your Apache_admin hook code is wrong. I have checked default install and all code is correct. Somehow your apache_admin mod code got changed.
Yes i use this module :
Quote:<?xml version="1.0" encoding="utf-8"?>
<module>
<name>Php_Ver</name>
<version>100</version>
<defaultcat>Domain Management</defaultcat>
<type>user</type>
<desc>This module enables you to change or configure Php versions on your Domains.</desc>
<authorname>ccr1969</authorname>
<authoremail>webmaster@idohost.cf</authoremail>
<authorurl>https://idohost.cf/</authorurl>
<updateurl>http://idohost.cf/version.xml</updateurl>
</module>
Also Module Change Php Version add some lines inside vhosts as these :
THAT'S THE ISSUE!!!! CCR1969's PHP changer mod is obsolete with sentora v2.0.1+ core code/files.
He has made changes that no longer work with the new core/files. In his install he replaces main core files to make his module work.
We need to get your system back to default v2.0.1 core files.
Follow these steps below and run commands as ROOT -
THAT'S THE ISSUE!!!! CCR1969's PHP changer mod is obsolete with sentora v2.0.1+ core code/files.
He has made changes that no longer work with the new core/files. In his install he replaces main core files to make his module work.
We need to get your system back to default v2.0.1 core files.
Follow these steps below and run commands as ROOT -
This should reset your core and default you back to v2.0.1.
Let me know if you have any issues after you run the following commands. Talk soon.
Thanks, and yes, this fix all for this situation, but how i can use fpm, for change version of php because until always can put different version for each domain include in each folder
And is strange because now no have the module for change php version, but i can continue change to php version 5.6, but don´t let me change in folders, for me is the same the module, but in Centos 7 i change this with only install fpm but at the moment no works for me in Ubuntu, if i can install this and others php versions can change manually the version in Apache vhosts and overwrite, and don´t give problems.
Is possible solution for this, thank´s for all your help, regards