LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2018, 10:51 PM   #1
ziggs
Member
 
Registered: Jan 2018
Posts: 37

Rep: Reputation: Disabled
Unhappy New to Linux and in need of desperate help!


Hi all,


So here is my issue: See below


● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2018-04-08 23:43:43 EDT; 56s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1471 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 1469 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 1469 (code=exited, status=1/FAILURE)

Apr 08 23:43:43 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
Apr 08 23:43:43 localhost.localdomain httpd[1469]: AH00526: Syntax error on line 1 of /etc/htt...f:
Apr 08 23:43:43 localhost.localdomain httpd[1469]: Invalid command ':', perhaps misspelled or ...on
Apr 08 23:43:43 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exi...RE
Apr 08 23:43:43 localhost.localdomain kill[1471]: kill: cannot find process ""
Apr 08 23:43:43 localhost.localdomain systemd[1]: httpd.service: control process exited, code=...=1
Apr 08 23:43:43 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Apr 08 23:43:43 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
Apr 08 23:43:43 localhost.localdomain systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.


Aside from this, I also have this error below. I have tried locating it and deleting the SWP file, but I cannot locate it at all! It as well will tell me that there is no such file or directory. Unless this directory is wrong: /etc/httpd/conf.d/server-status.conf.swp I have been trying to fix these two issues for a few hours. Any help or direction would be greatly appreciated! I have been reading the apache docs, but I still cannot find what I need to do!


E325: ATTENTION
Found a swap file by the name "/etc/httpd/conf.d/.server-status.conf.swp"
owned by: root dated: Sun Apr 8 22:55:12 2018
file name: /etc/httpd/conf.d/server-status.conf
modified: YES
user name: root host name: localhost.localdomain
process ID: 1454
While opening file "/etc/httpd/conf.d/server-status.conf"
dated: Sun Apr 8 22:15:56 2018

(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/httpd/conf.d/server-status.conf"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/httpd/conf.d/.server-status.conf.swp"
to avoid this message.
"/etc/httpd/conf.d/server-status.conf" 1L, 1C
 
Old 04-09-2018, 03:09 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
the following will delete the swap file:

rm /etc/httpd/conf.d/.server-status.conf.swp
(you are missing a dot before the file name)

After that you can look at the syntax error specified in the error message.
 
1 members found this post helpful.
Old 04-11-2018, 01:29 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by ziggs View Post
Apr 08 23:43:43 localhost.localdomain httpd[1469]: AH00526: Syntax error on line 1 of /etc/htt...f:
Apr 08 23:43:43 localhost.localdomain httpd[1469]: Invalid command ':', perhaps misspelled or ...on
this looks like a pretty simple syntax error.
you have to tell systemctl to not ellipsize long lines, so you can see which file it is.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux and The Desperate Need for Tax Apps LXer Syndicated Linux News 0 01-23-2007 07:33 PM
lost linux partition, help please - I am DESPERATE SebKG Linux - General 10 04-11-2006 08:40 PM
I'm desperate...How can I get on the net with linux? Astropicachu Linux - Newbie 12 01-24-2004 06:37 PM
Newbie desperate about how to start Linux programming in C sanki_man Programming 5 08-11-2003 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration