ERROR: CentOS + Nginx + Apache = 502 Bad Gateway

It usually means nginx is unable to connect to apache. Please check /var/log/httpd/error_log.
 
Code:
2015-03-11 18:44:39 1YVkgR-0001Gh-1M failed to write to main log: length=136 result=-1 errno=28 (No space left on device)
 
It seems you've ran out of either disk space or disk inodes:

Code:
No space left on device

So you need either to get more disk space or remove some files.
 
This is the log i get now:

Code:
2015/03/12 07:55:01 [notice] 31250#0: signal 1 (SIGHUP) received, ignoring
2015/03/12 07:55:01 [info] 31250#0: epoll_wait() failed (4: Interrupted system call)
2015/03/12 07:55:01 [notice] 3295#0: signal 1 (SIGHUP) received, reconfiguring
2015/03/12 07:55:01 [notice] 3295#0: reconfiguring
2015/03/12 07:55:01 [notice] 3295#0: using the "epoll" event method
2015/03/12 07:55:01 [notice] 3295#0: start worker processes
2015/03/12 07:55:01 [notice] 3295#0: start worker process 24320
2015/03/12 07:55:01 [notice] 31250#0: gracefully shutting down
2015/03/12 07:56:42 [notice] 31250#0: exiting
2015/03/12 07:56:42 [notice] 31250#0: exit
2015/03/12 07:56:42 [notice] 3295#0: signal 17 (SIGCHLD) received
2015/03/12 07:56:42 [notice] 3295#0: worker process 31250 exited with code 0
2015/03/12 07:56:42 [notice] 3295#0: signal 29 (SIGIO) received
2015/03/12 08:20:01 [notice] 24320#0: signal 1 (SIGHUP) received, ignoring
2015/03/12 08:20:01 [info] 24320#0: epoll_wait() failed (4: Interrupted system call)
2015/03/12 08:20:01 [notice] 3295#0: signal 1 (SIGHUP) received, reconfiguring
2015/03/12 08:20:01 [notice] 3295#0: reconfiguring
2015/03/12 08:20:01 [notice] 3295#0: using the "epoll" event method
2015/03/12 08:20:01 [notice] 3295#0: start worker processes
2015/03/12 08:20:01 [notice] 3295#0: start worker process 2830
2015/03/12 08:20:01 [notice] 24320#0: gracefully shutting down
2015/03/12 08:20:28 [notice] 24320#0: exiting
2015/03/12 08:20:28 [notice] 24320#0: exit
2015/03/12 08:20:28 [notice] 3295#0: signal 17 (SIGCHLD) received
2015/03/12 08:20:28 [notice] 3295#0: worker process 24320 exited with code 0
2015/03/12 08:20:28 [notice] 3295#0: signal 29 (SIGIO) received
2015/03/12 08:21:01 [notice] 2830#0: signal 1 (SIGHUP) received, ignoring
2015/03/12 08:21:01 [notice] 3295#0: signal 1 (SIGHUP) received, reconfiguring
2015/03/12 08:21:01 [info] 2830#0: epoll_wait() failed (4: Interrupted system call)
2015/03/12 08:21:01 [notice] 3295#0: reconfiguring
2015/03/12 08:21:01 [notice] 3295#0: using the "epoll" event method
2015/03/12 08:21:01 [notice] 3295#0: start worker processes
2015/03/12 08:21:01 [notice] 3295#0: start worker process 3373
2015/03/12 08:21:01 [notice] 2830#0: gracefully shutting down
2015/03/12 08:21:26 [notice] 2830#0: exiting
2015/03/12 08:21:26 [notice] 2830#0: exit
2015/03/12 08:21:26 [notice] 3295#0: signal 17 (SIGCHLD) received
2015/03/12 08:21:26 [notice] 3295#0: worker process 2830 exited with code 0
2015/03/12 08:21:26 [notice] 3295#0: signal 29 (SIGIO) received
2015/03/12 08:22:01 [notice] 3373#0: signal 1 (SIGHUP) received, ignoring
2015/03/12 08:22:01 [info] 3373#0: epoll_wait() failed (4: Interrupted system call)
2015/03/12 08:22:01 [notice] 3295#0: signal 1 (SIGHUP) received, reconfiguring
2015/03/12 08:22:01 [notice] 3295#0: reconfiguring
2015/03/12 08:22:01 [notice] 3295#0: using the "epoll" event method
2015/03/12 08:22:01 [notice] 3295#0: start worker processes
2015/03/12 08:22:01 [notice] 3295#0: start worker process 3730
2015/03/12 08:22:01 [notice] 3373#0: gracefully shutting down
2015/03/12 08:22:14 [notice] 3373#0: exiting
2015/03/12 08:22:14 [notice] 3373#0: exit
2015/03/12 08:22:14 [notice] 3295#0: signal 17 (SIGCHLD) received
2015/03/12 08:22:14 [notice] 3295#0: worker process 3373 exited with code 0
2015/03/12 08:22:14 [notice] 3295#0: signal 29 (SIGIO) received
2015/03/12 08:26:01 [notice] 3730#0: signal 1 (SIGHUP) received, ignoring
2015/03/12 08:26:01 [info] 3730#0: epoll_wait() failed (4: Interrupted system call)
2015/03/12 08:26:01 [notice] 3295#0: signal 1 (SIGHUP) received, reconfiguring
2015/03/12 08:26:01 [notice] 3295#0: reconfiguring
2015/03/12 08:26:01 [notice] 3295#0: using the "epoll" event method
2015/03/12 08:26:01 [notice] 3295#0: start worker processes
2015/03/12 08:26:01 [notice] 3295#0: start worker process 5219
2015/03/12 08:26:01 [notice] 3730#0: gracefully shutting down
2015/03/12 08:26:14 [notice] 3730#0: exiting
2015/03/12 08:26:14 [notice] 3730#0: exit
2015/03/12 08:26:14 [notice] 3295#0: signal 17 (SIGCHLD) received
2015/03/12 08:26:14 [notice] 3295#0: worker process 3730 exited with code 0
2015/03/12 08:26:14 [notice] 3295#0: signal 29 (SIGIO) received
2015/03/12 08:27:01 [notice] 5219#0: signal 1 (SIGHUP) received, ignoring
2015/03/12 08:27:01 [notice] 3295#0: signal 1 (SIGHUP) received, reconfiguring
2015/03/12 08:27:01 [info] 5219#0: epoll_wait() failed (4: Interrupted system call)
2015/03/12 08:27:01 [notice] 3295#0: reconfiguring
2015/03/12 08:27:01 [notice] 3295#0: using the "epoll" event method
2015/03/12 08:27:01 [notice] 3295#0: start worker processes
2015/03/12 08:27:01 [notice] 3295#0: start worker process 5628
2015/03/12 08:27:01 [notice] 5219#0: gracefully shutting down
2015/03/12 08:27:42 [notice] 5219#0: exiting
2015/03/12 08:27:42 [notice] 5219#0: exit
2015/03/12 08:27:42 [notice] 3295#0: signal 17 (SIGCHLD) received
2015/03/12 08:27:42 [notice] 3295#0: worker process 5219 exited with code 0
2015/03/12 08:27:42 [notice] 3295#0: signal 29 (SIGIO) received

