# PLEASE HELP - After updates (16 today) apache server won't come on

**URL:** <https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738>\
**Category:** Help! (Home for newbies)\
**Created:** [September 22, 2023, 5:40pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738 "2023-09-22T17:40:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 22, 2023, 5:40pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/1 "2023-09-22T17:40:03Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | CentOS Linux 7.9.2009 |
| Webmin version | 2.101 |
| Usermin version | 2.001 |
| Virtualmin version | 7.8.2 |
| Theme version | 21.04 |
| Package updates | All installed packages are up to date |

I had 16 udates today which I did and the apache server won’t come on  
did several reboots but it still doesn’t come on  
Please Help  
Thanks  
ASM2

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 22, 2023, 5:52pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/2 "2023-09-22T17:52:47Z")

</div>

> [@ASM2](#):
>
> I had 16 udates today which I did and the apache server won’t come on  
> did several reboots but it still doesn’t come on

If you run `systemctl restart apache2` and then run `systemctl status --no-pager --full apache2` – what is the output of the later command?

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 22, 2023, 5:54pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/3 "2023-09-22T17:54:06Z")

</div>

1 min … I’m trying that

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 22, 2023, 5:55pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/4 "2023-09-22T17:55:14Z")

</div>

[root@vmi431722 ~]# systemctl restart apache2  
Failed to restart apache2.service: Unit not found.  
[root@vmi431722 ~]# systemctl status --no-pager --full apache2  
Unit apache2.service could not be found.  
[root@vmi431722 ~]#

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 22, 2023, 6:18pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/5 "2023-09-22T18:18:38Z")

</div>

> [@ASM2](#):
>
> Unit apache2.service could not be found.

I’m sorry, the right unit name is `httpd`.

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 22, 2023, 6:21pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/6 "2023-09-22T18:21:50Z")

</div>

I’m sorry I’m not really an expert - just a novice trying to get this fixed - thanks so much for you help

Here’s what I got:

```auto
[root@vmi431722 ~]# httpd systemctl restart apache2
Usage: httpd [-D name] [-d directory] [-f file]
             [-C "directive"] [-c "directive"]
             [-k start|restart|graceful|graceful-stop|stop]
             [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
  -D name : define a name for use in <IfDefine name> directives
  -d directory : specify an alternate initial ServerRoot
  -f file : specify an alternate ServerConfigFile
  -C "directive" : process directive before reading config files
  -c "directive" : process directive after reading config files
  -e level : show startup errors of level (see LogLevel)
  -E file : log startup errors to file
  -v : show version number
  -V : show compile settings
  -h : list available command line options (this page)
  -l : list compiled in modules
  -L : list available configuration directives
  -t -D DUMP_VHOSTS : show parsed vhost settings
  -t -D DUMP_RUN_CFG : show parsed run settings
  -S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
  -t -D DUMP_MODULES : show all loaded modules 
  -M : a synonym for -t -D DUMP_MODULES
  -t : run syntax check for config files
  -T : start without DocumentRoot(s) check
  -X : debug mode (only one worker, do not detach)
[root@vmi431722 ~]# httpd systemctl status --no-pager --full apache2
Usage: httpd [-D name] [-d directory] [-f file]
             [-C "directive"] [-c "directive"]
             [-k start|restart|graceful|graceful-stop|stop]
             [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
  -D name : define a name for use in <IfDefine name> directives
  -d directory : specify an alternate initial ServerRoot
  -f file : specify an alternate ServerConfigFile
  -C "directive" : process directive before reading config files
  -c "directive" : process directive after reading config files
  -e level : show startup errors of level (see LogLevel)
  -E file : log startup errors to file
  -v : show version number
  -V : show compile settings
  -h : list available command line options (this page)
  -l : list compiled in modules
  -L : list available configuration directives
  -t -D DUMP_VHOSTS : show parsed vhost settings
  -t -D DUMP_RUN_CFG : show parsed run settings
  -S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
  -t -D DUMP_MODULES : show all loaded modules 
  -M : a synonym for -t -D DUMP_MODULES
  -t : run syntax check for config files
  -T : start without DocumentRoot(s) check
  -X : debug mode (only one worker, do not detach)
[root@vmi431722 ~]#

```

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 22, 2023, 6:33pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/7 "2023-09-22T18:33:33Z")

</div>

The right commands would be `systemctl restart httpd` and `systemctl status --no-pager --full httpd`.

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 22, 2023, 6:50pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/8 "2023-09-22T18:50:19Z")

</div>

> [@Ilia](#):
>
> systemctl status --no-pager --full httpd

Here’s what I got:

[root@vmi431722 ~]# systemctl restart httpd  
Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details.  
[root@vmi431722 ~]# systemctl status --no-pager --full httpd  
● httpd.service - The Apache HTTP Server  
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)  
Active: failed (Result: exit-code) since Fri 2023-09-22 19:48:51 BST; 24s ago  
Docs: man:httpd(8)  
man:apachectl(8)  
Process: 16795 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)  
Main PID: 16795 (code=exited, status=1/FAILURE)

