How to downgrade Apache to previous version?

beansbaxter

Verified User
Joined
Mar 17, 2004
Messages
218
Location
WA
My DA server is currently running Apache 2.4.48 and I want to downgrade it to 2.4.47

Searching on the forums here, I did the following:
Code:
#  cd /usr/local/directadmin/custombuild/
#  echo "apache2.4:2.4.47:" > custom_versions.txt;

And changed in DA Options:
Code:
harden_symlinks_patch=no

And then to download the version of Apache I wanted, before rebuilding:
Code:
# cd /usr/local/directadmin/custombuild/
# ./build update

And this was the output:
Code:
--2021-08-06 11:45:30--  https://files9.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
Resolving files9.directadmin.com (files9.directadmin.com)... 69.162.69.58
Connecting to files9.directadmin.com (files9.directadmin.com)|69.162.69.58|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 263605 (257K) [application/x-gzip]
Saving to: './custombuild.tar.gz'

100%[=========================================================================================>] 263,605     1.28MB/s   in 0.2s  

2021-08-06 11:45:31 (1.28 MB/s) - './custombuild.tar.gz' saved [263605/263605]

Extracting custombuild.tar.gz...
Downloading        httpd-2.4.47.tar.gz...
--2021-08-06 11:45:33--  https://files9.directadmin.com/services/custombuild/httpd-2.4.47.tar.gz
Resolving files9.directadmin.com (files9.directadmin.com)... 69.162.69.58
Connecting to files9.directadmin.com (files9.directadmin.com)|69.162.69.58|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-08-06 11:45:33 ERROR 404: Not Found.

Downloaded file /usr/local/directadmin/custombuild/httpd-2.4.47.tar.gz does not exist or is empty after download
cwd is: /usr/local/directadmin/custombuild
Fileserver might be down, using the backup file server..
--2021-08-06 11:45:33--  http://69.162.69.58/services/custombuild/httpd-2.4.47.tar.gz
Connecting to 69.162.69.58:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-08-06 11:45:33 ERROR 404: Not Found.

How can I resolve these 404 errors?

And is there anything else I need to do to downgrade Apache to a previous version?
 
I also tried another way, by manually choosing the Apache version (and leaving the MD5 blank) from within the DA Control Panel:

Screen Shot 2021-08-06 at 7.03.14 PM.png

Tried the command line afterwards, and got the same 404 errors above.
 
I was able to downgrade Apache.

What is the purpose of "harden_symlinks_patch=no" ?
 
Why not just upgrade? I'm running 2.4.48.
I was running 2.4.48 on all my DA servers. And when I was checking my emails of when people first started reporting Cloudflare errors, I realized all the emails started on the same day I updated the latest round of services powering the server, to include Apache.

I was going to revert back to the previous version, and see if that solves my random Cloudflare 520 error problem.

I'm trying to narrow down and troubleshoot the exact area that's causing the problems.
 
Oh yes the Cloudflare errors... read something about that. Well... I don't think that might fix errors, but as you say, if you don't try you'll never know.
I hope you get those 520 errors fixed soon.
 
Well... that's a pity, I rather would have been incorrect so the issue was fixed. But thanks for reporting back!
 
You are correct. It did not fix the issue. Apache is not the problem.
If it started that time , after updates some are rewriten restarted, so also other things done before but no rewrite restart did take place could be cause.

You did the timeout settings?

While direct server without cloudflare no problems you did write.

Also the letsencrypt and cyphers / certs could be .... and da script for those but again don't know cloudflare

SSL handshake is used but don't know if then error 520..
 
Back
Top