logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache keep shutting down and changing port???
Author
Keema



Joined: 01 Jan 2017
Posts: 4
Location: Egypt, Port Said

PostPosted: Sun 01 Jan '17 15:42    Post subject: Apache keep shutting down and changing port??? Reply with quote

Apache version 2.4.6
VPS running Centos7, Apache with Varnish, PHP and MySQL
I use Sentora CP and Webmin
I changed the Apache listening port to 8080 because varnish is using port 80
but Apache keep changing this port back to 80 and it's already busy by Varnish so Apache shutdown
these are the last 20 lines of the error log file for Apache, I think also there are other issues other than the port issue
and by the way I don't have Xcache installed or listed in 00-base.conf and I dont know why it's listed in error log

Quote:

[Sun Jan 01 01:29:56.418845 2017] [suexec:notice] [pid 29333] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Jan 01 01:29:56.447631 2017] [auth_digest:notice] [pid 29333] AH01757: generating secret for digest authentication ...
[Sun Jan 01 01:29:56.448289 2017] [lbmethod_heartbeat:notice] [pid 29333] AH02282: No slotmem from mod_heartmonitor
Failed loading /usr/lib/php/modules/xcache.so: /usr/lib/php/modules/xcache.so: cannot open shared object file: No such file or directory
[Sun Jan 01 01:29:56.493274 2017] [core:warn] [pid 29333] AH00098: pid file /run/httpd/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jan 01 01:29:56.502859 2017] [mpm_prefork:notice] [pid 29333] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Sun Jan 01 01:29:56.503079 2017] [core:notice] [pid 29333] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Sun Jan 01 01:30:04.883190 2017] [mpm_prefork:notice] [pid 29333] AH00171: Graceful restart requested, doing restart
[Sun Jan 01 01:30:04.979506 2017] [auth_digest:notice] [pid 29333] AH01757: generating secret for digest authentication ...
[Sun Jan 01 01:30:04.980163 2017] [lbmethod_heartbeat:notice] [pid 29333] AH02282: No slotmem from mod_heartmonitor
Failed loading /usr/lib/php/modules/xcache.so: /usr/lib/php/modules/xcache.so: cannot open shared object file: No such file or directory
[Sun Jan 01 01:30:05.017310 2017] [mpm_prefork:notice] [pid 29333] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Sun Jan 01 01:30:05.017367 2017] [core:notice] [pid 29333] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Sun Jan 01 01:38:48.543275 2017] [core:notice] [pid 29333] AH00052: child pid 29372 exit signal Segmentation fault (11)
[Sun Jan 01 01:55:02.148046 2017] [mpm_prefork:notice] [pid 29333] AH00171: Graceful restart requested, doing restart
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
[Sun Jan 01 01:55:02.323145 2017] [mpm_prefork:alert] [pid 29333] no listening sockets available, shutting down
[Sun Jan 01 01:55:02.323150 2017] [:emerg] [pid 29333] AH00019: Unable to open logs, exiting

Your Help will be Appreciated
Thanks in Advance
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Mon 02 Jan '17 20:25    Post subject: Reply with quote

Can you post the config where you change the port to 8080
Back to top
Keema



Joined: 01 Jan 2017
Posts: 4
Location: Egypt, Port Said

PostPosted: Tue 03 Jan '17 21:47    Post subject: Reply with quote

the config file name is "httpd-vhosts.conf"
Quote:

# Apache VHOST configuration file
# Automatically generated by Sentora 1.0.3
# Generated on: 01:55 1st Jan 2017 EET
#==== YOU MUST NOT EDIT THIS FILE : IT WILL BE OVERWRITTEN ====
# Use Sentora Menu -> Admin -> Module Admin -> Apache config

Listen 8080

# Configuration for Sentora control panel.
<VirtualHost *:8080>
ServerAdmin zadmin@localhost
DocumentRoot /etc/sentora/panel/
ServerName keem.mydomain.com
ErrorLog "/var/sentora/logs/sentora-error.log"
CustomLog "/var/sentora/logs/sentora-access.log" combined
CustomLog "/var/sentora/logs/sentora-bandwidth.log" common
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>

# Custom settings are loaded below this line (if any exist)

</VirtualHost>

<virtualhost *:8080>
ServerName mydomain.com
ServerAlias www.mydomain.com
ServerAdmin zadmin@localhost
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mydomain_com"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
ErrorLog "/var/sentora/logs/domains/zadmin/mydomain.com-error.log"
CustomLog "/var/sentora/logs/domains/zadmin/mydomain.com-access.log" combined
CustomLog "/var/sentora/logs/domains/zadmin/mydomain.com-bandwidth.log" common
<Directory "/var/sentora/hostdata/zadmin/public_html/mydomain_com">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)

# Custom VH settings (if any exist)

</virtualhost>


Thanks in Advance bro
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Thu 05 Jan '17 7:56    Post subject: Reply with quote

1) Change the Listen in main httpd.conf
2) Make sure this in uncommented in httpd.conf
Code:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Back to top
Keema



Joined: 01 Jan 2017
Posts: 4
Location: Egypt, Port Said

PostPosted: Thu 05 Jan '17 19:21    Post subject: Reply with quote

Thanks again for reply
but there is no such line in httpd.conf
the only line related to our subject is
Quote:
# Listen is now handled in Sentora vhosts file
the file I already posted in the last post
Thanks in Advance
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Thu 05 Jan '17 20:27    Post subject: Reply with quote

Can you post you httpd.conf file ?
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Thu 05 Jan '17 20:30    Post subject: Reply with quote

When you post conf files, please use past bin. See top of post screen.
Back to top
Keema



Joined: 01 Jan 2017
Posts: 4
Location: Egypt, Port Said

PostPosted: Fri 06 Jan '17 14:04    Post subject: Reply with quote

Thanks for reply
Actually I have 2 httpd.conf files
1st path is etc/httpd/conf/httpd.conf
http://apaste.info/aH0tH
2nd path is etc/sentora/configs/apache/httpd.conf
http://apaste.info/AALVl
sorry If I'm causing any inconvenience bro
Thanks in Advance
Back to top


Reply to topic   Topic: Apache keep shutting down and changing port??? View previous topic :: View next topic
Post new topic   Forum Index -> Apache