Author Topic: Nginx Correction  (Read 8791 times)

0 Members and 1 Guest are viewing this topic.

Nginx Correction
« on: April 08, 2015, 09:58:57 PM »
You need to replace mod_raf installation line with the line below:

/usr/local/apache/bin/apxs -i -c -n mod_rpaf.so mod_rpaf.c

We dont need to symlink now to the module folder as it will get automatically installed /usr/local/apache/modules

When virtual host is generated then root path defined there is wrong i.e /usr/local/apache/htdocs as it should contain public_html directory i.e root /home/USERNAME/public_html;

http://panel.bullten.net/knowledgebase/32/Installing-Nginx-in-CWP.html

Offline
*
Re: Nginx Correction
« Reply #1 on: April 24, 2015, 01:09:18 PM »
Hello BullTen, tried install the script onto CWP but having the following at the end of installation:

Quote
Starting httpd: httpd: Syntax error on line 506 of /usr/local/apache/conf/httpd.conf: Syntax error on line 3 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: ap_log_error

I disabled the mod_security and restart the httpd again, I got this then

Quote
Starting httpd: httpd: Syntax error on line 506 of /usr/local/apache/conf/httpd.conf: Syntax error on line 2 of /usr/local/apache/conf.d/rpaf.conf: Cannot load modules/mod_rpaf.so into server: /usr/local/apache/modules/mod_rpaf.so: undefined symbol: ap_log_rerror

Any idea how to get this resolved? Many thanks.

Re: Nginx Correction
« Reply #2 on: April 24, 2015, 11:49:49 PM »
Let me know your config

PHP Version
Apache Version
64bit or 32 bit
suphp version

Offline
*
Re: Nginx Correction
« Reply #3 on: November 22, 2015, 02:39:46 PM »
I have the same problem!
Apache version: Apache/2.4.12 (apr 1.5.2 /apr-util 1.5.4 /suphp 0.7.2)
PHP version: 5.6.14
MySQL version: 5.5.46
FTP version: 1.0.36

i follow this https://blog.bullten.com/upgrade-to-apache-2-4-x-and-suphp-0-7-2-in-centos-web-panel-cwp/ and all apen on line 8

after alot hours try fix, i start think re-install nginx , so to fix i use
https://panel.bullten.net/knowledgebase/32/Installing-Nginx-in-CWP.html

well, u will still got error on ports when try enable nginx and apache. For that i use

/index.php?module=WebServers

select Apache & Varnish Cache & Nginx Reverse Proxy > save & rebuild , and rebuild vhosts

well problem solved for me, and apache + nginx + mysql + php updated to the last version (till u make httpd -v and u see Apache 2.2.15 (Unix) and in CWP u see Apache 2.4.12 
See: http://prntscr.com/95m8hl
http://prntscr.com/95m9fb

damn my brain , will explode try fix that