Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - warwicknz

Pages: [1]
1
Apache / Apache failed to start unable to load modules/mod_security2.so
« on: February 02, 2017, 04:19:34 AM »
Hi,

I've just built a fresh install of centos 7 CWP in preparation for migration from centos 6 CWP.

All gone well apart from the install of mod_security, after install Apache fails to start with the following error log:

 httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2017-02-02 17:08:28 NZDT; 3min 1s ago
  Process: 21127 ExecStop=/usr/local/apache/bin/apachectl graceful-stop (code=exited, status=1/FAILURE)
  Process: 20817 ExecReload=/usr/local/apache/bin/apachectl graceful (code=exited, status=1/FAILURE)
  Process: 21132 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)
 Main PID: 16577 (code=exited, status=0/SUCCESS)

[1]: Starting Web server Apache...
[21132]: httpd: Syntax error on line 508 of /usr/local/apache/conf/httpd.conf: Syntax error on line 9 of /usr/local/apache/conf.d/mod_security.conf: Cannot load modules/mod_security2.so into server: /usr/local/apache/modules/mod_security2.so: undefined symbol: apr_crypto_block_cleanup
[1]: httpd.service: control process exited, code=exited status=1
[1]: Failed to start Web server Apache.
[1]: Unit httpd.service entered failed state.
[1]: httpd.service failed.

Any help would be greatly appreciated.

Another thing I've noted is the enabled modules don't work on Apache rebuild and have to be activated manually in config.

Thanks,
Chris

2
Backup / Full Restore On Remote Server
« on: September 15, 2016, 06:32:54 AM »
Hi Everyone,

I am trying to migrate to a fresh CWP server build running MariaDB 10.1 from the old one running MySQL 5.1.

I successfully setup remote backup to transfer all the \home directories and DBs then restored them each successfully through phpMyAdmin and the restore backup tab. After restoring all the databases and user directories everything seems fine but I can't get Apache to start properly as it thinks the users don't exist "Starting httpd: httpd: bad user name xxxxxx".

If I clear the vHosts file Apache starts correctly and if I create a new user on the server and only list that in vHosts there are no problems.

If I try and delete one of the restored users it says "userdel: user 'xxxxxx' does not exist" "User Account Removal FAILED! User account folder still exists!" it seems like this a suphp/suexec problem but this is getting to the limit of my experience level.

Does anyone have a possible solution? I feel like it is probably very simple and i'm very close but I just simply don't have the knowledge yet to know where to look.

Love the project and appreciate your work.

Many thanks,
Chris

Pages: [1]