Unable to restart apache

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I was following digitaloceans.com guide to setup a subdomain.
But now I'm having trouble restarting apache.



I have the following error:



Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.


systemctl status httpd.service gave me this:



● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-04-18 18:11:36 UTC; 12s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1679 ExecStop=/bin/kill -WINCH $MAINPID (code=exited, status=1/FAILURE)
Process: 1678 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 1678 (code=exited, status=1/FAILURE)
Apr 18 18:11:36 web-server systemd[1]: Starting The Apache HTTP Server...
Apr 18 18:11:36 web-server systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 18:11:36 web-server kill[1679]: kill: cannot find process ""
Apr 18 18:11:36 web-server systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 18:11:36 web-server systemd[1]: Failed to start The Apache HTTP Server.
Apr 18 18:11:36 web-server systemd[1]: Unit httpd.service entered failed state.
Apr 18 18:11:36 web-server systemd[1]: httpd.service failed.


So I went on and did a sudo tail /var/log/httpd/error_log and got this :



(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs


Can any kind soul please help me out on this? Iam very new and couldnt figure what should I do next.



The Apache configuration snippet follows.



<VirtualHost *:80>
ServerName portal.motomart.my
ServerAlias www.portal.motomart.my
DocumentRoot /var/www/motomart.my/public_html
ErrorLog /var/www/motomart.my/error.log
CustomLog /var/www/motomart.my/requests.log combined
</VirtualHost>






share|improve this question





















  • hi Christopher, I apologize for slow learning but could you let me on more information on how can i fix this?
    – Kok Fong Chow
    Apr 18 at 18:34















up vote
0
down vote

favorite












I was following digitaloceans.com guide to setup a subdomain.
But now I'm having trouble restarting apache.



I have the following error:



Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.


systemctl status httpd.service gave me this:



● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-04-18 18:11:36 UTC; 12s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1679 ExecStop=/bin/kill -WINCH $MAINPID (code=exited, status=1/FAILURE)
Process: 1678 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 1678 (code=exited, status=1/FAILURE)
Apr 18 18:11:36 web-server systemd[1]: Starting The Apache HTTP Server...
Apr 18 18:11:36 web-server systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 18:11:36 web-server kill[1679]: kill: cannot find process ""
Apr 18 18:11:36 web-server systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 18:11:36 web-server systemd[1]: Failed to start The Apache HTTP Server.
Apr 18 18:11:36 web-server systemd[1]: Unit httpd.service entered failed state.
Apr 18 18:11:36 web-server systemd[1]: httpd.service failed.


So I went on and did a sudo tail /var/log/httpd/error_log and got this :



(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs


Can any kind soul please help me out on this? Iam very new and couldnt figure what should I do next.



The Apache configuration snippet follows.



<VirtualHost *:80>
ServerName portal.motomart.my
ServerAlias www.portal.motomart.my
DocumentRoot /var/www/motomart.my/public_html
ErrorLog /var/www/motomart.my/error.log
CustomLog /var/www/motomart.my/requests.log combined
</VirtualHost>






share|improve this question





















  • hi Christopher, I apologize for slow learning but could you let me on more information on how can i fix this?
    – Kok Fong Chow
    Apr 18 at 18:34













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I was following digitaloceans.com guide to setup a subdomain.
But now I'm having trouble restarting apache.



I have the following error:



Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.


systemctl status httpd.service gave me this:



● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-04-18 18:11:36 UTC; 12s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1679 ExecStop=/bin/kill -WINCH $MAINPID (code=exited, status=1/FAILURE)
Process: 1678 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 1678 (code=exited, status=1/FAILURE)
Apr 18 18:11:36 web-server systemd[1]: Starting The Apache HTTP Server...
Apr 18 18:11:36 web-server systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 18:11:36 web-server kill[1679]: kill: cannot find process ""
Apr 18 18:11:36 web-server systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 18:11:36 web-server systemd[1]: Failed to start The Apache HTTP Server.
Apr 18 18:11:36 web-server systemd[1]: Unit httpd.service entered failed state.
Apr 18 18:11:36 web-server systemd[1]: httpd.service failed.


So I went on and did a sudo tail /var/log/httpd/error_log and got this :



(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs


Can any kind soul please help me out on this? Iam very new and couldnt figure what should I do next.



The Apache configuration snippet follows.



<VirtualHost *:80>
ServerName portal.motomart.my
ServerAlias www.portal.motomart.my
DocumentRoot /var/www/motomart.my/public_html
ErrorLog /var/www/motomart.my/error.log
CustomLog /var/www/motomart.my/requests.log combined
</VirtualHost>






share|improve this question













I was following digitaloceans.com guide to setup a subdomain.
But now I'm having trouble restarting apache.



I have the following error:



Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.


systemctl status httpd.service gave me this:



● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-04-18 18:11:36 UTC; 12s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1679 ExecStop=/bin/kill -WINCH $MAINPID (code=exited, status=1/FAILURE)
Process: 1678 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 1678 (code=exited, status=1/FAILURE)
Apr 18 18:11:36 web-server systemd[1]: Starting The Apache HTTP Server...
Apr 18 18:11:36 web-server systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 18:11:36 web-server kill[1679]: kill: cannot find process ""
Apr 18 18:11:36 web-server systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 18:11:36 web-server systemd[1]: Failed to start The Apache HTTP Server.
Apr 18 18:11:36 web-server systemd[1]: Unit httpd.service entered failed state.
Apr 18 18:11:36 web-server systemd[1]: httpd.service failed.


So I went on and did a sudo tail /var/log/httpd/error_log and got this :



(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs


Can any kind soul please help me out on this? Iam very new and couldnt figure what should I do next.



The Apache configuration snippet follows.



<VirtualHost *:80>
ServerName portal.motomart.my
ServerAlias www.portal.motomart.my
DocumentRoot /var/www/motomart.my/public_html
ErrorLog /var/www/motomart.my/error.log
CustomLog /var/www/motomart.my/requests.log combined
</VirtualHost>








share|improve this question












share|improve this question




share|improve this question








edited Apr 19 at 6:26









Vlastimil

6,3311146117




6,3311146117









asked Apr 18 at 18:17









Kok Fong Chow

1




1











  • hi Christopher, I apologize for slow learning but could you let me on more information on how can i fix this?
    – Kok Fong Chow
    Apr 18 at 18:34

















  • hi Christopher, I apologize for slow learning but could you let me on more information on how can i fix this?
    – Kok Fong Chow
    Apr 18 at 18:34
















hi Christopher, I apologize for slow learning but could you let me on more information on how can i fix this?
– Kok Fong Chow
Apr 18 at 18:34





hi Christopher, I apologize for slow learning but could you let me on more information on how can i fix this?
– Kok Fong Chow
Apr 18 at 18:34











1 Answer
1






active

oldest

votes

















up vote
3
down vote













Your logs are telling you exactly why Apache is unable to start:



AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs (21)Is a directory:


Make sure that you are not trying to use a directory as a log file in yout Apache configuration.






share|improve this answer





















  • this maybe a dumb question to ask, but how can I create a log file? I have the following conf : <VirtualHost *:80> ServerName portal.motomart.my ServerAlias www.portal.motomart.my DocumentRoot /var/www/motomart.my/public_html ErrorLog /var/www/motomart.my/error.log CustomLog /var/www/motomart.my/requests.log combined </VirtualHost>
    – Kok Fong Chow
    Apr 18 at 18:44







  • 1




    Does the directory actually exist in a swate which is writable by Apache?
    – DopeGhoti
    Apr 18 at 19:07










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438573%2funable-to-restart-apache%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote













Your logs are telling you exactly why Apache is unable to start:



AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs (21)Is a directory:


Make sure that you are not trying to use a directory as a log file in yout Apache configuration.






share|improve this answer





















  • this maybe a dumb question to ask, but how can I create a log file? I have the following conf : <VirtualHost *:80> ServerName portal.motomart.my ServerAlias www.portal.motomart.my DocumentRoot /var/www/motomart.my/public_html ErrorLog /var/www/motomart.my/error.log CustomLog /var/www/motomart.my/requests.log combined </VirtualHost>
    – Kok Fong Chow
    Apr 18 at 18:44







  • 1




    Does the directory actually exist in a swate which is writable by Apache?
    – DopeGhoti
    Apr 18 at 19:07














up vote
3
down vote













Your logs are telling you exactly why Apache is unable to start:



AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs (21)Is a directory:


Make sure that you are not trying to use a directory as a log file in yout Apache configuration.






share|improve this answer





















  • this maybe a dumb question to ask, but how can I create a log file? I have the following conf : <VirtualHost *:80> ServerName portal.motomart.my ServerAlias www.portal.motomart.my DocumentRoot /var/www/motomart.my/public_html ErrorLog /var/www/motomart.my/error.log CustomLog /var/www/motomart.my/requests.log combined </VirtualHost>
    – Kok Fong Chow
    Apr 18 at 18:44







  • 1




    Does the directory actually exist in a swate which is writable by Apache?
    – DopeGhoti
    Apr 18 at 19:07












up vote
3
down vote










up vote
3
down vote









Your logs are telling you exactly why Apache is unable to start:



AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs (21)Is a directory:


Make sure that you are not trying to use a directory as a log file in yout Apache configuration.






share|improve this answer













Your logs are telling you exactly why Apache is unable to start:



AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs (21)Is a directory:


Make sure that you are not trying to use a directory as a log file in yout Apache configuration.







share|improve this answer













share|improve this answer



share|improve this answer











answered Apr 18 at 18:35









DopeGhoti

40k54779




40k54779











  • this maybe a dumb question to ask, but how can I create a log file? I have the following conf : <VirtualHost *:80> ServerName portal.motomart.my ServerAlias www.portal.motomart.my DocumentRoot /var/www/motomart.my/public_html ErrorLog /var/www/motomart.my/error.log CustomLog /var/www/motomart.my/requests.log combined </VirtualHost>
    – Kok Fong Chow
    Apr 18 at 18:44







  • 1




    Does the directory actually exist in a swate which is writable by Apache?
    – DopeGhoti
    Apr 18 at 19:07
















  • this maybe a dumb question to ask, but how can I create a log file? I have the following conf : <VirtualHost *:80> ServerName portal.motomart.my ServerAlias www.portal.motomart.my DocumentRoot /var/www/motomart.my/public_html ErrorLog /var/www/motomart.my/error.log CustomLog /var/www/motomart.my/requests.log combined </VirtualHost>
    – Kok Fong Chow
    Apr 18 at 18:44







  • 1




    Does the directory actually exist in a swate which is writable by Apache?
    – DopeGhoti
    Apr 18 at 19:07















this maybe a dumb question to ask, but how can I create a log file? I have the following conf : <VirtualHost *:80> ServerName portal.motomart.my ServerAlias www.portal.motomart.my DocumentRoot /var/www/motomart.my/public_html ErrorLog /var/www/motomart.my/error.log CustomLog /var/www/motomart.my/requests.log combined </VirtualHost>
– Kok Fong Chow
Apr 18 at 18:44





this maybe a dumb question to ask, but how can I create a log file? I have the following conf : <VirtualHost *:80> ServerName portal.motomart.my ServerAlias www.portal.motomart.my DocumentRoot /var/www/motomart.my/public_html ErrorLog /var/www/motomart.my/error.log CustomLog /var/www/motomart.my/requests.log combined </VirtualHost>
– Kok Fong Chow
Apr 18 at 18:44





1




1




Does the directory actually exist in a swate which is writable by Apache?
– DopeGhoti
Apr 18 at 19:07




Does the directory actually exist in a swate which is writable by Apache?
– DopeGhoti
Apr 18 at 19:07












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438573%2funable-to-restart-apache%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?