vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need help with repair.php (https://vborg.vbsupport.ru/showthread.php?t=33713)

Knoman 01-02-2002 03:34 AM

I know how to run it's commands to check on corrupt databases, but what I need to know is how to get crontab to run it automatically. I'm able to use crontab and know how to write a command, but that's not the problem. The problem is that if crontab were to run the repair.php file, will it ask that file for the admin user name and pass? If so, how would I go about in getting it to work?

Psychdrone 01-02-2002 04:33 AM

don't put it in the admin directory

Knoman 01-02-2002 04:35 AM

hmmmmm.... it didnt seem to work before... let me try again.

edit:

Warning: Failed opening './global.php' for inclusion (include_path='') in /home/sites/site3/web/forums/repair/repair.php on line 83

Fatal error: Call to a member function on a non-object in /home/sites/site3/web/forums/repair/repair.php on line 86

JamesUS 01-02-2002 07:42 AM

You need to put it in either the main forums directory or the admin directory :)

Psychdrone 01-02-2002 08:02 PM

ya thats what I ment, not in the admin directory but in the main fourm directory!!

Hey Knoman, if you could pm me the contab code, on how you would get this to repair it automaticly, ever, whatever you set it at, that would be great man!

Knoman 01-02-2002 10:41 PM

*/6 * * * * path/to/php absolute/path/to/repair.php?nohtml=1&check=1&iterations=4&forum=dat abasename

yeah, i know having the server running it every 6 mins is excessive, but my database have been corrupting a lot lately.

Knoman 01-03-2002 12:57 AM

this is working out great. i normally get 50 emails a day from the database about errors. today, i got zero ^_^


All times are GMT. The time now is 07:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01101 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete