Forum Moderators: phranque
Arch Linux OS: Linux 6.18.6-arch1-1
ARCH system partition: / (44Gb - 3.5Gb free)
Home data partition: /home (410Gb - 231 Gb free)
Workstation user: example
Apache: Apache/2.4.66 (Unix)
PHP: 8.5.2
mariadb/12.1.2-1
$ sudo systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code.
See systemctl status httpd.service and journalctl -xeu httpd.service for details.
$ journalctl -xeu httpd.service"
[he unit httpd.service has started to start.
Jan 23 15:49:46 LenovoE560 httpd[87780]: AH00526: Syntax error on line 284 of /etc/httpd/conf/httpd.conf:
Jan 23 15:49:46 LenovoE560 httpd[87780]: DocumentRoot /home/example/www is not a directory, or is not readable
Jan 23 15:49:46 LenovoE560 systemd: httpd.service: Main process exited, code=exited, status=1/FAILURE
AllowOverride none
Require all granted
ServerRoot /etc/httpd
DocumentRoot /home/example/www
User example
Group example
open_based ir = /etc/httpd/:/home/example/www [1][edited by: not2easy at 2:30 pm (utc) on Jan 24, 2026]
[edit reason] Please see Charter [webmasterworld.com] [/edit]
Jan 23 15:49:46 LenovoE560 httpd[87780]: AH00526: Syntax error on line 284 of /etc/httpd/conf/httpd.conf: Don't keep us in suspense. What does line 284 of /etc/httpd/conf/httpd.conf say? Have you edited httpd.conf in any way, or are you using the boilerplate config file that came with xampp?
DocumentRoot "/usr/share/webapps"
<Directory "/usr/share/webapps">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org...]
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
[example@LenovoE560 ~]$ pacman -Qs lamp
local/xampp 8.2.12-1
A stand-alone LAMPP distribution
[edited by: not2easy at 4:49 pm (utc) on Jan 25, 2026]
[edit reason] Please see Charter [webmasterworld.com] [/edit]
<Directory "//home/example/www"> [edited by: not2easy at 4:50 pm (utc) on Jan 25, 2026]
[edit reason] exemplified [/edit]
[edited by: not2easy at 2:30 am (utc) on Jan 26, 2026]
[edit reason] Please see TOS [webmasterworld.com] [/edit]
#
#
ServerRoot "/etc/httpd"
#
#
<IfModule unixd_module>
User http
Group http
</IfModule>
#
#
<Directory />
AllowOverride none
Require all granted
</Directory>
#
#
DocumentRoot "/home/example/www"
<Directory "/home/example/www">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
#
#
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
#
#
open basedir = /etc/httpd/:/usr/share/webapps/:/home/example/www/:/tmp/
[example@LenovoE560 ~]$ sudo systemctl restart httpd.service
L'unité (unit) httpd.service a commencé à démarrer.
jan 25 20:21:18 LenovoE560 httpd[10820]: AH00526: Syntax error on line 267 of /etc/httpd/conf/httpd.conf:
jan 25 20:21:18 LenovoE560 httpd[10820]: DocumentRoot '/home/example/www' is not a directory, or is not readable
jan 25 20:21:18 LenovoE560 systemd: httpd.service: Main process exited, code=exited, status=1/FAILURE
Subject: Unit process exited
[1][edited by: not2easy at 2:29 am (utc) on Jan 26, 2026]
[edit reason] Please see TOS [webmasterworld.com] [/edit]
sudo systemctl daemon-reload