EasyApache 4, CentOS 7 and MariaDB with R1Soft

Customer support forums for Atomic Protector (formerly Atomic Secured Linux). There is no such thing as a bad question here as long as it pertains to using Atomic Protector. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)
WiseWarrior
New Forum User
New Forum User
Posts: 1
Joined: Wed May 11, 2016 4:47 am
Location: Northern Ireland

EasyApache 4, CentOS 7 and MariaDB with R1Soft

Unread post by WiseWarrior »

Hello,

During the installation of ASL on a CentOS 7 server with MariaDB and EasyApache 4, it pumped out the following errors:

Code: Select all

Checking versions ...

        ASL version is current:                                           [PASS]
-------------------------------------------------------------------------------
Errors were encountered:

L CODE SOURCE                        MESSAGE
- ---- ----------------------------- ------------------------------------------
2 48   ASLRBC                        Reverting all changes
2 48   ASLRBC::rollback_file         No valid previous version found for /etc/a
                                     sl/tortix-testing-mirrorlist
2 48   ASLRBC::rollback_file         No valid previous version found for /etc/a
                                     sl/tortix-kernel-xen-mirrorlist
2 48   ASLRBC::rollback_file         No valid previous version found for /etc/a
                                     sl/tortix-kernel-xen-testing-mirrorlist
2 48   ASLRBC::rollback_file         No valid previous version found for /var/c
                                     panel/templates/apache2_4/main.local
3 2    ASLCommon::file_replace       An error occurred attempting to read file
                                     /var/cpanel/templates/apache2_4/main.local
87.117.225.3

Checking versions ...

        ASL version is current:                                           [PASS]
-------------------------------------------------------------------------------
Errors were encountered:

L CODE SOURCE                        MESSAGE
- ---- ----------------------------- ------------------------------------------
2 48   ASLRBC                        Reverting all changes
2 48   ASLRBC::rollback_file         No valid previous version found for /var/c
                                     panel/templates/apache2_4/main.local
3 2    ASLCommon::file_replace       An error occurred attempting to read file
                                     /var/cpanel/templates/apache2_4/main.local
87.117.225.3

Checking versions ...

        ASL version is current:                                           [PASS]
-------------------------------------------------------------------------------
Errors were encountered:

L CODE SOURCE                        MESSAGE
- ---- ----------------------------- ------------------------------------------
2 48   ASLRBC                        Reverting all changes
2 48   ASLRBC::rollback_file         No valid previous version found for /var/c
                                     panel/templates/apache2_4/main.local
3 2    ASLCommon::file_replace       An error occurred attempting to read file
                                     /var/cpanel/templates/apache2_4/main.local
87.117.225.3

Checking versions ...

        ASL version is current:                                           [PASS]
-------------------------------------------------------------------------------
Errors were encountered:

L CODE SOURCE                        MESSAGE
- ---- ----------------------------- ------------------------------------------
2 48   ASLRBC                        Reverting all changes
2 48   ASLRBC::rollback_file         No valid previous version found for /var/c
                                     panel/templates/apache2_4/main.local
3 2    ASLCommon::file_replace       An error occurred attempting to read file
                                     /var/cpanel/templates/apache2_4/main.local
87.117.225.3

Checking versions ...

        ASL version is current:                                           [PASS]
-------------------------------------------------------------------------------
Errors were encountered:

L CODE SOURCE                        MESSAGE
- ---- ----------------------------- ------------------------------------------
2 48   ASLRBC                        Reverting all changes
2 48   ASLRBC::rollback_file         No valid previous version found for /var/c
                                     panel/templates/apache2_4/main.local
3 2    ASLCommon::file_replace       An error occurred attempting to read file
                                     /var/cpanel/templates/apache2_4/main.local
From the looks of things, the issue is due to not being able to detect the apache installation?
imadsani
Forum Regular
Forum Regular
Posts: 112
Joined: Mon Sep 16, 2013 10:10 am
Location: Lahore

Re: EasyApache 4, CentOS 7 and MariaDB with R1Soft

Unread post by imadsani »

anyone able to resolve this? I'm in a similar predicament

Edit: I was able to fix this by navigating to the folder and creating a duplicate file of main.default with the name main.local.

But now I get new errors:

Code: Select all

Errors were encountered:

L CODE SOURCE                        MESSAGE
- ---- ----------------------------- ------------------------------------------
2 9901 ASLCommon::cmd_system         ERROR: '/var/asl/data/templates/template-c
                                     panel-apache-hook cpanel > /var/asl/tmp/wa
                                     f_build.log 2>&1 (1)'
2 401  c_cpanel::_anarchy_waf_update CPanel WAF template update error: /var/asl
                                     /data/templates/template-cpanel-apache-hoo
                                     k cpanel

Code: Select all

2 6    ASLCommon::grep_string: /etc/ File not found /etc/httpd/conf/httpd.conf
2 9901 ASLCommon::cmd_system         ERROR: '/bin/echo "TraceEnable Off" >> /et
                                     c/httpd/conf/httpd.conf (1)'
Why is ASL looking for httpd.conf in /etc/httpd when cpanel places it in: /usr/local/apache/conf/httpd.conf
User avatar
hostingg
Forum User
Forum User
Posts: 63
Joined: Mon Mar 18, 2013 6:26 pm
Location: Earth

Re: EasyApache 4, CentOS 7 and MariaDB with R1Soft

Unread post by hostingg »

why does cpanel put anything in /usr/local, what is this 1995?
If everything was easy, then the world wouldn't need engineers.
imadsani
Forum Regular
Forum Regular
Posts: 112
Joined: Mon Sep 16, 2013 10:10 am
Location: Lahore

Re: EasyApache 4, CentOS 7 and MariaDB with R1Soft

Unread post by imadsani »

I talked to support about these installation issues last night and they said that EasyApache 4 isn't currently supported by ASL v4.x, they've recommended to shift to the beta channel. Otherwise, you'll have to wait for v5 to hit mainstream.
adamk
New Forum User
New Forum User
Posts: 1
Joined: Tue Aug 30, 2016 2:28 pm
Location: USA

Re: EasyApache 4, CentOS 7 and MariaDB with R1Soft

Unread post by adamk »

Hi

I registered to this forum just to help, since i had a similiar issue

By default cPanel now will install easyapache4, which is not support with Atomicorp, i had to contact cPanel and they provided me a way to force installation of easyapache 3 instead of 4

what you need to do is run this ssh command prior starting the cPanel installation

touch /etc/install_legacy_ea3_instead_of_ea4

After that, you would run the cPanel installation:

wget -N http://httpupdate.cpanel.net/latest
sh latest

Then once cPanel is installed , you may want to finalize cPanel build apache/php with all mods you need without modsecuirty once its done, you can then proceed with ASL installation normal with the command

wget -q -O - https://updates.atomicorp.com/installers/asl |sh

hope this helps

Goodluck
Post Reply