phantasm98
Sep 21 2003, 03:00 PM
When a user of mine uses the counter.cgi script that comes with Cpanel, it creates the .dat file, but it does it under a totally different user's UserID. This caused him to get an error it could not write to the dat file. Anyone got any ideas on why the script would create the file under the other UserID?????
phantasm98
Sep 21 2003, 03:54 PM
/var/cpanel/Counters
-rw-r--r-- 1 kdjjgrl kdjjgrl 2 Sep 21 16:46 accessories.dat
-rw-r--r-- 1 laymond laymond 3 Sep 21 16:08 laymond.dat
-rw-r--r-- 1 kdjjgrl kdjjgrl 2 Sep 21 16:38 santaria.dat
the kdjjgrl represents a user on my server. he is a client of mine and is not involved in Administration of my server at all. The second dat file I have chown'ed so my other client could use.
By default the countedit.cgi or count.cgi is somehoe creating the .dat files under one of my client's ID.
serverdummy
Sep 21 2003, 11:06 PM
Your customers may be logging into the control panel using your servername or the ip address. If the customer does not login from their own domain name, the ownership of the counters will be wrong.
phantasm98
Sep 22 2003, 07:06 AM
Well the reason they access over my IP is I accidentally deleted the aliases that pooint to the cpanel,whm, and webmail. I recreated them, but I didn't know how to put in a variable so it reads the respective domain name it comes from. Can anyone tell me how to fix this?
serverdummy
Sep 22 2003, 07:33 AM
Do you have the following in your httpd.conf file?
QUOTE
ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
Alias /java-sys/ /usr/local/cpanel/java-sys/
Alias /img-sys/ /usr/local/cpanel/img-sys/
Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/
Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/
ScriptAliasMatch /cpanel/(.*) /usr/local/cpanel/base/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/base/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/base/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/base/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/base/wredirect.cgi
ScriptAliasMatch /webmail/(.*) /usr/local/cpanel/base/wredirect.cgi
ScriptAliasMatch /kpanel/(.*) /usr/local/cpanel/base/redirect.cgi
ScriptAlias /controlpanel /usr/local/cpanel/base/redirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/base/sredirect.cgi
Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/
phantasm98
Sep 22 2003, 07:55 AM
I'm sure most of that is not in the conf file. I tried to get somone to post this information for me before and noone would, so I really appreciate you putting it in here. I will fix it when I get a chance (I know it's not there).
THANKS
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.