Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SiteMonitor


Jack_mcs

Recommended Posts

Take a look at admin->Tools->Database Backup and make sure the path shown there is the same you are using.

 

Jack

 

Yep

tried again - now get this error

Warning: fopen(sitemonitor_reference.php): failed to open stream: Permission denied in /hsphere/local/home/..../.....com/admin/includes/functions/sitemonitor_functions.php on line 208

Failed to open file sitemonitor_reference.php

 

.. I dont have a file sitemonitor_reference.php - doesnt seem to be in install I downloaded - is this right?

Link to comment
Share on other sites

Take a look at admin->Tools->Database Backup and make sure the path shown there is the same you are using.

 

Jack

 

Also presume path should be .../.../website/admin (nothing after

 

on admin=> configure it show

Warning: opendir(/hsphere/local/home/.../..../webalizer/): failed to open dir: Permission denied in /hsphere/local/home/mshisha/britfayre.com/admin/includes/functions/sitemonitor_functions.php on line 159

 

Warning: readdir(): supplied argument is not a valid Directory resource in /hsphere/local/home/..../.....com/admin/includes/functions/sitemonitor_functions.php on line 161

 

Warning: closedir(): supplied argument is not a valid Directory resource in /hsphere/local/home/.../.....com/admin/includes/functions/sitemonitor_functions.php on line 173

 

Warning: opendir(/hsphere/local/home/..../......com/modlogan/): failed to open dir: Permission denied in /hsphere/local/home/mshisha/britfayre.com/admin/includes/functions/sitemonitor_functions.php on line 159

 

Warning: readdir(): supplied argument is not a valid Directory resource in /hsphere/local/home/..../......com/admin/includes/functions/sitemonitor_functions.php on line 161

 

Warning: closedir(): supplied argument is not a valid Directory resource in /hsphere/local/home/...../.....com/admin/includes/functions/sitemonitor_functions.php on line 173

Link to comment
Share on other sites

Also presume path should be .../.../website/admin (nothing after

 

on admin=> configure it show

Warning: opendir(/hsphere/local/home/.../..../webalizer/): failed to open dir: Permission denied in /hsphere/local/home/mshisha/britfayre.com/admin/includes/functions/sitemonitor_functions.php on line 159

 

Warning: readdir(): supplied argument is not a valid Directory resource in /hsphere/local/home/..../.....com/admin/includes/functions/sitemonitor_functions.php on line 161

 

Warning: closedir(): supplied argument is not a valid Directory resource in /hsphere/local/home/.../.....com/admin/includes/functions/sitemonitor_functions.php on line 173

 

Warning: opendir(/hsphere/local/home/..../......com/modlogan/): failed to open dir: Permission denied in /hsphere/local/home/mshisha/britfayre.com/admin/includes/functions/sitemonitor_functions.php on line 159

 

Warning: readdir(): supplied argument is not a valid Directory resource in /hsphere/local/home/..../......com/admin/includes/functions/sitemonitor_functions.php on line 161

 

Warning: closedir(): supplied argument is not a valid Directory resource in /hsphere/local/home/...../.....com/admin/includes/functions/sitemonitor_functions.php on line 173

 

dispite all this --- it works .....

Link to comment
Share on other sites

I think someone else had that problem and mentioned they had to create the reference file first, or something like that. It is in this thread though so you can easily find it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Well I have tried every which way - creating sitemonitor_reference file first - changing all the sitemonitor files to 777 - not creating file first - ......still get these error alerts coming up.

 

BUT it is working fine so .... great contribution just me has the little hiccup - and I can live with it to have that added sense of security on my website.

 

Thanks again

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

my email results are posting the same stuff in it day after day (a file i edited 2 days ago is still showing up as recently modified)

this keeps building daily, unless i manually delete & restart the reference file.

would it be possible to re-generate the reference file after each scan? so the results are fresh, like that of logwatch?

Link to comment
Share on other sites

Jack,

I've installed version 1.5

In Site Monitor -> Admin, I get this error when clicking "delete reference file":

 

Warning: fopen(sitemonitor_reference.php) [function.fopen]: failed to open stream: Permission denied in /home/myusername/public_html/admin/includes/functions/sitemonitor_functions.php on line 208

Failed to open file sitemonitor_reference.php

 

I changed permissions for sitemonitor_functions.php but it makes no difference.

 

Can you advise please?

Isabella

 

Did you get this resolved? I have the same situation because my web host does not allow fopen.

Link to comment
Share on other sites

i am wondering if there's a size limit for your shop and this contribution.

 

i've been getting this showing up in logwatch:

WARNING: General Protection Faults in these executables

php-cgi : 2 Time(s)

the timestamp in the logs correlates to when i ran sitemonitor.

 

quick searches mention the error stems from memory, but i am on a dedicated server with 2048 MB (far more than my site really needs to function properly)

 

i disabled sitemonitor for a few days, the errors no longer show up.

Link to comment
Share on other sites

  • 2 weeks later...
Isabella

 

Did you get this resolved? I have the same situation because my web host does not allow fopen.

 

Gosh, sorry for my delay in replying, I hadn't checked this thread until today :blink:.

 

To anwser your question, no I didn't get this resolved until I changed hosts/servers. Did you find a way round it though?

 

@Jack

I have what will probably be a stupid question, but this contribution doesn't detect changes in database, at least it doesn't for me, is that correct?

 

And on timeouts, is it possible to instruct the server not to time out after 30 seconds? When I run sitemonitor, sometimes it's fine but other times it keeps timing out.

 

Isabella

~ Don't mistake my kindness for weakness ~

Link to comment
Share on other sites

I have what will probably be a stupid question, but this contribution doesn't detect changes in database, at least it doesn't for me, is that correct?

 

And on timeouts, is it possible to instruct the server not to time out after 30 seconds? When I run sitemonitor, sometimes it's fine but other times it keeps timing out.

No, it doesn't check the database. There's no reasonable way to do that since the database is always changing.

 

It times out due to the limit of the server. It might be possible to fix that using sleep commands but that would also open a hole where changes might go unnoticed. If you can cut down on the number of files being monitored, the timeout won't happen. If you can't, you can run more than one instance of the script and have each monitor a smaller set of files.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Gosh, sorry for my delay in replying, I hadn't checked this thread until today :blink:.

 

To anwser your question, no I didn't get this resolved until I changed hosts/servers. Did you find a way round it though?

 

 

Isabella

Not really, it was a different problem in the end. Had to set the "admin" directory permissions as mentioned earlier in the thread.

Link to comment
Share on other sites

@Jack

If you can cut down on the number of files being monitored, the timeout won't happen. If you can't, you can run more than one instance of the script and have each monitor a smaller set of files.

Thanks, I'll try that.

 

@Coopco

I'm glad you found a way to make this work as this is indeed an extremely useful contribution to have.

 

Isabella

~ Don't mistake my kindness for weakness ~

Link to comment
Share on other sites

Hello all,

I just installed this great contrib but, I keep getting this mismatches. why??

 

NEW FILES:

Found a new file named store/images/1001.jpg.thumb_ 190x253.jpg

 

DELETED FILES:

Found a deleted file named

Found a deleted file named

 

SIZE MISMATCH:

Size differences not checked due to deleted file(s)

 

TIME MISMATCH:

Time differences not checked due to deleted file(s)

 

PERMISSIONS MISMATCH:

Permissions not checked due to deleted file(s)

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sitemonitor ran on June 28, 2008, 12:47 am Total mismatches found were 3 Total files being monitored is 15268

Link to comment
Share on other sites

Hello all,

I just installed this great contrib but, I keep getting this mismatches. why??

 

NEW FILES:

Found a new file named store/images/1001.jpg.thumb_ 190x253.jpg

 

DELETED FILES:

Found a deleted file named

Found a deleted file named

 

SIZE MISMATCH:

Size differences not checked due to deleted file(s)

 

TIME MISMATCH:

Time differences not checked due to deleted file(s)

 

PERMISSIONS MISMATCH:

Permissions not checked due to deleted file(s)

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sitemonitor ran on June 28, 2008, 12:47 am Total mismatches found were 3 Total files being monitored is 15268

If the deleted and new seem to be correct, try running it again after resetting it.

Link to comment
Share on other sites

Hello all,

I just installed this great contrib but, I keep getting this mismatches. why??

 

NEW FILES:

Found a new file named store/images/1001.jpg.thumb_ 190x253.jpg

Assuming that image is the result of some thumbnail contribution, the thumbnails may change often, depending on your setup. If that is the case, it probably would pay to monitor the images directory. Or see if the thumbnails can be stored in a sub-directory and then don't monitor it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack,

 

I do not understand what this means, I get these mismatches on jpg file sizes and times even though the files haven't changed:

 

SIZE MISMATCH:

Difference found: New-> images/lampwork_CATC001.jpg 2268 Original-> 2509

 

TIME MISMATCH:

Time Mismatch on images/sugar_wireCAT01.jpg Last Changed on Friday, 27 Jun 2008 12:15:53 GMT

 

Isabella

~ Don't mistake my kindness for weakness ~

Link to comment
Share on other sites

Hello,

 

Another "Reference file" question from a newbie.....

 

I have downloaded the SiteMonitor version 1.5 which I understood was a complete version, not a patch.

I have copied and modified the files according to the description.

When I am running the SiteMonitor and Admin I get the "Delete the reference file and create a new one" and "Run Sitemonitor. Reference file is not deleted." messages.

 

Were do I find this "Reference file" which it asks me to delete ????

 

Sorry for beeing stupid :-)

Link to comment
Share on other sites

If the deleted and new seem to be correct, try running it again after resetting it.

 

Thanks Leslie and Jack for your help. It turned out that the file 1001.jpg.thumb_ 190x253.jpg was corrupt. After deleting the file. I get:

 

NEW FILES:

No new files found...

 

DELETED FILES:

No deleted files found...

 

SIZE MISMATCH:

No size differences found...

 

TIME MISMATCH:

No time mismatches found...

 

PERMISSIONS MISMATCH:

No permissions mismatches found...

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sitemonitor ran on June 28, 2008, 7:09 pm Total mismatches found were 0 Total files being monitored is 15067

 

You guys are the best!!

Link to comment
Share on other sites

Hello,

 

Another "Reference file" question from a newbie.....

 

I have downloaded the SiteMonitor version 1.5 which I understood was a complete version, not a patch.

I have copied and modified the files according to the description.

When I am running the SiteMonitor and Admin I get the "Delete the reference file and create a new one" and "Run Sitemonitor. Reference file is not deleted." messages.

 

Were do I find this "Reference file" which it asks me to delete ????

 

Sorry for beeing stupid :-)

