• Resolved Laurence Woodside

    (@laurence-woodside)


    Firstly, trying to be as brief and as clear as I can,successful install of efront and wordpress multisite.
    However, trying to access efront installation page redirects to multisite page error 404. Mapping is correct in wp will all domains redirecting to their respective sites in multisite wp.

    wp location /var/www/wordpress
    efront location /var/www/html/efront

    It is a httpd issue which I cannot resolve, hoping a bright spark will come to my aid.

    WP multisite installed as subdomain
    define(‘SUBDOMAIN_INSTALL’, true);

    pathetc/httpd/httpd.conf

    <VirtualHost *:80>
    DocumentRoot /var/www/html/
    ServerName server.
    ServerAlias server  www.
    </VirtualHost>
    Include /etc/zpanel/configs/apache/httpd.conf
    
    Include /etc/httpd/conf.d/efront.include

    path etc/httpd/conf.d includes files:

    wpmultisite.conf
    wpmultisite.include
    efront.include

    path etc/httpd/conf.d/wpmultisite.conf

    NameVirtualHost *:80
    
    # primary vhost - old clients will arrive here regardless of URL they used
    <VirtualHost *:80>
    ServerName domain_name1.tld
    ServerAlias www.domain_name1.tld
    Include conf.d/wpmultisite.include
    </VirtualHost>
    
    <VirtualHost *:80>
    ServerName domain_name2.tld
    ServerAlias domain_name2.tld
    Include conf.d/wpmultisite.include
    </VirtualHost>
    
    <VirtualHost *:80>
    ServerName domain_name3.tld
    ServerAlias www.domain_name3.tld
    Include conf.d/wpmultisite.include
    </VirtualHost>

    pathetc/httpd/conf.d/wpmultisite.include

    # include file for wordpress, included from various virtual hosts
    
    DocumentRoot "/var/www/wordpress"
    
    <Directory "/var/www/wordpress">
    AllowOverride None
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </Directory>

    pathetc/httpd/conf.d/efront.include

    # include file for efront, included from various virtual hosts
    
    DocumentRoot "/var/www/html/efront"
    
    <Directory "/var/www/html/efront">
      AllowOverride Fileinfo Options
    
    </Directory>

    Example
    domain1
    efront installation

    Needed soloution accessing efront installation from

    domain1/efront
    domain2/efront
    domain3/efront

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    wp location /var/www/wordpress
    efront location /var/www/html/efront

    Hm. If you had efront installed in /var/www/wordpress/efront/ it would work easily.

    Did this work before Multisite?

    Thread Starter Laurence Woodside

    (@laurence-woodside)

    If I disable wp then the opening page of efront is displayed pointing any of the domain address’s through the browser.

    Additionally, prior to this fresh installation of this wp multisite, both installations worked installed in a subfolder ie

    wp multisite – only ONE domain address active & Efront.

    location
    /var/www/html/com/wordpress(this being the default folder wp was installed to by host of the vps)
    /var/www/html/com/efront(I manually installed in this location for no other reason than conformity.)

    It was my understanding to map multiple domains correctly wp had to be installed in /var/www.
    I followed the recommended installation for Efront to /var/www/html

    note:
    The wp installation works correctly.
    Domains
    https://www.flightsimulationmultiplayer.info (priority)
    https://www.fsxmultiplay.com
    https://www.prepar3dmultiplayer.com
    All redirect to CORRECT locations within wp multisite.

    given your reply, perhaps it is wise to install Efront again, however, the question I would ask is given the Efront installation is quite large and could grow larger:

    will installing as /var/www/html/wordpress/efront(within wordpress)

    slow down the overall performance of the wp multisite installation

    or if so I could try installing

    /var/www/efront
    again on the assumption that my previous installations where located in
    /var/www/html/com/…..
    my apologies for being so vague, but I am stabbing in the dark.
    Regards

    Thread Starter Laurence Woodside

    (@laurence-woodside)

    correction

    will installing as /var/www/wordpress/efront(within wordpress)

    slow down the overall performance of the wp multisite installation

    or if so I could try installing

    /var/www/efront
    again on the assumption that my previous installations where located in
    /var/www/html/com/…..
    my apologies for being so vague, but I am stabbing in the dark.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    will installing as /var/www/html/wordpress/efront(within wordpress)

    slow down the overall performance of the wp multisite installation

    It won’t slow down anything at all, compared to installing it in it’s own folder.

    It’s really the same thing as far as your server cares.

    Thread Starter Laurence Woodside

    (@laurence-woodside)

    I will try it

    Thank you

    Thread Starter Laurence Woodside

    (@laurence-woodside)

    moved as Mika suggested /var/www/wordpress/efront
    reconfigured httpd to match

    and……

    All working now wp and all domain re directions to Efront

    Thank you Mika

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress Multisite and efront installation’ is closed to new replies.