P.Z. Low Cost CPanel Web Hosting  

Go Back   P.Z. Low Cost CPanel Web Hosting > Page-Zone Web Hosting Main Forum > General FAQ > General Questions and Comments

General Questions and Comments Post your question or grace us with your knowledge. Posting limited to registered members.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Viewing web stats without a login?
Old
  (#1 (permalink))
plato
Registered User
plato is on a distinguished road
 
Status: Offline
Posts: 23
Join Date: May 2005
Rep Power: 24
Angry Viewing web stats without a login? - 01-20-2007, 08:50 PM

I am a reseller and the main domain for the account is a site that I act as webmaster to a client. On the old server I was able to give the client the url of the stats page and he could look at them whenever he liked. Now the url takes him to the cpanel login screen. I can't give him access to this screen ( as it not only contains details of his site but others I work on and it would not be advisable for him to be playing around in there anyway). Is it possible for him to have access to the stats info without compromising the sites/resellers infrastructure.
Sending the usage page by email was also unsuccessful as it sent it in .txt format and not as .html . I'm hoping there is an easier solution than me downloading the page in txt format converting to html and emailing to him at the end of every month. Any ideas?
   
Reply With Quote
Old
  (#2 (permalink))
cmyksteve
Sure honey just not blue
cmyksteve has a spectacular aura aboutcmyksteve has a spectacular aura about
 
cmyksteve's Avatar
 
Status: Offline
Posts: 349
Join Date: Feb 2004
Location: Ohio
Rep Power: 48
01-21-2007, 04:37 AM

Hi Plato,

Here's a link to an old forum thread- Give access to awstats
Maybe Ed will have an update on this.

I use StatCounter.com for some sites. They have free accounts with Admin and a couple levels of client access.


Steve

* * * * * * * * * * * * * * * * * * * * * * *
Forum Announcements | Sprint Looking Glass
   
Reply With Quote
stats viewing...
Old
  (#3 (permalink))
plato
Registered User
plato is on a distinguished road
 
Status: Offline
Posts: 23
Join Date: May 2005
Rep Power: 24
stats viewing... - 01-21-2007, 08:32 AM

Thanks I'll give it a go....
   
Reply With Quote
Old
  (#4 (permalink))
edwurster
green side up, please!
edwurster will become famous soon enoughedwurster will become famous soon enough
 
edwurster's Avatar
 
Status: Offline
Posts: 660
Join Date: May 2003
Location: Voorhees, NJ
Rep Power: 69
01-21-2007, 03:26 PM

Quote:
Originally Posted by cmyksteve View Post
Hi Plato,

Here's a link to an old forum thread- Give access to awstats
Maybe Ed will have an update on this.
I just checked, and it's still working. The files are updating, and still accumulating for webalizer. Also means you have a backup of the reports in another directory, so you have to make sure you leave disk space for this growth.


Ed Wurster - sacts92 (old root10)

...CPANEL Docs
......P-Z Server Status
  Send a message via AIM to edwurster  
Reply With Quote
Old
  (#5 (permalink))
edwurster
green side up, please!
edwurster will become famous soon enoughedwurster will become famous soon enough
 
edwurster's Avatar
 
Status: Offline
Posts: 660
Join Date: May 2003
Location: Voorhees, NJ
Rep Power: 69
01-21-2007, 03:40 PM

Quote:
Originally Posted by plato View Post
I am a reseller and the main domain for the account is a site that I act as webmaster to a client. On the old server I was able to give the client the url of the stats page and he could look at them whenever he liked. Now the url takes him to the cpanel login screen. I can't give him access to this screen ( as it not only contains details of his site but others I work on and it would not be advisable for him to be playing around in there anyway). Is it possible for him to have access to the stats info without compromising the sites/resellers infrastructure.
Sending the usage page by email was also unsuccessful as it sent it in .txt format and not as .html . I'm hoping there is an easier solution than me downloading the page in txt format converting to html and emailing to him at the end of every month. Any ideas?
Awstats doesn't save the graphics and html as does webalizer. It saves a text file with the stats, and that is rendered in html when needed.

You can save the awstats page and associated graphics - i.e. in Firefox you'd save as web page complete, not text. This suggests that there could be a way to run awstats, and then save the rendered html. But that is not something I know how to do.


Ed Wurster - sacts92 (old root10)

...CPANEL Docs
......P-Z Server Status
  Send a message via AIM to edwurster  
Reply With Quote
Old
  (#6 (permalink))
plato
Registered User
plato is on a distinguished road
 
Status: Offline
Posts: 23
Join Date: May 2005
Rep Power: 24
01-22-2007, 04:37 PM

I followed cmyksteve's prior forum thread but it didn't work?
1. Password protected the folder OK - but why do I have to complete the login details twice before it displays?
2. I presumed the /home/account/public_html/cgi-bin/update.sh has the word account replaced with my domain (USERNAME)
3. Do I need to adjust the permissions for this script?
Any advice and I'll give it another go.

thanks
   
Reply With Quote
Old
  (#7 (permalink))
edwurster
green side up, please!
edwurster will become famous soon enoughedwurster will become famous soon enough
 
edwurster's Avatar
 
Status: Offline
Posts: 660
Join Date: May 2003
Location: Voorhees, NJ
Rep Power: 69
01-22-2007, 06:29 PM

Quote:
Originally Posted by plato View Post
I followed cmyksteve's prior forum thread but it didn't work?
1. Password protected the folder OK - but why do I have to complete the login details twice before it displays?
2. I presumed the /home/account/public_html/cgi-bin/update.sh has the word account replaced with my domain (USERNAME)
3. Do I need to adjust the permissions for this script?
Any advice and I'll give it another go.
Perm's on cgi-bin folder and the .sh file are 755.

Here are the contents of the .sh file:

#!/bin/bash
cp tmp/webalizer/*.html tmp/webalizer/*.png tmp/webalizer/webalizer.* public_html/webstats

Here is what is in the cron:

/home/username/public_html/cgi-bin/webstats.sh

I replaced the account login name with "username." That is your main account for the domain.

The time entries are 0 * * * *

The webstats folder is pass-protected through cpanel, and I used a different name/pass than the main account.

Hope that works.


Ed Wurster - sacts92 (old root10)

...CPANEL Docs
......P-Z Server Status
  Send a message via AIM to edwurster  
Reply With Quote
Old
  (#8 (permalink))
cmyksteve
Sure honey just not blue
cmyksteve has a spectacular aura aboutcmyksteve has a spectacular aura about
 
cmyksteve's Avatar
 
Status: Offline
Posts: 349
Join Date: Feb 2004
Location: Ohio
Rep Power: 48
01-22-2007, 07:42 PM

Quote:
Originally Posted by plato View Post
1. Password protected the folder OK - but why do I have to complete the login details twice before it displays?
I've added cPanel password protection to several of my sites Admin directories. On a couple of these I have to enter the username and password twice. I don't know why but some of the directories require that confirmation.


Steve

* * * * * * * * * * * * * * * * * * * * * * *
Forum Announcements | Sprint Looking Glass
   
Reply With Quote
Old
  (#9 (permalink))
plato
Registered User
plato is on a distinguished road
 
Status: Offline
Posts: 23
Join Date: May 2005
Rep Power: 24
01-23-2007, 04:49 PM

Still not having any luck: Here is the exact lines in the update.sh file:
#!/bin/bash
cp tmp/webalizer/*.html tmp/webalizer/*.png tmp/webalizer/webalizer.*public_html/stats

The permissions were 644 so I changed them to 755 (same as the cgi-bin). The next day the cron job hasn't worked and the permissions have reset themselves to 644? Try it again tonight. Any ideas?
   
Reply With Quote
Old
  (#10 (permalink))
edwurster
green side up, please!
edwurster will become famous soon enoughedwurster will become famous soon enough
 
edwurster's Avatar
 
Status: Offline
Posts: 660
Join Date: May 2003
Location: Voorhees, NJ
Rep Power: 69
01-23-2007, 06:12 PM

Quote:
Originally Posted by plato View Post
Still not having any luck: Here is the exact lines in the update.sh file:
#!/bin/bash
cp tmp/webalizer/*.html tmp/webalizer/*.png tmp/webalizer/webalizer.*public_html/stats

The permissions were 644 so I changed them to 755 (same as the cgi-bin). The next day the cron job hasn't worked and the permissions have reset themselves to 644? Try it again tonight. Any ideas?
Permissions have to be 755 I think. How do you change the permissions? I always do this with my ftp - filezilla.

If you have shell, you can run the script from command line to test. And you can set permissions there too.

Make sure the .sh is a unix text file, not ms-dos or other.


Ed Wurster - sacts92 (old root10)

...CPANEL Docs
......P-Z Server Status
  Send a message via AIM to edwurster  
Reply With Quote
Running the command on shell...
Old
  (#11 (permalink))
plato
Registered User
plato is on a distinguished road
 
Status: Offline
Posts: 23
Join Date: May 2005
Rep Power: 24
Talking Running the command on shell... - 01-24-2007, 03:26 AM

What is the command to run the script on shell access? Thanks
   
Reply With Quote
Old
  (#12 (permalink))
plato
Registered User
plato is on a distinguished road
 
Status: Offline
Posts: 23
Join Date: May 2005
Rep Power: 24
01-24-2007, 03:39 AM

I get this email response when trying to run the cron job:
/bin/sh: /home/corrobex/public_html/cgi-bin/update.sh: /bin/bash
: bad interpreter: No such file or directory

Any clues?
   
Reply With Quote
Old
  (#13 (permalink))
midwest
blink and it's over
midwest will become famous soon enough
 
midwest's Avatar
 
Status: Offline
Posts: 802
Join Date: Oct 2002
Location: Big Sky, MT
Rep Power: 78
01-24-2007, 01:01 PM

To run a script from the command line you do:
./script.sh
so you would do
./cgi-bin/update.sh
or
cd cgi-bin
./update.sh

why wait over night to see if the cron job runs? Just change it so it runs every two minutes. Once its working change it back.

.


Ronnie Gauthier
www.instaguide.com

======================
for official page-zone support please visit
www.page-zone.com/support.shtml
   
Reply With Quote
Old
  (#14 (permalink))
plato
Registered User
plato is on a distinguished road
 
Status: Offline
Posts: 23
Join Date: May 2005
Rep Power: 24