Sep 22 19:48:51 [vmi431722.contaboserver.net](http://vmi431722.contaboserver.net) systemd[1]: Starting The Apache HTTP Server…  
Sep 22 19:48:51 [vmi431722.contaboserver.net](http://vmi431722.contaboserver.net) httpd[16795]: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 27 of /etc/httpd/conf.d/php.conf: Expected before end of configuration  
Sep 22 19:48:51 [vmi431722.contaboserver.net](http://vmi431722.contaboserver.net) systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE  
Sep 22 19:48:51 [vmi431722.contaboserver.net](http://vmi431722.contaboserver.net) systemd[1]: Failed to start The Apache HTTP Server.  
Sep 22 19:48:51 [vmi431722.contaboserver.net](http://vmi431722.contaboserver.net) systemd[1]: Unit httpd.service entered failed state.  
Sep 22 19:48:51 [vmi431722.contaboserver.net](http://vmi431722.contaboserver.net) systemd[1]: httpd.service failed.  
[root@vmi431722 ~]#

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [September 22, 2023, 7:03pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/9 "2023-09-22T19:03:41Z")

</div>

What happened in `/etc/httpd/conf.d/php.conf`? It’s been modified, and with invalid syntax.

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 22, 2023, 7:04pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/10 "2023-09-22T19:04:30Z")

</div>

I have no idea - Can you help please?

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [September 22, 2023, 7:10pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/11 "2023-09-22T19:10:45Z")

</div>

Look in that file at the line that is a syntax error!

> [@ASM2](#):
>
> Syntax error on line 27 of /etc/httpd/conf.d/php.conf: Expected before end of configuration

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 22, 2023, 7:11pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/12 "2023-09-22T19:11:34Z")

</div>

where do i look?

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [September 22, 2023, 7:35pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/13 "2023-09-22T19:35:20Z")

</div>

> [@ASM2](#):
>
> Syntax error on line 27 of /etc/httpd/conf.d/php.conf: Expected before end of configuration

I don’t understand what you’re asking. The error you posted tells you _exactly_ where to look, and I’ve pointed out exactly where in the error it told you that. I honestly don’t know how to be more precise than saying, “look at line 27 of `/etc/httpd/conf.d/php.conf`”.

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 22, 2023, 7:37pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/14 "2023-09-22T19:37:56Z")

</div>

I’m so sorry … Where do I go to find this line 27? how do I get there  
Like I said before I don’t know much about this but I can follow your directions to find it and post it - maybe then you can help correct this and hopefully get this working for me Please…

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [September 22, 2023, 7:39pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/15 "2023-09-22T19:39:04Z")

</div>

You can use any text editor you are familiar with. You can use the File Manager in Virtualmin to browse to that file, and open it with the built-in editor.

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 22, 2023, 7:39pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/16 "2023-09-22T19:39:19Z")

</div>

I tried this but …

[root@vmi431722 ~]# /etc/httpd/conf.d/php.conf  
-bash: /etc/httpd/conf.d/php.conf: Permission denied

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [September 22, 2023, 7:40pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/17 "2023-09-22T19:40:47Z")

</div>

You need to open the file with an editor (`nano`, `vim`, `emacs`, `joe`, `pico`, etc.) or viewer (`less`, `more`, `view`, etc.). You cannot execute a plain text file (which is what you tried to do).

There is a text editor built into Webmin’s File Manager, as well.

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 22, 2023, 7:44pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/18 "2023-09-22T19:44:55Z")

</div>

I looked for the text editor and got this:  
Searching for _text editor_ . . . . . found 1 results :

| Matching text | Source | Module | References |
| --- | --- | --- | --- |
| **Text editor** | User interface | [DHCP Server](https://vmi431722.contaboserver.net:10000/dhcpd/) | dhcpd.conf |

When I click DCHP Server It says as below:

The DHCP server /usr/sbin/dhcpd could not be found on your system. Maybe it is not installed, or your DHCP module configuration is incorrect.

The ISC DHCPd package can be automatically installed by Webmin using YUM.

Should I install this? Maybe that will help to find the line 27?

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [September 22, 2023, 7:53pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/19 "2023-09-22T19:53:04Z")

</div>

File Manager. The text editor is in the File Manager, as I said.

---

<div class="post-metadata">

**Author:** ![ADDISON74](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@ADDISON74](https://forum.virtualmin.com/u/ADDISON74)\
**Post date:** [September 22, 2023, 7:55pm UTC](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738/20 "2023-09-22T19:55:40Z")

</div>

I am sorry to say this in public, but a lot of questions that are asked in this forum which are not strictly related to the products \*min I can find the answers using Google search. Most out of convenience prefer to ask here obviously requesting the small team that should solve other more important problems. In IT even a newbie can solve some tasks without knowledge, in other fields it is not possible, for example medicine. Does anyone practice surgery after reading articles on the Internet?

[Next page](https://forum.virtualmin.com/t/please-help-after-updates-16-today-apache-server-wont-come-on/122738.md?page=2)