It same that i don't have php-fpm on my server. It is normal ?

Thank u ppl for your replays.
 
How did you install nginx+ apache 2.2?
CustomBuild 2.0 does support Apache 2.4 only.
 
Server was install 2 year ago i think.

I install CentOS 6.5 and DA did all the rest
 
Probably your nginx is powered by 3rd party installation, not directadmin.

What do you see with:

Code:
cd /usr/local/directadmin/custombuild
./build version
./build options

?
 
Code:
 +--------------------------------------------------------+
 |                                                        |
 |            DirectAdmin WebServices Installer           |
 |     Written by Martynas Bendorius and DirectAdmin      |
 |                   Version: 1.2.40                      |
 |                                                        |
 +--------------------------------------------------------+
 |  To build everything run:                              |
 |     ./build all                                        |
 |                                                        |
 | NOTE(B: Command all will compile everything as it is set |
 |      in the options.conf file, please take a look at   |
 |      "./build options(B"!                                |
 +--------------------------------------------------------+
 |  Install/update server components:                     |
 |     ./build apache                                     |
 |     ./build autoconf                                   |
 |     ./build automake                                   |
 |     ./build awstats                                    |
 |     ./build clamav                                     |
 |     ./build curl                                       |
 |     ./build dovecot                                    |
 |     ./build exim                                       |
 |     ./build freetype                                   |
 |     ./build iconv                                      |
 |     ./build icu                                        |
 |     ./build ioncube                                    |
 |     ./build libjpeg                                    |
 |     ./build libpng                                     |
 |     ./build libtool                                    |
 |     ./build libxml2                                    |
 |     ./build libxslt                                    |
 |     ./build m4                                         |
 |     ./build mailman                                    |
 |     ./build mcrypt                                     |
 |     ./build mhash                                      |
 |     ./build mod_perl                                   |
 |     ./build mysql                                      |
 |     ./build pcre                                       |
 |     ./build php                                        |
 |     ./build proftpd                                    |
 |     ./build pureftpd                                   |
 |     ./build suphp                                      |
 |     ./build spamassassin                               |
 |     ./build webalizer                                  |
 |     ./build zend                                       |
 |     ./build zlib                                       |
 +--------------------------------------------------------+
 |  Components configuration options:                     |
 |     ./build exim_conf                                  |
 |     ./build php-ini                                    |
 |     ./build rewrite_confs                              |
 |     ./build secure_php                                 |
 +--------------------------------------------------------+
 |  Install/update web applications:                      |
 |     ./build phpmyadmin                                 |
 |     ./build atmail                                     |
 |     ./build roundcube                                  |
 |     ./build squirrelmail                               |
 |     ./build uebimiau                                   |
 +--------------------------------------------------------+
 |  CustomBuild related options/functions:                |
 |     ./build create_options                             |
 |     ./build cron                                       |
 |     ./build options                                    |
 |     ./build set option_name value                      |
 |     ./build set_fastest                                |
 |     ./build set_fastest_quiet                          |
 |     ./build update_da                                  |
 |     ./build update_versions                            |
 |     ./build update_webapps                             |
 |     ./build used_configs                               |
 |     ./build versions                                   |
 +--------------------------------------------------------+
 |  Jailed shell (beta):                                  |
 |     ./build all_jail                                   |
 |     ./build coreutils                                  |
 |     ./build shell                                      |
 |     ./build smtp_mail                                  |
 |     ./jail/jail_user.sh user(B                           |
 +--------------------------------------------------------+
 |  Remove old build data:                                |
 |     ./build clean                                      |
 |     ./build clean_old_webapps                          |
 +--------------------------------------------------------+
 |  Get latest build script or (and) data:                |
 |     ./build update                                     |
 |     ./build update_script                              |
 +--------------------------------------------------------+
 |  Get data for current build script:                    |
 |     ./build update_data                                |
 +--------------------------------------------------------+
 |  Recommended for experienced users only (!)(B:           |
 |     ./build php5-cli                                   |
 |     ./build php6-cli                                   |
 |     ./build php5-cgi                                   |
 |     ./build php6-cgi                                   |
 |     ./build todovecot                                  |
 +--------------------------------------------------------+
 |  You can pass a 2nd argument to automate the input:    |
 |     ./build <option> d : do the default action         |
 |     ./build <option> y : answer yes to all questions   |
 |     ./build <option> n : answer no to all questions    |
 +--------------------------------------------------------+

Code:
Apache: 2.2.27(B
Dovecot: 2.2.12(B
AWstats: no(B
Exim: no(B
exim.conf update: no(B
SpamAssassin: no(B
ClamAV: no(B
ClamAV: no(B
MySQL: no(B
MySQL backup: yes(B
MySQL backup directory: /usr/local/directadmin/custombuild/mysql_backups(B
PHP: 5.3.28(B as CLI(B without mail() header patch(B
phpMyAdmin: 3.5.8.2-all-languages(B
ProFTPD: no(B
Pure-FTPd: no(B
Atmail webmail: no(B
RoundCube webmail: 0.9.5(B
Replace "php.ini" with './build all' and './build php-ini': no(B
Auto updates/notifications: no(B
Run "clean" every time: yes(B
Run "clean_old_webapps" every time: yes(B
Run "clean_old_tarballs" every time: no(B
Show texts in bold: yes(B
SquirrelMail: 1.4.22(B
UebiMiau: no(B
Zend Optimizer: no(B
ionCube loader: no(B
 
Code:
Apache: 2.2.27
Dovecot: 2.2.12
AWstats: no
Exim: no
exim.conf update: no
SpamAssassin: no
ClamAV: no
ClamAV: no
MySQL: no
MySQL backup: yes
MySQL backup directory: /usr/local/directadmin/custombuild/mysql_backups
PHP: 5.3.28 as CLI without mail() header patch
phpMyAdmin: 3.5.8.2-all-languages
ProFTPD: no
Pure-FTPd: no
Atmail webmail: no
RoundCube webmail: 0.9.5
Replace "php.ini" with './build all' and './build php-ini': no
Auto updates/notifications: no
Run "clean" every time: yes
Run "clean_old_webapps" every time: yes
Run "clean_old_tarballs" every time: no
Show texts in bold: yes
SquirrelMail: 1.4.22
UebiMiau: no
Zend Optimizer: no
ionCube loader: no
 
Back
Top