Trouble starting apache via apachectlRunning Apache with privileges for remote shutdown on Windows“could...
chrony vs. systemd-timesyncd – What are the differences and use cases as NTP clients?
Is there a ternary operator in math
Use comma instead of & in table
Do Hexblade warlocks choose their spells from the Hexblade spell list or the warlock spell list?
Compare four integers, return word based on maximum
Reason why dimensional travelling would be restricted
Are small insurances worth it
Why do members of Congress in committee hearings ask witnesses the same question multiple times?
Equivalent to "source" in OpenBSD?
Why is working on the same position for more than 15 years not a red flag?
Is my plan for fixing my water heater leak bad?
If nine coins are tossed, what is the probability that the number of heads is even?
Series pass transistor, LM7812
Difference between 小吃 and 零食
Is there a frame of reference in which I was born before I was conceived?
Should I choose Itemized or Standard deduction?
I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?
Is there a low-level alternative to Animate Objects?
Is there any relevance to Thor getting his hair cut other than comedic value?
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
A "strange" unit radio astronomy
Hacker Rank: Array left rotation
Rationale to prefer local variables over instance variables?
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Trouble starting apache via apachectl
Running Apache with privileges for remote shutdown on Windows“could not bind to address 0.0.0.0:80 ” — Apache Errorinstalling latest apache on centosMaxClients in apache. How to know the size of my proccess?Unable to change Apache http server port in unixName-based apache setupApache environment variables for CGI not settingIssue getting httpd fullstatus to work on webserver on Apache 2.4Is it possible to create a filter that will be invoked once after the authentication?Change apache MPM prefork to worker on Amazon Linux AMI
I'm trying to move our production webserver over to a linux box. When I issue the start command using apachectl, nothing happens, and it goes back to the command line. If I run apachectl status
, it tells me "ELinks: Connection refused".
However, if I try and start apache directly using httpd -k start
, it starts the apache process just fine.
Any ideas as to why I can't use apachectl to start it? Also, is it a big deal to just start it by issuing the httpd -k start
command? I would just always start it that way, but am worried about the following line from the apache documentation
In general, httpd should not be invoked directly, but rather should be invoked via apachectl on Unix-based systems
http://httpd.apache.org/docs/2.0/programs/httpd.html
apache-2.2 redhat
add a comment |
I'm trying to move our production webserver over to a linux box. When I issue the start command using apachectl, nothing happens, and it goes back to the command line. If I run apachectl status
, it tells me "ELinks: Connection refused".
However, if I try and start apache directly using httpd -k start
, it starts the apache process just fine.
Any ideas as to why I can't use apachectl to start it? Also, is it a big deal to just start it by issuing the httpd -k start
command? I would just always start it that way, but am worried about the following line from the apache documentation
In general, httpd should not be invoked directly, but rather should be invoked via apachectl on Unix-based systems
http://httpd.apache.org/docs/2.0/programs/httpd.html
apache-2.2 redhat
since you are using redhat ... try the follow commandservice httpd restart
Also i would like a few more information to better assist you: How was your apache installed (with the system ? compiled by you ? withyum install httpd
or apache) ? what do you have on the file/var/log/httpd/error_log
? please keep in mind that the most information you provided about your problem will help us help you faster.
– Prix
Aug 24 '10 at 19:51
"ELinks: Connection refused" : Looks like your apachectl status is trying to use a text browser to parse server-status.
– user130370
Jan 8 '13 at 8:35
add a comment |
I'm trying to move our production webserver over to a linux box. When I issue the start command using apachectl, nothing happens, and it goes back to the command line. If I run apachectl status
, it tells me "ELinks: Connection refused".
However, if I try and start apache directly using httpd -k start
, it starts the apache process just fine.
Any ideas as to why I can't use apachectl to start it? Also, is it a big deal to just start it by issuing the httpd -k start
command? I would just always start it that way, but am worried about the following line from the apache documentation
In general, httpd should not be invoked directly, but rather should be invoked via apachectl on Unix-based systems
http://httpd.apache.org/docs/2.0/programs/httpd.html
apache-2.2 redhat
I'm trying to move our production webserver over to a linux box. When I issue the start command using apachectl, nothing happens, and it goes back to the command line. If I run apachectl status
, it tells me "ELinks: Connection refused".
However, if I try and start apache directly using httpd -k start
, it starts the apache process just fine.
Any ideas as to why I can't use apachectl to start it? Also, is it a big deal to just start it by issuing the httpd -k start
command? I would just always start it that way, but am worried about the following line from the apache documentation
In general, httpd should not be invoked directly, but rather should be invoked via apachectl on Unix-based systems
http://httpd.apache.org/docs/2.0/programs/httpd.html
apache-2.2 redhat
apache-2.2 redhat
asked Aug 24 '10 at 19:07
MattMatt
892210
892210
since you are using redhat ... try the follow commandservice httpd restart
Also i would like a few more information to better assist you: How was your apache installed (with the system ? compiled by you ? withyum install httpd
or apache) ? what do you have on the file/var/log/httpd/error_log
? please keep in mind that the most information you provided about your problem will help us help you faster.
– Prix
Aug 24 '10 at 19:51
"ELinks: Connection refused" : Looks like your apachectl status is trying to use a text browser to parse server-status.
– user130370
Jan 8 '13 at 8:35
add a comment |
since you are using redhat ... try the follow commandservice httpd restart
Also i would like a few more information to better assist you: How was your apache installed (with the system ? compiled by you ? withyum install httpd
or apache) ? what do you have on the file/var/log/httpd/error_log
? please keep in mind that the most information you provided about your problem will help us help you faster.
– Prix
Aug 24 '10 at 19:51
"ELinks: Connection refused" : Looks like your apachectl status is trying to use a text browser to parse server-status.
– user130370
Jan 8 '13 at 8:35
since you are using redhat ... try the follow command
service httpd restart
Also i would like a few more information to better assist you: How was your apache installed (with the system ? compiled by you ? with yum install httpd
or apache) ? what do you have on the file /var/log/httpd/error_log
? please keep in mind that the most information you provided about your problem will help us help you faster.– Prix
Aug 24 '10 at 19:51
since you are using redhat ... try the follow command
service httpd restart
Also i would like a few more information to better assist you: How was your apache installed (with the system ? compiled by you ? with yum install httpd
or apache) ? what do you have on the file /var/log/httpd/error_log
? please keep in mind that the most information you provided about your problem will help us help you faster.– Prix
Aug 24 '10 at 19:51
"ELinks: Connection refused" : Looks like your apachectl status is trying to use a text browser to parse server-status.
– user130370
Jan 8 '13 at 8:35
"ELinks: Connection refused" : Looks like your apachectl status is trying to use a text browser to parse server-status.
– user130370
Jan 8 '13 at 8:35
add a comment |
4 Answers
4
active
oldest
votes
What errors are you recieving from the apachectl command? apachectl is nothing more than a shell script, so you can debug it by invoking it with sh -x /path/to/apachectl start
. You will see ALOT of information get spilled to the screen. If you aren't recieving any errors, or output and there are no httpd processes running on the system, you might want to look at your log files, such as /var/log/messages
.
Additionally, after running the apachectl start
command you could also issue echo $?
to see the exit status code. These are all things that you could provide so that we can further help out.
It looks like SELinux was not allowing it to start.. But I would have never found that had you not mentioned the/var/log/messages
file. Sorry for not initially posting more information / errors, but I really didn't have any.. Thanks for your help!
– Matt
Aug 25 '10 at 18:54
No problem. Yeah, SELinux get's me everytime. I usually disabled that on every RHEL-based system; I personally do not use it.
– drewrockshard
Aug 25 '10 at 21:14
add a comment |
For what its worth, I downloaded the Apache packages AFTER I installed the base Linux system. They compiled fine, but did not warn that the links package was missing.
so, make certain you have run
yum install links
.
Also, nothing was mentioned in the documentation about the difference between two similar looking files in different locations:
apachectl
in/usr/local/apache2/bin/apachectl
andusr/sbin/apachectl
. I ended up using the/usr/sbin/apachectl
./usr/local/apache2/bin/apachectl
to this day still returns an error:/usr/local/apache2/apachectl: line 94: lynx: command not found
. No idea why. Apache's work with the/usr/sbin/apachectl
version however.
[root@]# ls -l /usr/local/apache2/bin/apachectl
-rwxr-xr-x. 1 root root 3428 Jan 27 12:11 /usr/local/apache2/bin/apachectl[root@]# ls -l /usr/sbin/apachectl
-rwxr-xr-x. 1 root root 3916 Dec 8 12:10 /usr/sbin/apachectl
I was stuck getting through all the intricacies of the file /etc/httpd/conf/httpd.conf. I'm all for web-security, but for clueless newbies like myself, its a bugger to have to wade into a plethora of Internet help files, like this one, to finally get a simple service to start.
For anybody else getting stuck in getting apachectl status
to return a decent value - I bet you're also getting stuck where I was with the default values not being all that good in the /etc/httpd/conf/httpd.conf
file. Uncomment and modify the appropriate sections. You may want to order Allow from all
in the <Location /server-info>
and <Location /server-status>
points just to be sure your service is starting properly. Make sure to always restart the service with service httpd restart
. Then, you can pare down access and return to Deny from all
rules when you know your Apache server's running well.
The reason it complains about lynx (a command-line browser), is it needs it to display to output the results of apachectl fullstatus. It's a bit silly for it not to have a fallback, but there you are. You should be able to get lynx via aptitude if you want it.
– AlexMA
Aug 26 '14 at 16:35
add a comment |
I also faced the same issue, to fix this issue I need to enable server-status in httpd.conf file, as ./apachectl status command trying to connect server-status page which by default not configured
[root@bin]# ./apachectl status
Not Found
The requested URL /server-status was not found on this server.
[root@bin]# sh -x ./apachectl status
+ ACMD=status
+ ARGV=status
+ HTTPD=/usr/local/rail_apache/bin/httpd
+ test -f /usr/local/rail_apache/bin/envvars
+ . /usr/local/rail_apache/bin/envvars
++ test x '!=' x
++ LD_LIBRARY_PATH=/usr/local/rail_apache/lib
++ export LD_LIBRARY_PATH
+ LYNX='links -dump'
+ STATUSURL=http://example.com:80/server-status
++ ulimit -H -n
+ ULIMIT_MAX_FILES='ulimit -S -n 4096'
+ '[' 'xulimit -S -n 4096' '!=' x ']'
+ ulimit -S -n 4096
+ ERROR=0
+ '[' xstatus = x ']'
+ case $ACMD in
+ links -dump http://example.com:80/server-status
+ awk ' /process$/ { print; exit } { print } '
Not Found
The requested URL /server-status was not found on this server.
+ exit 0
Thanks for the analysis. I'm sure the OP would appreciate some more detail on just what to change in the Apache config to makemod_status
work.
– Felix Frank
Aug 8 '14 at 9:36
you can add the following section in apache conf file to enable server-status <Location /server-status> SetHandler server-status Order deny,allow Allow from all </Location>
– Skumar
Aug 11 '14 at 5:31
add a comment |
If you had an same issue as below:
+ awk ' /process$/ { print; exit } { print } '
Not Found
The requested URL /server-status was not found on this server.
you need to fix it:
1. vim /sbin/apacheclt find STATUSURL="http://localhost:80/server-status" then change STATUSURL="http://localhost:80/"
2. restart apacheclt , it appear the content:
[root@CentOS6-07 ~]# /sbin/apachectl status
It works!
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f174036%2ftrouble-starting-apache-via-apachectl%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
What errors are you recieving from the apachectl command? apachectl is nothing more than a shell script, so you can debug it by invoking it with sh -x /path/to/apachectl start
. You will see ALOT of information get spilled to the screen. If you aren't recieving any errors, or output and there are no httpd processes running on the system, you might want to look at your log files, such as /var/log/messages
.
Additionally, after running the apachectl start
command you could also issue echo $?
to see the exit status code. These are all things that you could provide so that we can further help out.
It looks like SELinux was not allowing it to start.. But I would have never found that had you not mentioned the/var/log/messages
file. Sorry for not initially posting more information / errors, but I really didn't have any.. Thanks for your help!
– Matt
Aug 25 '10 at 18:54
No problem. Yeah, SELinux get's me everytime. I usually disabled that on every RHEL-based system; I personally do not use it.
– drewrockshard
Aug 25 '10 at 21:14
add a comment |
What errors are you recieving from the apachectl command? apachectl is nothing more than a shell script, so you can debug it by invoking it with sh -x /path/to/apachectl start
. You will see ALOT of information get spilled to the screen. If you aren't recieving any errors, or output and there are no httpd processes running on the system, you might want to look at your log files, such as /var/log/messages
.
Additionally, after running the apachectl start
command you could also issue echo $?
to see the exit status code. These are all things that you could provide so that we can further help out.
It looks like SELinux was not allowing it to start.. But I would have never found that had you not mentioned the/var/log/messages
file. Sorry for not initially posting more information / errors, but I really didn't have any.. Thanks for your help!
– Matt
Aug 25 '10 at 18:54
No problem. Yeah, SELinux get's me everytime. I usually disabled that on every RHEL-based system; I personally do not use it.
– drewrockshard
Aug 25 '10 at 21:14
add a comment |
What errors are you recieving from the apachectl command? apachectl is nothing more than a shell script, so you can debug it by invoking it with sh -x /path/to/apachectl start
. You will see ALOT of information get spilled to the screen. If you aren't recieving any errors, or output and there are no httpd processes running on the system, you might want to look at your log files, such as /var/log/messages
.
Additionally, after running the apachectl start
command you could also issue echo $?
to see the exit status code. These are all things that you could provide so that we can further help out.
What errors are you recieving from the apachectl command? apachectl is nothing more than a shell script, so you can debug it by invoking it with sh -x /path/to/apachectl start
. You will see ALOT of information get spilled to the screen. If you aren't recieving any errors, or output and there are no httpd processes running on the system, you might want to look at your log files, such as /var/log/messages
.
Additionally, after running the apachectl start
command you could also issue echo $?
to see the exit status code. These are all things that you could provide so that we can further help out.
answered Aug 24 '10 at 19:14
drewrocksharddrewrockshard
1,13841427
1,13841427
It looks like SELinux was not allowing it to start.. But I would have never found that had you not mentioned the/var/log/messages
file. Sorry for not initially posting more information / errors, but I really didn't have any.. Thanks for your help!
– Matt
Aug 25 '10 at 18:54
No problem. Yeah, SELinux get's me everytime. I usually disabled that on every RHEL-based system; I personally do not use it.
– drewrockshard
Aug 25 '10 at 21:14
add a comment |
It looks like SELinux was not allowing it to start.. But I would have never found that had you not mentioned the/var/log/messages
file. Sorry for not initially posting more information / errors, but I really didn't have any.. Thanks for your help!
– Matt
Aug 25 '10 at 18:54
No problem. Yeah, SELinux get's me everytime. I usually disabled that on every RHEL-based system; I personally do not use it.
– drewrockshard
Aug 25 '10 at 21:14
It looks like SELinux was not allowing it to start.. But I would have never found that had you not mentioned the
/var/log/messages
file. Sorry for not initially posting more information / errors, but I really didn't have any.. Thanks for your help!– Matt
Aug 25 '10 at 18:54
It looks like SELinux was not allowing it to start.. But I would have never found that had you not mentioned the
/var/log/messages
file. Sorry for not initially posting more information / errors, but I really didn't have any.. Thanks for your help!– Matt
Aug 25 '10 at 18:54
No problem. Yeah, SELinux get's me everytime. I usually disabled that on every RHEL-based system; I personally do not use it.
– drewrockshard
Aug 25 '10 at 21:14
No problem. Yeah, SELinux get's me everytime. I usually disabled that on every RHEL-based system; I personally do not use it.
– drewrockshard
Aug 25 '10 at 21:14
add a comment |
For what its worth, I downloaded the Apache packages AFTER I installed the base Linux system. They compiled fine, but did not warn that the links package was missing.
so, make certain you have run
yum install links
.
Also, nothing was mentioned in the documentation about the difference between two similar looking files in different locations:
apachectl
in/usr/local/apache2/bin/apachectl
andusr/sbin/apachectl
. I ended up using the/usr/sbin/apachectl
./usr/local/apache2/bin/apachectl
to this day still returns an error:/usr/local/apache2/apachectl: line 94: lynx: command not found
. No idea why. Apache's work with the/usr/sbin/apachectl
version however.
[root@]# ls -l /usr/local/apache2/bin/apachectl
-rwxr-xr-x. 1 root root 3428 Jan 27 12:11 /usr/local/apache2/bin/apachectl[root@]# ls -l /usr/sbin/apachectl
-rwxr-xr-x. 1 root root 3916 Dec 8 12:10 /usr/sbin/apachectl
I was stuck getting through all the intricacies of the file /etc/httpd/conf/httpd.conf. I'm all for web-security, but for clueless newbies like myself, its a bugger to have to wade into a plethora of Internet help files, like this one, to finally get a simple service to start.
For anybody else getting stuck in getting apachectl status
to return a decent value - I bet you're also getting stuck where I was with the default values not being all that good in the /etc/httpd/conf/httpd.conf
file. Uncomment and modify the appropriate sections. You may want to order Allow from all
in the <Location /server-info>
and <Location /server-status>
points just to be sure your service is starting properly. Make sure to always restart the service with service httpd restart
. Then, you can pare down access and return to Deny from all
rules when you know your Apache server's running well.
The reason it complains about lynx (a command-line browser), is it needs it to display to output the results of apachectl fullstatus. It's a bit silly for it not to have a fallback, but there you are. You should be able to get lynx via aptitude if you want it.
– AlexMA
Aug 26 '14 at 16:35
add a comment |
For what its worth, I downloaded the Apache packages AFTER I installed the base Linux system. They compiled fine, but did not warn that the links package was missing.
so, make certain you have run
yum install links
.
Also, nothing was mentioned in the documentation about the difference between two similar looking files in different locations:
apachectl
in/usr/local/apache2/bin/apachectl
andusr/sbin/apachectl
. I ended up using the/usr/sbin/apachectl
./usr/local/apache2/bin/apachectl
to this day still returns an error:/usr/local/apache2/apachectl: line 94: lynx: command not found
. No idea why. Apache's work with the/usr/sbin/apachectl
version however.
[root@]# ls -l /usr/local/apache2/bin/apachectl
-rwxr-xr-x. 1 root root 3428 Jan 27 12:11 /usr/local/apache2/bin/apachectl[root@]# ls -l /usr/sbin/apachectl
-rwxr-xr-x. 1 root root 3916 Dec 8 12:10 /usr/sbin/apachectl
I was stuck getting through all the intricacies of the file /etc/httpd/conf/httpd.conf. I'm all for web-security, but for clueless newbies like myself, its a bugger to have to wade into a plethora of Internet help files, like this one, to finally get a simple service to start.
For anybody else getting stuck in getting apachectl status
to return a decent value - I bet you're also getting stuck where I was with the default values not being all that good in the /etc/httpd/conf/httpd.conf
file. Uncomment and modify the appropriate sections. You may want to order Allow from all
in the <Location /server-info>
and <Location /server-status>
points just to be sure your service is starting properly. Make sure to always restart the service with service httpd restart
. Then, you can pare down access and return to Deny from all
rules when you know your Apache server's running well.
The reason it complains about lynx (a command-line browser), is it needs it to display to output the results of apachectl fullstatus. It's a bit silly for it not to have a fallback, but there you are. You should be able to get lynx via aptitude if you want it.
– AlexMA
Aug 26 '14 at 16:35
add a comment |
For what its worth, I downloaded the Apache packages AFTER I installed the base Linux system. They compiled fine, but did not warn that the links package was missing.
so, make certain you have run
yum install links
.
Also, nothing was mentioned in the documentation about the difference between two similar looking files in different locations:
apachectl
in/usr/local/apache2/bin/apachectl
andusr/sbin/apachectl
. I ended up using the/usr/sbin/apachectl
./usr/local/apache2/bin/apachectl
to this day still returns an error:/usr/local/apache2/apachectl: line 94: lynx: command not found
. No idea why. Apache's work with the/usr/sbin/apachectl
version however.
[root@]# ls -l /usr/local/apache2/bin/apachectl
-rwxr-xr-x. 1 root root 3428 Jan 27 12:11 /usr/local/apache2/bin/apachectl[root@]# ls -l /usr/sbin/apachectl
-rwxr-xr-x. 1 root root 3916 Dec 8 12:10 /usr/sbin/apachectl
I was stuck getting through all the intricacies of the file /etc/httpd/conf/httpd.conf. I'm all for web-security, but for clueless newbies like myself, its a bugger to have to wade into a plethora of Internet help files, like this one, to finally get a simple service to start.
For anybody else getting stuck in getting apachectl status
to return a decent value - I bet you're also getting stuck where I was with the default values not being all that good in the /etc/httpd/conf/httpd.conf
file. Uncomment and modify the appropriate sections. You may want to order Allow from all
in the <Location /server-info>
and <Location /server-status>
points just to be sure your service is starting properly. Make sure to always restart the service with service httpd restart
. Then, you can pare down access and return to Deny from all
rules when you know your Apache server's running well.
For what its worth, I downloaded the Apache packages AFTER I installed the base Linux system. They compiled fine, but did not warn that the links package was missing.
so, make certain you have run
yum install links
.
Also, nothing was mentioned in the documentation about the difference between two similar looking files in different locations:
apachectl
in/usr/local/apache2/bin/apachectl
andusr/sbin/apachectl
. I ended up using the/usr/sbin/apachectl
./usr/local/apache2/bin/apachectl
to this day still returns an error:/usr/local/apache2/apachectl: line 94: lynx: command not found
. No idea why. Apache's work with the/usr/sbin/apachectl
version however.
[root@]# ls -l /usr/local/apache2/bin/apachectl
-rwxr-xr-x. 1 root root 3428 Jan 27 12:11 /usr/local/apache2/bin/apachectl[root@]# ls -l /usr/sbin/apachectl
-rwxr-xr-x. 1 root root 3916 Dec 8 12:10 /usr/sbin/apachectl
I was stuck getting through all the intricacies of the file /etc/httpd/conf/httpd.conf. I'm all for web-security, but for clueless newbies like myself, its a bugger to have to wade into a plethora of Internet help files, like this one, to finally get a simple service to start.
For anybody else getting stuck in getting apachectl status
to return a decent value - I bet you're also getting stuck where I was with the default values not being all that good in the /etc/httpd/conf/httpd.conf
file. Uncomment and modify the appropriate sections. You may want to order Allow from all
in the <Location /server-info>
and <Location /server-status>
points just to be sure your service is starting properly. Make sure to always restart the service with service httpd restart
. Then, you can pare down access and return to Deny from all
rules when you know your Apache server's running well.
edited Aug 4 '14 at 10:30
Cristian Ciupitu
5,42013351
5,42013351
answered Jan 28 '12 at 5:47
Joe KingJoe King
163
163
The reason it complains about lynx (a command-line browser), is it needs it to display to output the results of apachectl fullstatus. It's a bit silly for it not to have a fallback, but there you are. You should be able to get lynx via aptitude if you want it.
– AlexMA
Aug 26 '14 at 16:35
add a comment |
The reason it complains about lynx (a command-line browser), is it needs it to display to output the results of apachectl fullstatus. It's a bit silly for it not to have a fallback, but there you are. You should be able to get lynx via aptitude if you want it.
– AlexMA
Aug 26 '14 at 16:35
The reason it complains about lynx (a command-line browser), is it needs it to display to output the results of apachectl fullstatus. It's a bit silly for it not to have a fallback, but there you are. You should be able to get lynx via aptitude if you want it.
– AlexMA
Aug 26 '14 at 16:35
The reason it complains about lynx (a command-line browser), is it needs it to display to output the results of apachectl fullstatus. It's a bit silly for it not to have a fallback, but there you are. You should be able to get lynx via aptitude if you want it.
– AlexMA
Aug 26 '14 at 16:35
add a comment |
I also faced the same issue, to fix this issue I need to enable server-status in httpd.conf file, as ./apachectl status command trying to connect server-status page which by default not configured
[root@bin]# ./apachectl status
Not Found
The requested URL /server-status was not found on this server.
[root@bin]# sh -x ./apachectl status
+ ACMD=status
+ ARGV=status
+ HTTPD=/usr/local/rail_apache/bin/httpd
+ test -f /usr/local/rail_apache/bin/envvars
+ . /usr/local/rail_apache/bin/envvars
++ test x '!=' x
++ LD_LIBRARY_PATH=/usr/local/rail_apache/lib
++ export LD_LIBRARY_PATH
+ LYNX='links -dump'
+ STATUSURL=http://example.com:80/server-status
++ ulimit -H -n
+ ULIMIT_MAX_FILES='ulimit -S -n 4096'
+ '[' 'xulimit -S -n 4096' '!=' x ']'
+ ulimit -S -n 4096
+ ERROR=0
+ '[' xstatus = x ']'
+ case $ACMD in
+ links -dump http://example.com:80/server-status
+ awk ' /process$/ { print; exit } { print } '
Not Found
The requested URL /server-status was not found on this server.
+ exit 0
Thanks for the analysis. I'm sure the OP would appreciate some more detail on just what to change in the Apache config to makemod_status
work.
– Felix Frank
Aug 8 '14 at 9:36
you can add the following section in apache conf file to enable server-status <Location /server-status> SetHandler server-status Order deny,allow Allow from all </Location>
– Skumar
Aug 11 '14 at 5:31
add a comment |
I also faced the same issue, to fix this issue I need to enable server-status in httpd.conf file, as ./apachectl status command trying to connect server-status page which by default not configured
[root@bin]# ./apachectl status
Not Found
The requested URL /server-status was not found on this server.
[root@bin]# sh -x ./apachectl status
+ ACMD=status
+ ARGV=status
+ HTTPD=/usr/local/rail_apache/bin/httpd
+ test -f /usr/local/rail_apache/bin/envvars
+ . /usr/local/rail_apache/bin/envvars
++ test x '!=' x
++ LD_LIBRARY_PATH=/usr/local/rail_apache/lib
++ export LD_LIBRARY_PATH
+ LYNX='links -dump'
+ STATUSURL=http://example.com:80/server-status
++ ulimit -H -n
+ ULIMIT_MAX_FILES='ulimit -S -n 4096'
+ '[' 'xulimit -S -n 4096' '!=' x ']'
+ ulimit -S -n 4096
+ ERROR=0
+ '[' xstatus = x ']'
+ case $ACMD in
+ links -dump http://example.com:80/server-status
+ awk ' /process$/ { print; exit } { print } '
Not Found
The requested URL /server-status was not found on this server.
+ exit 0
Thanks for the analysis. I'm sure the OP would appreciate some more detail on just what to change in the Apache config to makemod_status
work.
– Felix Frank
Aug 8 '14 at 9:36
you can add the following section in apache conf file to enable server-status <Location /server-status> SetHandler server-status Order deny,allow Allow from all </Location>
– Skumar
Aug 11 '14 at 5:31
add a comment |
I also faced the same issue, to fix this issue I need to enable server-status in httpd.conf file, as ./apachectl status command trying to connect server-status page which by default not configured
[root@bin]# ./apachectl status
Not Found
The requested URL /server-status was not found on this server.
[root@bin]# sh -x ./apachectl status
+ ACMD=status
+ ARGV=status
+ HTTPD=/usr/local/rail_apache/bin/httpd
+ test -f /usr/local/rail_apache/bin/envvars
+ . /usr/local/rail_apache/bin/envvars
++ test x '!=' x
++ LD_LIBRARY_PATH=/usr/local/rail_apache/lib
++ export LD_LIBRARY_PATH
+ LYNX='links -dump'
+ STATUSURL=http://example.com:80/server-status
++ ulimit -H -n
+ ULIMIT_MAX_FILES='ulimit -S -n 4096'
+ '[' 'xulimit -S -n 4096' '!=' x ']'
+ ulimit -S -n 4096
+ ERROR=0
+ '[' xstatus = x ']'
+ case $ACMD in
+ links -dump http://example.com:80/server-status
+ awk ' /process$/ { print; exit } { print } '
Not Found
The requested URL /server-status was not found on this server.
+ exit 0
I also faced the same issue, to fix this issue I need to enable server-status in httpd.conf file, as ./apachectl status command trying to connect server-status page which by default not configured
[root@bin]# ./apachectl status
Not Found
The requested URL /server-status was not found on this server.
[root@bin]# sh -x ./apachectl status
+ ACMD=status
+ ARGV=status
+ HTTPD=/usr/local/rail_apache/bin/httpd
+ test -f /usr/local/rail_apache/bin/envvars
+ . /usr/local/rail_apache/bin/envvars
++ test x '!=' x
++ LD_LIBRARY_PATH=/usr/local/rail_apache/lib
++ export LD_LIBRARY_PATH
+ LYNX='links -dump'
+ STATUSURL=http://example.com:80/server-status
++ ulimit -H -n
+ ULIMIT_MAX_FILES='ulimit -S -n 4096'
+ '[' 'xulimit -S -n 4096' '!=' x ']'
+ ulimit -S -n 4096
+ ERROR=0
+ '[' xstatus = x ']'
+ case $ACMD in
+ links -dump http://example.com:80/server-status
+ awk ' /process$/ { print; exit } { print } '
Not Found
The requested URL /server-status was not found on this server.
+ exit 0
edited Aug 11 '14 at 5:28
answered Aug 8 '14 at 9:12
SkumarSkumar
12
12
Thanks for the analysis. I'm sure the OP would appreciate some more detail on just what to change in the Apache config to makemod_status
work.
– Felix Frank
Aug 8 '14 at 9:36
you can add the following section in apache conf file to enable server-status <Location /server-status> SetHandler server-status Order deny,allow Allow from all </Location>
– Skumar
Aug 11 '14 at 5:31
add a comment |
Thanks for the analysis. I'm sure the OP would appreciate some more detail on just what to change in the Apache config to makemod_status
work.
– Felix Frank
Aug 8 '14 at 9:36
you can add the following section in apache conf file to enable server-status <Location /server-status> SetHandler server-status Order deny,allow Allow from all </Location>
– Skumar
Aug 11 '14 at 5:31
Thanks for the analysis. I'm sure the OP would appreciate some more detail on just what to change in the Apache config to make
mod_status
work.– Felix Frank
Aug 8 '14 at 9:36
Thanks for the analysis. I'm sure the OP would appreciate some more detail on just what to change in the Apache config to make
mod_status
work.– Felix Frank
Aug 8 '14 at 9:36
you can add the following section in apache conf file to enable server-status <Location /server-status> SetHandler server-status Order deny,allow Allow from all </Location>
– Skumar
Aug 11 '14 at 5:31
you can add the following section in apache conf file to enable server-status <Location /server-status> SetHandler server-status Order deny,allow Allow from all </Location>
– Skumar
Aug 11 '14 at 5:31
add a comment |
If you had an same issue as below:
+ awk ' /process$/ { print; exit } { print } '
Not Found
The requested URL /server-status was not found on this server.
you need to fix it:
1. vim /sbin/apacheclt find STATUSURL="http://localhost:80/server-status" then change STATUSURL="http://localhost:80/"
2. restart apacheclt , it appear the content:
[root@CentOS6-07 ~]# /sbin/apachectl status
It works!
New contributor
add a comment |
If you had an same issue as below:
+ awk ' /process$/ { print; exit } { print } '
Not Found
The requested URL /server-status was not found on this server.
you need to fix it:
1. vim /sbin/apacheclt find STATUSURL="http://localhost:80/server-status" then change STATUSURL="http://localhost:80/"
2. restart apacheclt , it appear the content:
[root@CentOS6-07 ~]# /sbin/apachectl status
It works!
New contributor
add a comment |
If you had an same issue as below:
+ awk ' /process$/ { print; exit } { print } '
Not Found
The requested URL /server-status was not found on this server.
you need to fix it:
1. vim /sbin/apacheclt find STATUSURL="http://localhost:80/server-status" then change STATUSURL="http://localhost:80/"
2. restart apacheclt , it appear the content:
[root@CentOS6-07 ~]# /sbin/apachectl status
It works!
New contributor
If you had an same issue as below:
+ awk ' /process$/ { print; exit } { print } '
Not Found
The requested URL /server-status was not found on this server.
you need to fix it:
1. vim /sbin/apacheclt find STATUSURL="http://localhost:80/server-status" then change STATUSURL="http://localhost:80/"
2. restart apacheclt , it appear the content:
[root@CentOS6-07 ~]# /sbin/apachectl status
It works!
New contributor
New contributor
answered 40 mins ago
Ly ThanhLy Thanh
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f174036%2ftrouble-starting-apache-via-apachectl%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
since you are using redhat ... try the follow command
service httpd restart
Also i would like a few more information to better assist you: How was your apache installed (with the system ? compiled by you ? withyum install httpd
or apache) ? what do you have on the file/var/log/httpd/error_log
? please keep in mind that the most information you provided about your problem will help us help you faster.– Prix
Aug 24 '10 at 19:51
"ELinks: Connection refused" : Looks like your apachectl status is trying to use a text browser to parse server-status.
– user130370
Jan 8 '13 at 8:35