简体   繁体   中英

Where do I put my PHP files on Apache Solr?

I am trying to create a front end for my web server (like text box to search for terms, and a search button).

  • Where do I place these files?
  • How do I access them from the browser?

I am using the solr-php-client for creating this front end. However, I don't know where in my solr-7.5.0 directoy to place these files.

You're not supposed to put the PHP files together with Solr. They're supposed to go on their own, PHP enabled web server (ie where you're developing your application). That server will then contact the server Solr is installed on through the URL given when you create the client. Solr bundles jetty, and being an Java application without any PHP support, has no idea what to do with PHP files.

Solr is not supposed to be exposed directly to the internet (at least not without knowing exactly what you're doing), and should only be reachable a location (either within a private network or firewalled away) from the server where your PHP code is running.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM