Make sure that the /.htaccess and the /public/.htaccess files are uploaded on your server.

Discussion in 'Linux Beginners' started by AVE CONCRETE MEDIA, Nov 28, 2025.

  1. AVE CONCRETE MEDIA

    AVE CONCRETE MEDIA New Member HowtoForge Supporter

    Could not find .htaccess file
    Make sure that the /.htaccess and the /public/.htaccess files are uploaded on your server.

    I installed a weberver with the command
    wget -O - https://get.ispconfig.org | sh -s -- --use-nginx --use-ftp-ports=40110-40210 --unattended-upgrades
    is ok , work fine, but
    I get this error when installing laraclassifier, can you help me?

    Could not find .htaccess file
    Make sure that the /.htaccess and the /public/.htaccess files are uploaded on your server.
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    1. You should open a thread in ISPConfig if you are using one and problem(s) faced is related to it, like this one.
    2. You simply have to change doc root e.g. from default /web to /web/public, then upload .htaccess to, or create it in that newly assigned web site root level.
    3. Please use search to find the correct way to do that, as I merely gave an idea of it, as default install means you are using apache2, but some others like me, use nginx, which do not have .htaccess, so each has different ways, but will be able to achieve the same i.e. changing doc root.
     
  3. remkoh

    remkoh Well-Known Member HowtoForge Supporter

    Changing docroot is easier said than done in ispc.
    You may try to rewrite / to /public as an alternative. Not sure how laraclassifier will react to that.

    Also I think the problem may lie in the vhost config too.
    The default nginx vhost template contains this:
    Code:
    ## Disable .htaccess and other hidden files
    location ~ /\. {
        deny all;
    }
    
    which will block access to every and all files beginnen with . (dot).

    Add this as directive in your website and see what happens then:
    Code:
    location ~ /\. { ##delete##
    }
    
     
    Last edited: Nov 29, 2025
  4. AVE CONCRETE MEDIA

    AVE CONCRETE MEDIA New Member HowtoForge Supporter

    Unfortunately nothing works. Who can help me privately?
     
  5. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Last edited: Nov 29, 2025
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    You installed an Nginx Server, Nginx has no support for .htaccess files. If the software you use requires specific rewrite rules via .htaccess, then you must convert them into Nginx rules and add them to the Nginx directives field of the website.

    Besides that, you just mentioned how you installed the base server, but not how and where you installed the software that failed.

    Sounds a bit as if you are not an experienced admin yet, but with Nginx, you have chosen a web server that requires a professional user with lots of Linux experience and experience with Nginx. If you do not have that, then choosing Nginx was wrong. In this case you should better reinstall your system with Apache, which is way easier to use and newbie-friendly.

    If you need help, you might want to contact Thom from AmsterdamTech who provides business support for ISPConfig:

    https://www.ispconfig.org/get-support/?type=ispconfig
     
    Last edited: Nov 29, 2025
    ahrasis likes this.
  7. remkoh

    remkoh Well-Known Member HowtoForge Supporter

    According to the laraclassifier website it supports using nginx.
    No clue how .htaccess files fit into that.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Probaby it supports Nginx and requires some rules. But as @AVE CONCRETE MEDIA did not mention how and where he installed it, we can just guess. And I don't recommend a beginner to use Nginx.
     
  9. AVE CONCRETE MEDIA

    AVE CONCRETE MEDIA New Member HowtoForge Supporter

    i use link to install
    wget -O - https://get.ispconfig.org | sh -s -- --use-nginx --use-ftp-ports=40110-40210 --unattended-upgrades
    so nginx
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    But this says nothing about how and where you installed laraclassifier. It just says you installed a standard Nginx server.
     
  11. AVE CONCRETE MEDIA

    AVE CONCRETE MEDIA New Member HowtoForge Supporter

    I have a vps and I'm trying to install laraclasifier which has some special requirements
    PHP PhpRedis extension
    PHP PhpRedis extension is required.
    PHP apc extension
    PHP apc extension is required.
    PHP apcu extension
    PHP apcu extension is required.
    PHP memcached extension
    PHP memcached extension is required.
    that standard webhosting doesn't offer, so I had to make my own webhosting.

    isp config sites
    Document Root /var/www/clients/client1/web1
     
  12. remkoh

    remkoh Well-Known Member HowtoForge Supporter

    You need your own webserver to do your own webhosing, not necessarily ispconfig.
    Default ispconfig behaviour doesn't fit laraclasifier's expectations.
    Plenty of howto's out there about installing a lamp server, both for apache and nginx.
    You can use one of those to install your own webserver and can than install laraclasifier the way it wants you to.
     
  13. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Kinda misleading, and not solving issues, as ISPConfig can handle LaraCladdifier just fine, like any other web site softwares, plus I don't think there is any web server that could simply work without any tweaks at all, unless they have installer for that specific softwares, but even that mostly requires some tweaks.


    Your website is in /web from that path, unless you change the doc root to a sub root like the my given example above. You just to learn more on how to do that on your own.
     
  14. remkoh

    remkoh Well-Known Member HowtoForge Supporter

  15. till

    till Super Moderator Staff Member ISPConfig Developer

    This feature has been explained many times here in the forum, though.

    Indeed. Any Laravel-based software should work perfectly fine in ISPConfig.

    The thread starter just has to upload it into the web folder, install any additional PHP modules if needed, and then adjust the web root of the site (unless they use a vhost subdomain or alias domain).
     

Share This Page