LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache: wordpress only avail with <Location /> (https://www.linuxquestions.org/questions/linux-server-73/apache-wordpress-only-avail-with-location-4175650671/)

carlitoco 03-22-2019 07:20 AM

Apache: wordpress only avail with <Location />
 
Hey I've a strange issue, since I just changed my hardware to a new and configured arch server with wordpress, nextcloud, collabora online office-

there is a proxy for collabora office domain :
Everything else is as https://wiki.archlinux.org discribes LAMP php wordpress nextcloud etc..

now the issue Wordpress is only available with a:
Code:

<Location />
  require all granted
</Location>

on its VHost *:443 the problem is that the wordpress pages and post still not able to load (404 Error).
I guessed it has to be a problem of permissions but what can I do wrong on:

Code:

<Directory "/usr/share/webapps/wordpess">
        Options FollowSymlinks MultiViews
        AllowOverride All
        Require all granted
        php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:$"
</Directory>

I read somewhere mod_Proxy needs a <Location /> but the wordpress domain I use is the first server domain...

Any Ideas?

bathory 03-22-2019 09:23 AM

Quote:

the problem is that the wordpress pages and post still not able to load (404 Error).
You should check the apache error_log to see where is apache looking for the wordpress files and not finding them, thus giving the 404 error.

FYI the docroot in Arch is /srv/http. Are you sure you've installed wordpress under /usr/share/webapps/wordpess?

carlitoco 03-22-2019 09:31 AM

The location is "native" for the arch package yes... arch is installing webapps there aswell like nextcloud, matomo, phpmyadmin etc...

the log shows only:
Code:

xxx.xxx.xxx.xxx - - [22/Mar/2019:15:30:49 +0100] "GET /install-arch-linux/ HTTP/1.1" 404 1089

bathory 03-22-2019 09:45 AM

Quote:

Originally Posted by carlitoco (Post 5976517)
The location is "native" for the arch package yes... arch is installing webapps there aswell like nextcloud, matomo, phpmyadmin etc...

the log shows only:
Code:

xxx.xxx.xxx.xxx - - [22/Mar/2019:15:30:49 +0100] "GET /install-arch-linux/ HTTP/1.1" 404 1089

This is apache accees_log.
You should look at the apache error_log, which contains the full path to the non existent page

carlitoco 03-22-2019 12:05 PM

Loglevel is warn but no error in error_log, was the first thing I checked...

scasey 03-22-2019 12:19 PM

What does
Code:

ls -l /usr/share/webapps/wordpess/install-arch-linux/
show. That is, what's in that directory?

Also, I don't find a VHost directive in the documentation...did you mean VirtualHost ?

carlitoco 03-22-2019 12:33 PM

loglevel on debug helps...
Code:

[Fri Mar 22 18:08:52.440818 2019] [core:info] [pid 3120] [client xxx] AH00128: File does not exist: /usr/share/webapps/wordpress/installing_archlinux/
Its a wordpress page with permalink option in wp.


All times are GMT -5. The time now is 02:03 AM.