CB2.0 & nginx_apache problem

Code:
cd /usr/local/directadmin/custombuild
./build update
./build set webserver nginx_apache
./build nginx_apache
 
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set webserver nginx_apache
./build nginx_apache

Code:
Starting nginx: nginx: [emerg] bind() to 103.224.81.91:443 failed (98: Address already in use)
nginx: [emerg] bind() to 103.224.81.91:443 failed (98: Address already in use)
nginx: [emerg] bind() to 103.224.81.91:443 failed (98: Address already in use)
nginx: [emerg] bind() to 103.224.81.91:443 failed (98: Address already in use)
nginx: [emerg] bind() to 103.224.81.91:443 failed (98: Address already in use)
nginx: [emerg] still could not bind()

what's wrong with it?
i set up apache first, was that wrong?
 
Is DA 1.45.2 installed on your system? Don't you have any custom templates in /usr/local/directadmin/data/templates/custom ?
 
Is DA 1.45.2 installed on your system? Don't you have any custom templates in /usr/local/directadmin/data/templates/custom ?

I installed the latest DA, and there is nothing in /usr/local/directadmin/data/templates/custom.
Now nomatter I choose apache or nginx, my website is always down. I have to recover my system.
 
Is DA 1.45.2 installed on your system? Don't you have any custom templates in /usr/local/directadmin/data/templates/custom ?

why not support that set the webserver 'nginx_apache' during the installation, same as 'apache', 'nginx'
 
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set webserver nginx_apache
./build nginx_apache

when i chose php-fpm, the cpu & memory cannot be detected by the prober.
how to solve this problem?

thank you
 
I am not familiar with prober. You may try switching to fastcgi/suphp or mod_php then.
 
Hi,

I am also having troubles setting up nginx_apache
I wanted to test the new nginx_apache functionality however after compiling the httpd service doesn't start. It seems like it does not compile the mod_mpm_event.so module.

This is the error I get:

Code:
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/mod_mpm_event.so into server: /usr/lib/apache/mod_mpm_event.so: cannot open shared object file: No such file or directory

This is my options.conf:
Code:
cat options.conf
#PHP Settings
php1_release=5.5
php1_mode=php-fpm
php2_release=5.6
php2_mode=php-fpm
opcache=yes
htscanner=no
php_ini=no
php_timezone=Europe/Amsterdam
php_ini_type=production
ioncube=no
zend=no
suhosin=no
x_mail_header=yes

#MySQL Settings
mysql=5.6
mysql_inst=yes
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#WEB Server Settings
webserver=nginx_apache
apache_ver=2.4
apache_mpm=event
mod_ruid2=no
secure_htaccess=no
harden_symlinks_patch=yes
use_hostname_for_alias=auto
redirect_host=directadmin.heijdensconcepts.nl
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=no
roundcube=yes

#ClamAV-related Settings
clamav=yes
clamav_exim=yes
proftpd_uploadscan=yes
pureftpd_uploadscan=yes
suhosin_php_uploadscan=yes

#Mail Settings
exim=yes
eximconf=yes
spamassassin=yes
dovecot=yes
pigeonhole=yes

#Jail Settings
jail=no

#FTP Settings
ftpd=pureftpd

#Statistics Settings
awstats=no
webalizer=yes

#CustomBuild Settings
custombuild=2.0
autover=yes
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files.directadmin.com

#Cronjob Settings
cron=yes
cron_frequency=weekly
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CloudLinux Settings
cloudlinux=no
cagefs=no

#Advanced Settings
autoconf=yes
automake=yes
libtool=yes
curl=yes

#Expert Settings (!)
zlib=no
new_zlib=no
new_xml2=yes
new_pcre=no
new_suphp=no
old_apr_util=no

configure.apache
Code:
#!/bin/sh
"./configure" \
        "--prefix=/etc/httpd" \
        "--exec-prefix=/etc/httpd" \
        "--bindir=/usr/bin" \
        "--sbindir=/usr/sbin" \
        "--sysconfdir=/etc/httpd/conf" \
        "--enable-so" \
        "--enable-dav" \
        "--enable-dav-fs" \
        "--enable-dav-lock" \
        "--enable-suexec" \
        "--enable-deflate" \
        "--enable-unique-id" \
        "--enable-cgi" \
        "--disable-cgid" \
        "--enable-mods-static=most" \
        "--enable-mpms-shared=all" \
        "--with-suexec-safedir=/usr/local/safe-bin" \
        "--with-suexec-caller=apache" \
        "--with-suexec-docroot=/" \
        "--with-suexec-gidmin=100" \
        "--with-suexec-logfile=/var/log/httpd/suexec_log" \
        "--with-suexec-uidmin=100" \
        "--with-suexec-userdir=public_html" \
        "--with-suexec-bin=/usr/sbin/suexec" \
        "--with-included-apr" \
        "--with-pcre=/usr/local" \
        "--includedir=/usr/include/apache" \
        "--libexecdir=/usr/lib/apache" \
        "--datadir=/var/www" \
        "--localstatedir=/var" \
        "--enable-logio" \
        "--enable-ssl" \
        "--enable-rewrite" \
        "--enable-proxy" \
        "--enable-expires" \
        "--enable-reqtimeout" \
        "--with-ssl=/usr" \
        "--enable-headers"
 
Back
Top