When will I be able to search my site? Everytime I check on it, it says "0% of the site has been indexed. There are 4 items left to index.".

-Jordan

Comments

calebgilbert’s picture

Figure out where to set up your cron job (an easy thing to do if you google "cron job cpanel" for instance - assuming you have cpanel of course)

And paste this in wherever you are supposed to set up your cron jobs (again you'll have to find out - it varies depending on your host):

*/10 * * * * wget -O -q http://yourwebsite.com/cron.php

The command above would run cron every ten minutes, and you can change the number "10" to some other number (wouldn't recommend anything shorter though).

Then after cron runs you site will be indexed and your search will work.

Actually, you can just enter http://yourwebsite.com/cron.php to get cron to run manually and it will index your site, but then of course it's not automated like you'll want it to be in the future.

=====
Bloggyland.com
Hosting for pre-tuned/pre-configured Drupal installations
No set-up time, instant fully-functioning site with many extra modules
Drupal specific support, SSH/FTP/cPanel

Sam308’s picture

Jordan:

You need to perform a cron job so that your site will be available for searching via the Drupal search function. You can manually run the cron script "cron.php" the first time, but it is better to schedule periodic cron runs daily, hourly, or whatever.

The cron.php file is located in your Drupal root directory. You can run it manually via your web browser by: http://www.yourdomain.com/cron.php

For automated daily running / scheduling of a cron job, setup a Cron Job via your website hosting control panel.

The UNIX shell command line is: wget -O - -q http://yourdomain.com/cron.php

Hope this helps,

Sam Raheb (Sam308)

jmeeter’s picture

Muslim guy’s picture

Install and use poormanscron.php

That will save you from having having to deal with Cron Jobs from cPanel (for example, a Drupal webmaster but not the domain owner)

v1nce’s picture

add '>& dev/null' to the end of the wget cron job to send log messages to a big black hole.
-------------------------------------
CommunityTraveler

kreaper’s picture

I also use poormanscron.php although I have access to cron entries etc - cause the drupal instance runs on SSL. I have been unable to get wget working with SSL (I get a Unsupported Scheme error)

http://kreaper.blogsome.com

GKamsika’s picture

Could you tell me where to find/download poormanscron.php - googling it returns only this thread. Thank you.

Reverend’s picture

GKamsika’s picture

*blush* thank you - I'll remember to remove .php if I search again.

Muslim guy’s picture

You are right, Google.com returns only 3 pages and this thread is on top :)

I guess there is no such thing as poormanscron.php, and POORMANSCRON is the specific name for the said Drupal module

Muslim guy’s picture

Mistakenly called `poormanscron.php'

The correct way to refer to a Drupal module is NAME.module so that people are not confused

So it is poormanscron.module

Actually, all Drupal modules are PHP files, but the extension is .module - this is a good thing and I say BRAVO because a PHP script with .php extension can produce errors if there is `white space' after the closing tags ?>

That's my opinion as a PHP illiterate but had benefited from the wonderful workings of PHP (lets kill ASP! :)

GKamsika’s picture

Please dont apologise - I didnt even notice that module existed until you pointed it out & now I have my search working perfectly 2 days after downloading Drupal :)

it was a very helpful comment:D

andyatkinson’s picture

Hello. Is anyone else seeing this issue?

on my local Windows installation of 4.7.3, I have a few contributed modules, detailed here:
http://drupal.org/node/65238 (scroll to bottom)

...as soon as I drop the poormanscron directory into my "modules" folder and refresh http://localhost/admin or whatever page I am on, I get "host unreachable" types of errors (site is unreachable). It seems like it could be killing PHP, I haven't dug into this completely but I might have to.

As soon as I remove the poormanscron directory, the site "comes back up" and everythign works as expected. Obviously I'm reluctant to deploy this to my production site, and I'd prefer to stick with poormanscron over setting up cron tasks myself, but maybe that is what I'll have to do.

Thanks!

Muslim guy’s picture

Then do a manual first

http://yourdomain.com/cron.php

For now or if you want to have immediate indexing so that your latest content is searchable

Then, from Control Panel, it is actually easy to configure Cron Jobs - you dont have to do it the programmers's way :)

I mean, in the production site, in the domain.

The usual link is
http://domain.org:2082/frontend/rvblue/cron/index.html

*
Advanced Tools / Cron Jobs

Cron Jobs
Please choose experience level:
- Standard
- Advanced (Unix style - the programmer's way )

[ Go Back ]

Then you will see:
This is a web interface to the crontab program. It will allow you to run commands repeatedly at any time you specify. Just enter the command to run as well as the time at which to run the command.
Please enter an email address where output from commands run via crontab will be sent:

Entry 1
Command to run: *****this is the cron.php inside your Drupal installation*****

If installed in the main public_html, then URL is http://domain.org/cron.php

The same page is the settings for intervals etc

After saving the crontab, you will get `Schedule Updated'

When the cron is done, you will receive the notification in email