# Apache problem when starts

**URL:** <https://forums.rockylinux.org/t/apache-problem-when-starts/19041>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-10\
**Created:** [July 7, 2025, 11:01am UTC](https://forums.rockylinux.org/t/apache-problem-when-starts/19041 "2025-07-07T11:01:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![beniksh](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/beniksh/32/858_2.png) [@beniksh](https://forums.rockylinux.org/u/beniksh)\
**Post date:** [July 7, 2025, 11:01am UTC](https://forums.rockylinux.org/t/apache-problem-when-starts/19041/1 "2025-07-07T11:01:01Z")

</div>

Hello,

I am installing the Apache web server on Rocky Linux 10. When I check the status of the httpd, the result is:

● httpd.service - The Apache HTTP Server  
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)  
Active: active (running) since Mon 2025-07-07 12:44:16 CEST; 5s ago  
Invocation: 4bdafd352517432182f80268013eee79  
Docs: man:httpd.service(8)  
Main PID: 1326 (httpd)  
Status: “Started, listening on: port 80”  
Tasks: 177 (limit: 22972)  
Memory: 14.1M (peak: 14.2M)  
CPU: 160ms  
CGroup: /system.slice/httpd.service  
├─1326 /usr/sbin/httpd -DFOREGROUND  
├─1361 /usr/sbin/httpd -DFOREGROUND  
├─1362 /usr/sbin/httpd -DFOREGROUND  
├─1363 /usr/sbin/httpd -DFOREGROUND  
└─1364 /usr/sbin/httpd -DFOREGROUND

Jul 07 12:43:16 rl10.srv.lan systemd[1]: Starting httpd.service - The Apache HTTP Server…  
Jul 07 12:43:16 rl10.srv.lan (httpd)[1326]: httpd.service: Referenced but unset environment variable evaluates to an empty string: OPTIONS  
Jul 07 12:44:16 rl10.srv.lan systemd[1]: Started httpd.service - The Apache HTTP Server.  
Jul 07 12:44:16 rl10.srv.lan httpd[1326]: Server configured, listening on: port 80

I found a way of dealing with the problem " httpd.service: Referenced but unset environment variable evaluates to an empty string: OPTIONS".

Is it possible to solve it in order not to face it again?

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 7, 2025, 1:12pm UTC](https://forums.rockylinux.org/t/apache-problem-when-starts/19041/2 "2025-07-07T13:12:41Z")

</div>

> [@beniksh](#):
>
> Is it possible to solve it in order not to face it again?

Yes, you need to check your Apache configuration and fix it. Then it won’t appear again. Most likely something has been incorrectly configured under /etc/httpd.

---

<div class="post-metadata">

**Author:** ![beniksh](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/beniksh/32/858_2.png) [@beniksh](https://forums.rockylinux.org/u/beniksh)\
**Post date:** [July 11, 2025, 10:43am UTC](https://forums.rockylinux.org/t/apache-problem-when-starts/19041/3 "2025-07-11T10:43:17Z")

</div>

Hello,

As I told you before, I fixed it, and below are the steps  
1  
vim /etc/systemd/system/httpd.service.d/override.conf

1. 

I add:

[Service]  
ExecStart=  
ExecStart=/usr/sbin/httpd -DFOREGROUND

1. 

Save and exit the editor

1. 

Reload systemd and restart Apache:  
sudo systemctl daemon-reload  
sudo systemctl restart httpd

I did a similar thing for MariaDB.

The question is, why do I need to make adjustments? That is not happening in previous versions, and I think it should be like that.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 11, 2025, 12:39pm UTC](https://forums.rockylinux.org/t/apache-problem-when-starts/19041/4 "2025-07-11T12:39:08Z")

</div>

On a clean installation, this problem doesn’t exist. Perhaps you copied apache config from an older machine or different machine? That would potentially explain why it doesn’t work.

On mine, I just did:

```auto
dnf install -y httpd
systemctl enable --now httpd

```

and Apache works. The same for mariadb as well.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [September 9, 2025, 12:39pm UTC](https://forums.rockylinux.org/t/apache-problem-when-starts/19041/5 "2025-09-09T12:39:37Z")

</div>

Closed on September 9, 2025, 12:39pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
