+ Reply to Thread
Results 1 to 10 of 10

Thread: Clean install version 4.6.0 problems

  1. #1

    Clean install version 4.6.0 problems

    Hi Flynax team,

    I just made a new clean install with version 4.6.0. install package.

    Everything in installation went OK, but when opening the site none of the links on the main page work.

    Search on Map, Search, Recently Added, Property, Agents etc.

    And corresponding URLs "search-on-map.html", "search.html", etc. gives

    404Not Found

    The requested URL /index.php was not found on this server.

    Apache/2.4.18 (Ubuntu) Server at www.xxxxxxxx.com Port 443


    Even though the front page index.php works fine.

    Any ideas?
    Last edited by Kimmo Pennanen; December 12, 2017 at 02:30 PM.

  2. #2
    Hello Kimmo,

    WOuld you please send ftp access to my PM I will try to check it asap.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    I think you forgot to upload the .htaccess file which is hidden. For now you can go to admincp basic setting and turn Apache rewrite module off or disable it. Your site will works OK. If you want Apache rewrite module to work of course you need the .htaccess file uploaded

  4. #4
    Thanks Wei Hong, turning Apache rewrite module off from the admincp helped.


    Still I would like to use Apache rewrite module and it was enabled when installing the Flynax 4.6.0. AND installation wrote the .htaccess file during the installation. Maybe Viktor could comment what is wrong with it? The original .htaccess file fresh after installation below:


    Code:
    Only registered members can view the code.
    Last edited by Alex; December 13, 2017 at 09:13 AM. Reason: code wrapping

  5. #5
    Another interesting problem: After working on the site for whole day, suddenly the admin login page (https://xxxxx.xxx/admin) doesn't work anymore. When typing the login and password it just refreshes the page. Login in from another computer works fine, but for how long I am not sure and then I'll be logged out from my site :-/ Any ideas?

  6. #6
    Did you install flynax on root? Like www.domain.com.
    Or did you install it on sub folder like www.domain.com/flynax/

    If you installed it on sub folder make sure to add # The URL prefix to be used for per-directory
    RewriteBase /subfolder/
    in your .htaccess file.

    For admin problem sounds like caching issue. Turn any caching functions off. Like cloudflare?

  7. #7
    Thanks Wei Hong!

    I installed flynax to a subfolder, but I used Apache virtual configuration file to point to subfolder when accessing www.domain.com and it works great.

    Like this:

    <VirtualHost *:443>
    ServerAdmin admin@domain.com
    ServerName domain.com
    ServerAlias www.domain.com
    DocumentRoot /var/www/html/flynax/
    ErrorLog ${APACHE_LOG_DIR}/error-com.log
    CustomLog ${APACHE_LOG_DIR}/access-com.log combined

    <Directory /var/www/html/flynax/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
    </Directory>


    The admin login issue is a mystery. The issue persists even when using Chrome's incognito mode. I also installed a fresh Firefox and still the same problem.

    Edit: I get this from browser

    "This page isn’t working

    www.domain.com redirected you too many times.
    Try clearing your cookies.
    ERR_TOO_MANY_REDIRECTS

    Too many redirects occurred trying to open
    https://www.domain.com/index.php?page=add-listing”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page."

    Maybe this redirecting is causing the issue?
    Last edited by Kimmo Pennanen; December 13, 2017 at 05:12 PM. Reason: new information

  8. #8
    OK so they are the same problem. Open your htaccess file and find this line, should be near the top

    # The URL prefix to be used for per-directory
    RewriteBase /

    Add the name of the subfolder
    # The URL prefix to be used for per-directory
    RewriteBase /subfoldername/

    The admin issue is also coming from this pointing access. For this matter I don't know if there is a solution you should open a ticket.
    Last edited by Wei Hong; December 14, 2017 at 09:14 AM.

  9. #9
    Thank you Wei Hong for your help, I really appreciate it.

    I did what you suggested, but unfortunately with no effect. Made a ticket for Flynax team ...

  10. #10
    Quote Originally Posted by Kimmo Pennanen View Post
    Thanks Wei Hong!

    I installed flynax to a subfolder, but I used Apache virtual configuration file to point to subfolder when accessing www.domain.com and it works great.

    Like this:

    <VirtualHost *:443>
    ServerAdmin admin@domain.com
    ServerName domain.com
    ServerAlias www.domain.com
    DocumentRoot /var/www/html/flynax/
    ErrorLog ${APACHE_LOG_DIR}/error-com.log
    CustomLog ${APACHE_LOG_DIR}/access-com.log combined

    <Directory /var/www/html/flynax/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
    </Directory>


    ..snip
    Just so everyone is aware, the above code is also required for v4.6.1 but it does in fact work! I have made sure my .htaccess file was pointing to the correct install folder on the server, and that alone did NOT work, but the Virtual Host code above when put into my 000-default.conf file on Ubuntu 16.04 does in fact work!

    Thank you for that!

+ Reply to Thread