You are not logged in.

#1 2021-07-28 09:06:44

pylong
Member
Registered: 2021-07-28
Posts: 5

Apache returning error related to phpMyAdmin [solved]

I'm creating a LAMP stack on my system following the Arch Wiki guides on PHP, phpMyAdmin, and Apache.

Running

sudo systemctl status httpd.service

returns this:

× httpd.service - Apache Web Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Wed 2021-07-28 04:22:26 EDT; 34min ago
    Process: 9628 ExecStart=/usr/bin/httpd -k start -DFOREGROUND (code=exited, status=1/FAILURE)
   Main PID: 9628 (code=exited, status=1/FAILURE)
        CPU: 32ms

Jul 28 04:22:26 nexus systemd[1]: Started Apache Web Server.
Jul 28 04:22:26 nexus httpd[9628]: AH00526: Syntax error on line 1 of /etc/httpd/conf/extra/phpmyadmin.conf:
Jul 28 04:22:26 nexus httpd[9628]: Alias cannot occur within directory context
Jul 28 04:22:26 nexus systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Jul 28 04:22:26 nexus systemd[1]: httpd.service: Failed with result 'exit-code'.

/etc/httpd/conf/extra/phpmyadmin.conf is configured as suggested in the phpMyAdmin wiki article:

Alias /phpmyadmin "/usr/share/webapps/phpMyAdmin"
<Directory "/usr/share/webapps/phpMyAdmin">
    DirectoryIndex index.php
    AllowOverride All
    Options FollowSymlinks
    Require all granted
</Directory>

Why would this happen?

Last edited by pylong (2021-07-28 10:34:26)

Offline

#2 2021-07-28 09:22:20

mpan
Member
Registered: 2012-08-01
Posts: 1,188
Website

Re: Apache returning error related to phpMyAdmin [solved]

Where in “/etc/httpd/conf/httpd.conf” have you placed the `Include conf/extra/phpmyadmin.conf` line? Not inside some <Directory> section by any chance? Don’t you have some <Directive> section that has been opened, but not closed by a matching </Directive> — could be introduced by accident while editing the file.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2021-07-28 09:50:54

pylong
Member
Registered: 2021-07-28
Posts: 5

Re: Apache returning error related to phpMyAdmin [solved]

It's at the end of the file, by itself (not in any tags).

Offline

#4 2021-07-28 10:32:39

pylong
Member
Registered: 2021-07-28
Posts: 5

Re: Apache returning error related to phpMyAdmin [solved]

mpan wrote:

Where in “/etc/httpd/conf/httpd.conf” have you placed the `Include conf/extra/phpmyadmin.conf` line? Not inside some <Directory> section by any chance? Don’t you have some <Directive> section that has been opened, but not closed by a matching </Directive> — could be introduced by accident while editing the file.

Thinking more about how odd this was, I looked over the file and seen that I also had pasted that information elsewhere & within tags as you suggested may have happened! Really silly mistake; thanks for the help.

Last edited by pylong (2021-07-28 10:46:29)

Offline

Board footer

Powered by FluxBB