SiteMonitor
#2061
Posted 12 July 2012 - 09:02 AM
I noticed that on the browser you can open the site monitor text files (sitemonitor_configure_0.txt, sitemonitor_db_reference.txt, etc), and you can also show the text logs from the directory sitemonitor_logs. Shouldn't these files be protected by .htaccess?
Regards
#2062
Posted 12 July 2012 - 12:56 PM
maltafalk, on 12 July 2012 - 07:49 AM, said:
Warning: fopen(/typo24.gr/catalog/admin/sitemonitor_configure_0.txt) [function.fopen]: failed to open stream: No such file or directory What has this meaning?
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#2063
Posted 12 July 2012 - 12:57 PM
modem2.0, on 12 July 2012 - 09:02 AM, said:
I noticed that on the browser you can open the site monitor text files (sitemonitor_configure_0.txt, sitemonitor_db_reference.txt, etc), and you can also show the text logs from the directory sitemonitor_logs. Shouldn't these files be protected by .htaccess?
Regards
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#2064
Posted 12 July 2012 - 01:17 PM
Jack_mcs, on 12 July 2012 - 12:57 PM, said:
I believe this will happen to lot's of people.
#2065
Posted 12 July 2012 - 01:37 PM
modem2.0, on 12 July 2012 - 01:17 PM, said:
I believe this will happen to lot's of people.
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#2066 ONLINE
Posted 13 July 2012 - 01:27 AM
Jack_mcs, on 12 July 2012 - 02:00 AM, said:
Jack, the change to @mktime took care of that warning generated when running php v 5.3.
Another thing I notice when running the same process in php v 5.3.13, I am getting this
Quote
No deleted files found...
No size differences found...
Time Mismatch on myshopsadmin/session_mm_cgi-fcgi503.sem Last Changed on Friday, 13 Jul 2012 01:19:34 GMT
No permissions mismatches found...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sitemonitor (0) ran on July 12, 2012, 9:19 pm
Total mismatches found were 1
Total files being monitored is 2537
Email sent to shop owner.
When I delete the reference file, this file appears every time, with an updated time mismatch.
This only occurs with php 5.3; toggling back to 5.2, this output does not occur.
Thanks
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#2067
Posted 13 July 2012 - 03:30 AM
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#2068 ONLINE
Posted 13 July 2012 - 09:24 PM
Jack_mcs, on 13 July 2012 - 03:30 AM, said:
Here's what's in the reference file:
/home/myname/public_html/myshopsadmin/session_mm_cgi-fcgi503.sem,0,1342142476,600
What is that file anyway, I don't see it browsing the shop via my ftp client or the cPanel file manager?
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#2069
Posted 13 July 2012 - 11:52 PM
altoid, on 13 July 2012 - 09:24 PM, said:
/home/myname/public_html/myshopsadmin/session_mm_cgi-fcgi503.sem,0,1342142476,600
What is that file anyway, I don't see it browsing the shop via my ftp client or the cPanel file manager?
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#2070 ONLINE
Posted 14 July 2012 - 12:46 AM
Jack_mcs, on 13 July 2012 - 11:52 PM, said:
I'll check into this with my host. I've not used a design company but I wouldn't be surprised this file is there because of some of the design support they offer. Or something like that. I'll get back with what I find out and see if what you recommended takes care of this.
Thanks
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#2071 ONLINE
Posted 14 July 2012 - 01:33 AM
altoid, on 14 July 2012 - 12:46 AM, said:
Thanks
well that went more quickly than i expected...here's what the host support guy says about that file...
Quote
on our VPS accounts we recommend FastCGi, coupled with APC. APC is a caching/snapshot software and FastCGI is a faster handler of CGI/Perl files.
They may update continually, delete and recreate (creating snapshots of the website).
I have confirmed that they are a part of APC's snapshot/caching functions.
APC and FastCGI integrate with PHP to cache the site and improve performance.
So the support guy recommends not doing anything with it as per above. Which I guess is the best thing to do.
Interesting that running Site Monitor on 5.3 picks this up but doesn't when running 5.2
Would it be worth considering code in Site Monitor to ignore this file? Right now the only way I think I could avoid it is to exclude all my "admin" folders and files consider this is showing to reside right under the admin side of things.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#2072
Posted 14 July 2012 - 03:49 AM
altoid, on 14 July 2012 - 01:33 AM, said:
So the support guy recommends not doing anything with it as per above. Which I guess is the best thing to do.
Interesting that running Site Monitor on 5.3 picks this up but doesn't when running 5.2
Would it be worth considering code in Site Monitor to ignore this file? Right now the only way I think I could avoid it is to exclude all my "admin" folders and files consider this is showing to reside right under the admin side of things.
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#2073 ONLINE
Posted 14 July 2012 - 10:59 AM
Jack_mcs, on 14 July 2012 - 03:49 AM, said:
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#2074
Posted 22 July 2012 - 11:10 AM
I can't setup the server cron job.
I followed your instructions, if I use the method
php /home/username/public_html/catalog/admin/sitemonitor.php Xthe instance provided in x is ignored and instance 0 is always run.
If I use the 2nd method,
php /home/username/public_html/catalog/admin/sitemonitor.php?instance=XI get an error saying
Status: 404 Not Found X-Powered-By: PHP/5.3.13 Content-type: text/html No input file specified.
Is there another way to run it? Or am I doing something wrong?
#2075
Posted 22 July 2012 - 01:15 PM
modem2.0, on 22 July 2012 - 11:10 AM, said:
I followed your instructions, if I use the method
[/CODE]
Is there another way to run it? Or am I doing something wrong?
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#2076
Posted 29 July 2012 - 10:02 PM
I have successfully installed/configured this on 2 domains on the same hosting account. I have set up 2 CRON jobs that run once a day.
One of my stores now has such a huge number of images that I am encountering time-outs. I have tested running two configs. One for the main osC excluding images, the other for images only. Works like a charm.
Now my problem - I am limited to 2 CRON jobs only. Splitting one domain as above means I want to run three CRON jobs. I am thinking of putting the commands into a script file and just running the script as a single CRON job.
/home/www/domain1.com/shop/admin/sitemonitor.php 0 /home/www/domain2.com/shop/admin/sitemonitor.php 0 /home/www/domain2.com/shop/admin/sitemonitor.php 1
I have 2 questions;
- Is this viable?
- Is there a way of adding a delay between the execution of each line?
P.S. I can't thank you enough for the peace of mind this brings me each morning. Occasionally the lesser important domain gets a .php file dumped in the images folder but that is protected by a run block in .htaccess so I just delete it. This contribution alone has reduced my stress/worry level no end.
#2077
Posted 30 July 2012 - 12:07 AM
GwilliamP, on 29 July 2012 - 10:02 PM, said:
Now my problem - I am limited to 2 CRON jobs only. Splitting one domain as above means I want to run three CRON jobs. I am thinking of putting the commands into a script file and just running the script as a single CRON job.
I have 2 questions;
- Is this viable?
- Is there a way of adding a delay between the execution of each line?
As far as cron, you can't run a script of cron jobs from a control panel. At least, I've never seen a way. I seem to recall reading something about to that by using the shell to connect to crontab, but i don't know where I saw it. I'm sure, if it is possible, it is on the web somewhere. But you may want to ask your host first.
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#2078
Posted 31 July 2012 - 09:40 AM
Taking your advice above I decided to write a simple .php file for CRON to run. The file, in theory, runs each config in turn.
<?php
/*
$Id: sitemonitor-CRON.php,v 1.0 31-07-2112 by Paul
Purpose - Run runSitemonitor function twice, once for each config, with delay between
*/
require('includes/functions/sitemonitor_functions.php');
echo "Setting variables for config 0";
$instance = '0';
$logFile = 'sitemonitor_log' . '_' . $instance . '.txt';
$referenceFile = 'sitemonitor_reference' . '_' . $instance . '.txt';
echo "RUNNING config 0";
runSitemonitor($referenceFile, $logFile, $verbose);
echo "Sleep";
sleep(60);
echo "Setting variables for config 1";
$instance = '1';
$logFile = 'sitemonitor_log' . '_' . $instance . '.txt';
$referenceFile = 'sitemonitor_reference' . '_' . $instance . '.txt';
echo "RUNNING config 1";
runSitemonitor($referenceFile, $logFile, $verbose);
echo "FINISHED";
?>
The echo statements are purely for debugging.After uploading I entered the URL in the browser expecting to see the echo lines appear one at a time. The page blanked and eventually came back with
Quote
Am I missing something obvious?
As this is a bit off topic I do not mind if you do not wish to deal with this.
#2079
Posted 04 September 2012 - 05:47 PM
I'm having a problem :/
whenever I make ANY change to anything in the config or admin, Like change a value or click update, or click any button from the admin page, I get the following:
Quote
You do not have permission to access this document.
Then, I think it crashes the server, because I cant access any page on the site (admin or catalog).. I cant even access my server via FTP.
Any ideas?
#2080
Posted 04 September 2012 - 10:54 PM
GwilliamP, on 31 July 2012 - 09:40 AM, said:
Taking your advice above I decided to write a simple .php file for CRON to run. The file, in theory, runs each config in turn.
After uploading I entered the URL in the browser expecting to see the echo lines appear one at a time. The page blanked and eventually came back with
I checked the logs but nothing was updated. I did not get either of the expected emails.
Am I missing something obvious?
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking









