• apache2 barf with plasma6/tumbleweed

    From bad sector@forgetski@_INVALID.net to alt.os.linux on Mon May 11 22:44:25 2026
    From Newsgroup: alt.os.linux

    # systemctl start apache2.service
    Job for apache2.service failed because the control
    process exited with error code.
    See "systemctl status apache2.service" and "journalctl -xeu
    apache2.service" for details.

    # systemctl status apache2.service

    httpd-prefork: Syntax error in -C/-c directive: Syntax error on line 2
    of /etc/apache2/sysconfig.d/include.conf: Could not open configuration
    file /path/myapache/myapache.conf: Permission denied


    /etc/apache2/sysconfig.d/include.conf

    # File generated from /etc/sysconfig/apache2, do not edit. Edit the
    sysconfig file instead.
    Include /path/myapache/myapache.conf


    It seems to find a synatx error in my fully qualified path to my config
    file which has wide open permissions (using as local server only).

    What am I missing?



    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to alt.os.linux on Tue May 12 05:47:11 2026
    From Newsgroup: alt.os.linux

    On Mon, 11 May 2026 22:44:25 -0400, bad sector wrote:

    Include /path/myapache/myapache.conf

    It seems to find a synatx error in my fully qualified path to my config
    file which has wide open permissions (using as local server only).

    Do all components of the path have suitable permissions?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From J.O. Aho@user@example.net to alt.os.linux on Tue May 12 08:43:57 2026
    From Newsgroup: alt.os.linux

    On 12/05/2026 04.44, bad sector wrote:
    # systemctl start apache2.service
    Job for apache2.service failed because the control
    process exited with error code.
    See "systemctl status apache2.service" and "journalctl -xeu
    apache2.service" for details.

    # systemctl status apache2.service

    httpd-prefork: Syntax error in -C/-c directive: Syntax error on line 2
    of /etc/apache2/sysconfig.d/include.conf: Could not open configuration
    file /path/myapache/myapache.conf: Permission denied


    /etc/apache2/sysconfig.d/include.conf

    # File generated from /etc/sysconfig/apache2, do not edit. Edit the sysconfig file instead.
    Include /path/myapache/myapache.conf


    It seems to find a synatx error in my fully qualified path to my config
    file which has wide open permissions (using as local server only).

    What am I missing?
    run the following oneline (everything in the same line, just replace the
    path with the real one)

    apconf_path=/path/myapache/myapache.conf; while [ "$apconf_path" != "/"
    ]; do ls -ld "$apconf_path"; apconf_path=$(dirname "$apconf_path"); done;

    the result could look something like:
    -rw-r----- 1 user user 47 Jan 21 2025 /path/myapache/myapache.conf
    drwxr-xr-x 1 user user 114 Apr 14 11:08 /path/myapache
    drwxr-xr-x 1 root root 6044 May 15 21:16 /path

    the wwwrun user should have access to go into each directory, so all of
    them needs to be x, the file itself needs to be r for the wwwrun user.

    There is few options:
    1. on all directories in the path "chmod o+x /path/to/dir" and the file
    itself "chmod o+r /path/myapache/myapache.conf"
    2. You change the group to wwwrun and ensure that the paths all parts
    has g+x for directories and g+r for the file itself.
    3. You make wwwrun to be member of your user group.

    The "simplest" is option 1.
    --
    //Aho
    --- Synchronet 3.22a-Linux NewsLink 1.2