I have Apache/2.2.9 and PHP/5.2.6 installed in my shared hosting server where I have shell access.

I asked the server guy about the tomcast and solr. They told me that they don't have tomcast and never heard about solr. Can apache solr be installed in my server?

Comments

vm’s picture

I'd have my host review http://lucene.apache.org/solr/

himagarwal’s picture

VeryMisunderstood,

I gave that link to my server guy they told me that you cannot get this run on our server. I even talked to hostgator.com about this they also told that you require windows dedicated hosting for this to run. Can't this run in my shared hosting? Have anyone tried in it?

vm’s picture

If your host won't install it, chances are you can't use it. If you have a VPS or a dedicated you should be able to install the necessary dependencies.

janusman’s picture

SOMEONE posted a way to install Solr in a shared hosting via PHP calls, but I can't find that post! =)

Something like calling java from your PHP...

<?php
system("java -jar whichever/dir/apache-solr-1.2.0/example/start.jar");

Of course, your hosting provider would *just* have to have a new version of Java installed =)

It's a bit more complex than this, for example, I'm not sure this code would actually run Solr in the background, and you would need the process ID to later kill the instance to make changes 'stick'.

himagarwal’s picture

Thanks "janusman". I came to know that my hosting provider doesn't have "JAVA" installed in their server. Can someone recommend me a good and affordable hosting company that has "java" installed in its server.

robertdouglass’s picture

Status: Active » Fixed

The prerequisite is that you need java 1.5 or later on the machine.

This line is bullshit:

you require windows dedicated hosting for this to run.

There is nothing windows specific about this.

If you have shell access and java is available you should be able to run it.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

himagarwal’s picture

can anyone still suggest?

vm’s picture

The suggestion is above. RobertDouglass repsonded. update Java and have shell access to the server.

himagarwal’s picture

i've currently reselling account at site5. i may be switching to hostgator in dec. so i wanted to make sure if there is other hosting that have java installed with them so that i can run this module in drupal. i think hostgator doesn't have java installed in their reselling accounts.....

any suggestion for hosting companies?

vm’s picture

I don't know that most shared hosts will allow this. I believe most are using a VPS or Dedicated box where they have some or all control over what software is running on the server.

pahariwalla’s picture

I haven't actually read this http://themegarden.org/drupal6/?q=buy-best-drupal-hosting , but it may help.

Although apachesolr does require java, there is probably a better place to ask this question than this forum. Have you tried Google ? It looked like there were some good hits searching for "host drupal with java" . Good luck... I am also in the process of finding a host.

p.s. which Garhwal? Tehri? Pauri? ... way up in Uttarkashi ? Please take a look at http://garage.newschallenge.org/projects/mountain-children-mapping-land-use I'd love any feedback. Also would love to know the status of internet connectivity in you area.

couponmeup’s picture

Did anyone find a host that installs SOLR?

francewhoa’s picture

Solr will NOT work on share hosting. You need full root access and full SSH access. Such as most VPS, dedicated or your own server. Shared hosting will NOT work. Read more at http://drupal.org/node/504574

I wrote a how-to handbook for absolute beginners at http://drupal.org/node/504558

Scott Reynolds’s picture

Solr will NOT work on share hosting. You need full root access and full SSH access. Such as most VPS, dedicated or your own server. Shared hosting will NOT work. Read more at http://drupal.org/node/504574

/me sighs

This is of course not entirely true. If your host has Java 1.5 and above you can run the servlet just fine. You can write an startup script. I have, on my local boxes, install this just fine without ever typing sudo or su -.

Yes i can be hard to find a shared host. I just don't want this FUD going unanswered.

petercasier’s picture

I have SOLR working on Hostgator VPS hosting.
Dunno about their shared hosting.

Peter

Anonymous’s picture

I inquired about installing solr on my VPS @ hostgator and this is the reply I got via email:

Thank you for contacting HostGator. Regarding your request to have Apache Solr installed on your VPS we regret to inform you that this software is not compatable on our servers. Solr doesn't work out of the box and requires more customization to work properly than we are able to support. Should you have any further questions, please do not hesitate to contact us again.

Sincerely,

Christi E.
Jr. Administrator
HostGator.com LLC
http://support.hostgator.com

@petercasier Can you offer any information about how you got it setup on hostgator? Thanks.

xbrianx’s picture

I would also like a step by step guide on how to install in Host Gator VPS

asutton’s picture

+1