Author Topic: EHCP not running after update  (Read 2934 times)

colifato

  • Newbie
  • *
  • Posts: 47
    • View Profile
EHCP not running after update
« on: November 12, 2014, 08:03:09 am »
After update to the last version using the script.. i do not have EHCPForce control panel

No errors during the upgrade.

But no panel

Please help me

I think that the error is here:

root@server1:~# /etc/init.d/apache2 restart
 * Restarting web server apache2                                                                                                             [fail]
 * The apache2 configtest failed.
Output of config test was:
[Wed Nov 12 12:24:28.996416 2014] [so:warn] [pid 3360] AH01574: module security2_module is already loaded, skipping
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:9
AH00526: Syntax error on line 52 of /etc/apache2/mod_security_rules/modsecurity_crs_20_protocol_violations.conf:
ModSecurity: Found another rule with the same id
Action 'configtest' failed.
The Apache error log may have more information.
« Last Edit: November 12, 2014, 07:48:42 pm by earnolmartin »

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 304
    • View Profile
Re: EHPC not running after update
« Reply #1 on: November 12, 2014, 07:47:02 pm »
What version of Ubuntu or linux are you using?  12.04?  64-bit or 32-bit?  I need to know.

Ubuntu 14.04 uses different mod security rules than 12.04.  The installer should handle installing the right ones automatically depending on your version.

In any event, go ahead and delete everything in:  /etc/apache2/mod_security_rules

Then, run:
Code: [Select]
sudo service apache2 restart

colifato

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: EHCP not running after update
« Reply #2 on: November 13, 2014, 02:35:52 pm »
I'm using ubuntu server 14.04 64bits

I dissable modsecurity and all is running fine


colifato

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: EHCP not running after update
« Reply #3 on: November 14, 2014, 07:09:43 am »
What are the requirements of ideal software for the best performance of the EHCP Force?

Ubuntu server 12 or 14? 32 or 64 bits?

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 304
    • View Profile
Re: EHCP not running after update
« Reply #4 on: November 16, 2014, 11:17:55 pm »
What are the requirements of ideal software for the best performance of the EHCP Force?

Ubuntu server 12 or 14? 32 or 64 bits?

It should work on both.  I will look at the mod security issues you encountered as soon as I get my crashed computer back up and running.

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 304
    • View Profile
Re: EHCP not running after update
« Reply #5 on: November 24, 2014, 06:44:37 pm »
I tested modsecurity in the SVN Dev version of EHCP Force with the latest version of Ubuntu 14.04 x64 with the latest package updates.  I didn't run into any issues at all.  Perhaps you could try reinstalling mod_security by updating to the latest SVN version (not officially released yet, but a release is coming soon, and I do believe the latest code is stable) by running the following commands:

Code: [Select]
#Update to Latest Code (SVN Version)
sudo apt-get install subversion
cd ~/Downloads
if [ -e "ehcpforceupdate_svn_version_dev.sh" ]; then
    rm "ehcpforceupdate_svn_version_dev.sh"
fi
svn export "svn://svn.code.sf.net/p/ehcpforce/code/trunk/ehcpforce/ehcp/ehcpforceupdate_svn_version_dev.sh"
sudo bash "ehcpforceupdate_svn_version_dev.sh"

Please let me know if you run into any issues.