You don't delete anything, the script does. It is just telling you it will be deleted.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

You don't delete anything, the script does. It is just telling you it will be deleted.

 

Jack

 

 

Thanks for your reply.

 

Yes I understand now.

But when I click "Update" I got two error messages:

 

Warning: opendir(/home/username/public_html) [function.opendir]: failed to open dir: No such file or directory in /home/blablabla/www/blablabla/admin/includes/functions/sitemonitor_functions.php on line 93

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/blablabla/www/blablabla/admin/includes/functions/sitemonitor_functions.php on line 95

Reference file creation failed.

 

 

Is this due to my home location of the files or is it due to the permissions ??

What do you think ??

 

 

Petter

Link to comment
Share on other sites

Thanks for your reply.

 

Yes I understand now.

But when I click "Update" I got two error messages:

 

Warning: opendir(/home/username/public_html) [function.opendir]: failed to open dir: No such file or directory in /home/blablabla/www/blablabla/admin/includes/functions/sitemonitor_functions.php on line 93

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/blablabla/www/blablabla/admin/includes/functions/sitemonitor_functions.php on line 95

Reference file creation failed.

 

 

Is this due to my home location of the files or is it due to the permissions ??

What do you think ??

 

 

Petter

On a server where there is apublic_html directory, the www directory is just an alias for it. But I'm not sure what happens to the code if you intermix those, as you have. I suggest using the public_html directory, that includes the configure file for the site, to avoid the possibility of such problems. Also be sure you have changed the username in the settings to the actual username.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

On a server where there is apublic_html directory, the www directory is just an alias for it. But I'm not sure what happens to the code if you intermix those, as you have. I suggest using the public_html directory, that includes the configure file for the site, to avoid the possibility of such problems. Also be sure you have changed the username in the settings to the actual username.

 

Jack

 

 

Thank you,...its working now.

I just had to alter the configuration file manually and put in the correct path, mail address and such.

I have also protected my admin folder by .htaccess and .htpasswd and deleted the file manager so I hope I am better off now.

 

Any other suggestions on how to protect my shop from beeing hacked would be appreciated.

 

Petter

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...