DOwngrade Apache version

nicolevk

Verified User
Joined
Oct 8, 2015
Messages
21
On this moment I have Apache 2.4.17 I want to downgrade it to Apache 2.2. Can somebody help me maybe?

Thanks!
 
Run the following commands on your server:

cd /usr/local/directadmin/custombuild
./build set apache_ver 2.2
./build update
./build apache
./build php n
./build rewrite_confs
 
Hello,

When I do that I get this message:

./build set apache_ver 2.2
2.2 is not a valid setting for apache_ver option.
 
Custombuild 2 supports only Apache 2.4:

Code:
apache_ver: 2.4. Current value: 2.4. Default value: 2.4.
 
What is special in Apache 2.2 that makes you want it? Probably we could suggest a solution how to achieve the desired with Apache 2.4.
 
The rewriterule doesn't work anymore on my website after updating my whole Linux system. And I have read that more people have this problem and they downgraded to Apache 2.2 and the problem was solved.

What is special in Apache 2.2 that makes you want it? Probably we could suggest a solution how to achieve the desired with Apache 2.4.
 
Will you give us some examples of what kind rules do not work? Are they located in .htaccess in public_html/ or in public_html/subfolder/ ?
 
Yeah on my .htaccess file see:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# BEGIN
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END


Will you give us some examples of what kind rules do not work? Are they located in .htaccess in public_html/ or in public_html/subfolder/ ?
 
The following line must be the cause:
Code:
RewriteRule . /index.php [L]

Try replacing it with:
Code:
RewriteRule ^(.*)$ index.php/$1 [L]

If that does not help, a downgrade to 2.4.16 is enough to solve it.
 
If I doing that I get this error: No input file specified.

If downgrading solve the issue how I can downgrade it to 2.4.16?



The following line must be the cause:
Code:
RewriteRule . /index.php [L]

Try replacing it with:
Code:
RewriteRule ^(.*)$ index.php/$1 [L]

If that does not help, a downgrade to 2.4.16 is enough to solve it.
 
Back
Top