Andreas2003 Posted May 19, 2010 Share Posted May 19, 2010 Jack, I already excluded: - admin - images - thumbnails (from my thumbnailer) So the only files being monitored, are in the root-dir of osC and the includes-dir. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 19, 2010 Author Share Posted May 19, 2010 Jack, I already excluded: - admin - images - thumbnails (from my thumbnailer) So the only files being monitored, are in the root-dir of osC and the includes-dir. Then you haven't excluded all directories. Quote 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 More sharing options...
Andreas2003 Posted May 19, 2010 Share Posted May 19, 2010 (edited) Now I have excluded all subdirs, so Sitemonitor should only monitor the root files. But I'm getting the same error message. Edited May 19, 2010 by Andreas2003 Quote Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted May 19, 2010 Share Posted May 19, 2010 My cronjob is not running successfully as well. The execution command is here: /home/httpd/cgi-bin/php4 /usr/www/users/shop/admin/sitemonitor.php I don't see this as a good cron job. Try changing it to this... php /usr/www/users/shop/admin/sitemonitor.php Quote Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 19, 2010 Author Share Posted May 19, 2010 Now I have excluded all subdirs, so Sitemonitor should only monitor the root files. But I'm getting the same error message. Then there is probably something in your files that is causing it to fail. Even the most highly altered site won't have more than a hundred files or so in the root so there's no way for the script to time out on that small number of files. You should look more closely at the files in the root and get rid of any that don't belong there. I suppose there could be something wrong with SiteMonitors code that is causing it to fail but I haven't had any problems with it on the sites I've installed it into so I don't think that is the case. Quote 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 More sharing options...
Witblitz Posted May 24, 2010 Share Posted May 24, 2010 (edited) When I run Site Monitor locally it stops here: Found a new file named admin/sitemonitor_log_24_05_2010.txtNo deleted files found... Also, if I click on "Update" for "Delete Reference File", a blank page returns. What permissions should be set for Site Monitor to function? Edited May 24, 2010 by Witblitz Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 24, 2010 Author Share Posted May 24, 2010 When I run Site Monitor locally it stops here: Also, if I click on "Update" for "Delete Reference File", a blank page returns. What permissions should be set for Site Monitor to function? Permission settings aren't needed for most servers but others have posted here saying they had such problems. But the problem you are having seems to be different. If it were a permissions problem, I would expect the script to fail completely but it seems to be partially running. Since the output is not complete, there should be a server error so I would look in the error_log file first. If you can't find one, you will need to ask your host to take a look. Quote 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 More sharing options...
Ariadnetheweaver Posted May 25, 2010 Share Posted May 25, 2010 (edited) Hi Jack I just installed SiteMonitor today, followed the instructions, right up until "-------------------------------------------------------------------------- Step 5: Go to admin->Sitemonitor->Configure, setup the various settings and click Update." No directories appear in the drop down, and whenever I put anything in the exclusion box, it simply shows it as a red bar error message above the main part of the page. I'm filling in the following settings: Always email (tick) verbose (tick) both email addresses start directory - now, I'm not sure exactly what is needed here. I've tried "\", "c:\domains\ariadnetheweaver.org\wwwroot\" (obviously without the "") The exclude selector box only comes up with "make selection" and no selections are offered. I have tried '\admin', "\admin", and various exceptions in the box, and with no luck. I get the following error message: Warning: opendir(\) [function.opendir.php]: failed to open dir: No such file or directory in C:\Domains\ariadnetheweaver.org\wwwroot\admin\includes\functions\sitemonitor_functions.php on line 418 **amended to say the above message disappears when I choose "c:/domains/ariadnetheweaver.org/wwwroot/" (I always get the damn / and \ the wrong way around. However, it still wants me to put an exclude file in the box, and whatever I put in, it doesn't like, with / or \ or without either... ** Any ideas? I'd appreciate some help as I'm trying to make my site as secure as possible, following a recent hack. >-- when I go to "admin" section, obviously it hasn't liked something, as the warning message above reappears when I click the top update button (delete reference file). I'm assuming this is because of the error in the configuration meaning that it hasn't saved my settings, as when I go to setup again, they have vanished. Edited May 25, 2010 by Ariadnetheweaver Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 25, 2010 Author Share Posted May 25, 2010 start directory - now, I'm not sure exactly what is needed here. I've tried "\", "c:\domains\ariadnetheweaver.org\wwwroot\" (obviously without the "") I get the following error message: Warning: opendir(\) [function.opendir.php]: failed to open dir: No such file or directory in C:\Domains\ariadnetheweaver.org\wwwroot\admin\includes\functions\sitemonitor_functions.php on line 418 The problem is with the start directory entry. You shouldn't have to edit that if your shops configure file is setup correctly since it is read from there. The error is saying it can't find the needed file, probably because the path is incorrect. Go to admin->modules and the correct path will be displayed there. Be sure the one you enter for SiteMonitor matches that, except for the modules part of the path, of course. Quote 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 More sharing options...
Pinball Posted May 26, 2010 Share Posted May 26, 2010 What permissions need to be changed to install this program? I do not see a reference in the readme or elsewhere... Thanks! Quote Link to comment Share on other sites More sharing options...
Pinball Posted May 26, 2010 Share Posted May 26, 2010 What permissions need to be changed to install this program? I do not see a reference in the readme or elsewhere... I should have mentioned that I get kicked back into Admin/forbidden.php with this error message: "Access Denied No Right Permission Access Please contact your Web Administrator to request more access or if you found any problem." Thanks, Quote Link to comment Share on other sites More sharing options...
Ariadnetheweaver Posted May 26, 2010 Share Posted May 26, 2010 (edited) The problem is with the start directory entry. You shouldn't have to edit that if your shops configure file is setup correctly since it is read from there. The error is saying it can't find the needed file, probably because the path is incorrect. Go to admin->modules and the correct path will be displayed there. Be sure the one you enter for SiteMonitor matches that, except for the modules part of the path, of course. Hi Jack The shops configure file is fine. I've checked the path in admin>-modules, and it is /domains/ariadnetheweaver.org/wwwroot/includes (and then /modules) so, I've used the same path in the sitemonitor "start directory" box. The problem is that the drop down box is not populated at all - assume because it needs to be saved before seeing where the path is. But I can't save it until I enter something in the field. Feels like a catch 22 to me, but I'm sure I'm missing something obvious, can't see where it is. Well, I sorted it. I filled the settings in manually in the sitemonitor configure file and simply uploaded the changes. Put exactly the same things in, and it worked. I got around it, but the addon did not work quite the way it was supposed to. It's installed now, anyway :) ~~~ or so I thought. ran the "delete reference file" top button. message: sitemonitor_reference.php has been deleted! First time ran. Reference file was created and saved excellent. ran the second button (Execute) No mismatches found great :) third button worked perfectly fourth button !!! Could not open the Configure file !!! No hacked files were found. I'm assuming it failed because I didn't set up cron/curl (whatever that is).. However on running the top button again, it said "First time ran. Reference file was created and saved" um, not the first time... looks like I'm close, anyway. Even when I open the configure screen again, everything is blank, no matter what I fill in, it resets itself. Edited May 26, 2010 by Ariadnetheweaver Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 26, 2010 Author Share Posted May 26, 2010 fourth button !!! Could not open the Configure file !!! No hacked files were found. I'm assuming it failed because I didn't set up cron/curl (whatever that is).. Curl is optional. There should not be entries for these unless you use that option. However on running the top button again, it said "First time ran. Reference file was created and saved" um, not the first time... First time means a new run, not first time ever. looks like I'm close, anyway. Even when I open the configure screen again, everything is blank, no matter what I fill in, it resets itself. Then something is wrong with your path. In admin/sitemonitor_configure_setup.php, find require('includes/functions/sitemonitor_functions.php'); And add this below it echo 'path '.DIR_FS_ADMIN . FILENAME_SITEMONITOR_CONFIGURE.'<br>'.DIR_FS_DOCUMENT_ROOT; What is displayed when you visit the configure page? Quote 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 More sharing options...
Ariadnetheweaver Posted May 26, 2010 Share Posted May 26, 2010 (edited) path /domains/ariadnetheweaver.org/wwwroot/sitemonitor_configure.php /domains/ariadnetheweaver.org/wwwroot/ (I really appreciate your help) aahh, is /admin the bit I'm missing? Edited May 26, 2010 by Ariadnetheweaver Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 26, 2010 Author Share Posted May 26, 2010 (edited) path /domains/ariadnetheweaver.org/wwwroot/sitemonitor_configure.php aahh, is /admin the bit I'm missing? Yes, admin is missing in the first path. SiteMonitor should be installed in admin, by the way, in case you installed it in the shop side. Edited May 26, 2010 by Jack_mcs Quote 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 More sharing options...
Ariadnetheweaver Posted May 26, 2010 Share Posted May 26, 2010 (edited) ah, tracked down the issue. I hadn't manually put the actual path in the DIR_FS_DOCUMENT_ROOT in the configure file, as everything else had worked with just the default variable that was there. Thanks, seems to work now :) I admire your patience in dealing with idiots like me :) Edited May 26, 2010 by Ariadnetheweaver Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 26, 2010 Author Share Posted May 26, 2010 Thanks, seems to work now :) I admire your patience in dealing with idiots like me :) You're welcome. But, as far as patience, I make worse mistakes on a daily basis so I'm just too busy yelling at myself to take time to be upset with anyone else. :) Quote 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 More sharing options...
mr_absinthe Posted June 1, 2010 Share Posted June 1, 2010 (edited) Jack, I've loaded your latest version - no update, I've simply deleted all old files related to the SiteMonitor. Problem #1 - it still monitors excluded directories: Found a deleted file named cache/also_purchased-english.cache57 Found a deleted file named cache/also_purchased-german.cache58 Problem #2 - after I clicked bottom button (Manually Check for Hacked Files): Warning: Invalid argument supplied for foreach() in /hosting/www/mystore.com/www/admin/includes/functions/sitemonitor_functions.php on line 604...[/codeNot sure if you know but Delete Not sure if you know, but "Delete Reference file" can only be set to 1-9 days. 10 gets deleted, 11 and higher changes to the second digit (12 becomes 2, 14 becomes 4, etc.). I'm happy to give you ftp if you wish, just let me know. Edited June 1, 2010 by mr_absinthe Quote Absinthe Original Liquor Store Link to comment Share on other sites More sharing options...
Guest Posted June 2, 2010 Share Posted June 2, 2010 What permissions need to be changed to install this program? I do not see a reference in the readme or elsewhere... I should have mentioned that I get kicked back into Admin/forbidden.php with this error message: "Access Denied No Right Permission Access Please contact your Web Administrator to request more access or if you found any problem." Thanks, I've had the same issue. I've played with changing various file permissions and have not been able to resolve it. Does anyone have any suggestions? I'd really like to use this contribution. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 2, 2010 Author Share Posted June 2, 2010 Not sure if you know, but "Delete Reference file" can only be set to 1-9 days. 10 gets deleted, 11 and higher changes to the second digit (12 becomes 2, 14 becomes 4, etc.). Yes, I did know. The size of that field was set to 1 character. The purpose of that is to clear the reference file after so many days. It is only needed if your reference file gets a lot of entries, like if you are uploading files. So I figured anyone needing it would be setting it to less that three. If someone is willing to have an email full of messages after 9 days, they probably don't care about that setting anyway. At least, that was my thinking. It can be increased in the code if you like though. I'm happy to give you ftp if you wish, just let me know. Please send them to me and I will take a look. I'm not sure when it will be but I will try to get to it before next week. Quote 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 More sharing options...
Jack_mcs Posted June 3, 2010 Author Share Posted June 3, 2010 A new version has been uploaded with these changes: - Fixed path problem - should correct the issue with not seeing the correct locations. - Fixed file scan problem that caused a failure on some servers. Quote 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 More sharing options...
mr_absinthe Posted June 3, 2010 Share Posted June 3, 2010 Please send them to me and I will take a look. I'm not sure when it will be but I will try to get to it before next week. Done, I've not uploaded the v 2.4 yet, I'll leave that up to you <_< Quote Absinthe Original Liquor Store Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2010 Share Posted June 4, 2010 I've had the same issue. I've played with changing various file permissions and have not been able to resolve it. Does anyone have any suggestions? I'd really like to use this contribution. You need to set the file access permissions in admin to Site Monitor. Once I did that, it worked fine. Quote Link to comment Share on other sites More sharing options...
wild.lucifero Posted June 6, 2010 Share Posted June 6, 2010 Hello Jack, I'm sorry because I wouldn't disturb you. Can you help me to solve this simple and stupid problem, please? I read and followed this thread, I'm sure that I'm in a water glass but I'm not able to solve my problem because I don't see where I'm making the mistake(s). I have the same problem of "Ariadnetheweaver" I installed your contribute and when I run Sitemonitor on the left applications menu, it returns an error: "Warning: opendir(http) [function.opendir]: failed to open dir: No such file or directory in /web/htdocs/domain_name/home/catalog/admin/includes/functions/sitemonitor_functions.php on line 420" I followed your suggestion modifying sitemonitor_functions.php in function folder to see what is the value of $dir and it return always "http" even if I change the value of Start Directory in many kinds of values. For example I tried: keeping blank, http, http://domain_name, http://domain_name/, http://domain_name/catalog, http://domain_name/catalog/, etc The domain_name value is my domain name of course... I'm testing this contrib on a productive shop, even if it is in standalone status. Thanks to all. Michele Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 6, 2010 Author Share Posted June 6, 2010 Done, I've not uploaded the v 2.4 yet, I'll leave that up to you <_< I wasn't offering a free installation. I'll leave that up tp you. If the problem you are having still exists, which I don't think it will, then I will take a look at it if you like. Quote 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 More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.