Problem with apache

Kurogane

Verified User
Joined
Oct 6, 2019
Messages
88
I'm not sure why today apache have update or i'm not sur have my apache directory is with file/directory with date today.

Problem my apache not run for some reason and when i try to find cause i see this.

Code:
apachectl -t
AH00526: Syntax error on line 31 of /etc/httpd/conf/extra/httpd-vhosts.conf:
The address or port is invalid

When i check the file i see this.

Code:
<VirtualHost [2005:fd09:918f:aec:f3f4:0:0:0:2 1.2.3.4]:80>

What is the problem? for some reason directadmin add in virtualhost IPv4 inside IPv6.

I've configure IPv6 and IPv4 in my server.

This is a bug.
 
I'm not sure why today apache have update or i'm not sur have my apache directory is with file/directory with date today.

Problem my apache not run for some reason and when i try to find cause i see this.

Code:
apachectl -t
AH00526: Syntax error on line 31 of /etc/httpd/conf/extra/httpd-vhosts.conf:
The address or port is invalid

When i check the file i see this.

Code:
<VirtualHost [2005:fd09:918f:aec:f3f4:0:0:0:2 1.2.3.4]:80>

What is the problem? for some reason directadmin add in virtualhost IPv4 inside IPv6.

I've configure IPv6 and IPv4 in my server.

This is a bug.
Check your templates.
Apache not updated, check httpd -V
confs rewrited, same at few my servers, at random time and random servers.
 
at all updated servers I see at /usr/local/directadmin/custombuild/custombuild.log
2020-04-23 02:25:05 : mod_aclr2 installed
2020-04-23 02:26:29 : called: rewrite_confs
and new file:
/usr/local/directadmin/data/templates/custom/php-fpm.conf.custom1
(I don't have FPM at this servers)
What is goind on? Why it updates something without my request?
 
Hello. We also recently, several servers themselves updated and updated the configuration files. In the logs, just like yours:
2020-04-23 05:38:52 localhost: mod_aclr2 installed
2020-04-23 05:40:49 localhost: called: rewrite_confs
And so the file appeared /usr/local/directadmin/data/templates/custom/php-fpm.conf.custom1
although we also don’t use php-fpm, we have installed lsphp. File contents
|?OPEN_BASEDIR_PATH=`OPEN_BASEDIR_PATH`:/var/softaculous/sitepad/editor|
Perhaps you also have a sitepad, it comes as part of the softaculous plugin?
On some servers, after the update, everything continued to work, some gave errors and we build apache, after which everything worked. The worst thing is that it was unexpected and on the same server in the middle of the working day.
 
yes, softaculous updated too, as I see - update was on servers with softaculous only. It's strange why simple plugin run custombuild without my command/permission
 
Yep we have seen this exact same issue also. Directadmin has triggerd ( so it seems atleast ) a ./build rewrite_configs around the same time when a license refresh has been done. Check ur system.log from directadmin and see if there is a ips.conf rewrite in there and a bit later license refresh + httpd restart
 
Another server just updated itself. Softaculous and CustomBuild updates were disabled on this server. There is a line in the system.log
"2020:04:23-15:56:48: ips.conf rewritten"
Directadmin license verification takes place at 04:00 hours, but rewriting occurred at 15:56. License renewal is not necessary here.
This server is also in /usr/local/directadmin/custombuild/custombuild.log
2020-04-23 15:57:30 localhost: mod_aclr2 installed
2020-04-23 15:59:24 localhost: called: rewrite_confs
We still don’t know what it is connected with, it happens at different times and we don’t yet know what it is connected with. But it’s depressing that something forces the custombuild to update without our command.
 
Another server just updated itself. Softaculous and CustomBuild updates were disabled on this server. There is a line in the system.log
"2020:04:23-15:56:48: ips.conf rewritten"
Directadmin license verification takes place at 04:00 hours, but rewriting occurred at 15:56. License renewal is not necessary here.
This server is also in /usr/local/directadmin/custombuild/custombuild.log
2020-04-23 15:57:30 localhost: mod_aclr2 installed
2020-04-23 15:59:24 localhost: called: rewrite_confs
We still don’t know what it is connected with, it happens at different times and we don’t yet know what it is connected with. But it’s depressing that something forces the custombuild to update without our command.
but softaculous installed too? here changelog that tells that it's updated today
 
yes, softaculous updated too, as I see - update was on servers with softaculous only. It's strange why simple plugin run custombuild without my command/permission

Zhenyapan, you are right. I have done some more checking on our servers and the servers where i noticed this issue indeed all have softaculous running, its done around the cron for a softaculous update:

server 1:
Code:
48 8 * * * root /usr/local/bin/php -d disable_functions="" /usr/local/directadmin/plugins/softaculous/cron.php >> /dev/null 2>&1
2020:04:23-08:54:30: ips.conf rewritten

server 2:
Code:
39 6 * * * root /usr/local/bin/php -d disable_functions="" /usr/local/directadmin/plugins/softaculous/cron.php >> /dev/null 2>&1
2020:04:23-06:44:24: ips.conf rewritten

server 3:
Code:
26 8 * * * root /usr/local/bin/php -d disable_functions="" /usr/local/directadmin/plugins/softaculous/cron.php >> /dev/null 2>&1
2020:04:23-08:32:31: ips.conf rewritten

and so on....
 
Compiled the update of the last two servers and the softacalas update:
server1
/etc/cron.d/softaculous
51 15 * * * root /usr/local/bin/php -d disable_functions="" /usr/local/directadmin/plugins/softaculous/cron.php >> /dev/null 2>&1
update, rewrite_confs and update ips.conf - 15:56:48
server2
/etc/cron.d/softaculous
44 16 * * * root /usr/local/bin/php -d disable_functions="" /usr/local/directadmin/plugins/softaculous/cron.php >> /dev/null 2>&1
update, rewrite_confs and update ips.conf - 16:46:07: ips.conf rewritten
2020-04-23 16:46:11 localhost: mod_aclr2 installed
2020-04-23 16:47:09 localhost: called: rewrite_confs
Perhaps the update softaculous is still related to what is happening.
 
Hi,

I am from the Softaculous team.

Extremely sorry for the inconvenience caused.

The apache config change was done since it was a requirement by the new script SitePad. However since it is breaking the conf we are releasing a new version of Softaculous today which will not make any changes to any config files.

Softaculous itself does not require any change in config files and will run as it is.

Again sorry for the inconvenience caused.

I will update this thread once we have released the new version.
 
Hi,

We have just released Softaculous 5.4.6 which removes all changes made to apache config file and also we will not make any changes to any config file in future.

Here is the new version release announcement :

If your still face the issue after upgrading Softaculous to 5.4.6 please execute the following command :
/usr/local/directadmin/custombuild/build rewrite_confs

For OpenLiteSpeed you will need to remove "/var/softaculous/sitepad/editor" from the following file :
/usr/local/directadmin/data/templates/custom/openlitespeed_vhost.conf.CUSTOM.4.pre

and then execute the following command :
/usr/local/directadmin/custombuild/build rewrite_confs

If you face any issues please open a support ticket with us and we will make the changes for you asap :

Again sorry for the inconvenience caused.
 
Hi @softaculous

Thanks for this! But please, if you require any changes in configs notify your customers about it and never touch someone's configs by rewriting them without the server owner knowing about it.
 
Hi @ItsOnlyMe

Yes we will not make any changes to the config file in future.

It was our mistake that we tested it on our servers and it worked but we did not consider other environments and customizations that are already made on other environments.

We confirm we will not make changes to conf file in future.
 
Back
Top