How To Write Cookie Data To Web Log File

Jun 21, 2007

I use a persistent and session cookie in order to help track return visitors, latent conversions and keyword tracking. My problem is that my hosting company, BlueHost, does not allow me to write the cookie data to my raw access log which would enable me to analyze this information.

Does anyone have any experience with using a script in order to get around this issue and write the cookie data to my log file....or as an alternative can people recommend a good hosting company which enables this functionality?

BlueHost has generally worked fine, so a work-around would be preferred, but if needed I may switch.

View 1 Replies


ADVERTISEMENT

Apache :: Write HTAccess File For A 301

Apr 15, 2013

I have learned some bits of regular expressions for simple scripting, writing a .htaccess file is, uh, syntaxically daunting.

THE CASE :

The URLs of my site used to be of the form [URL] ... . They are now of the form [URL]......

I am trying to perma-redirect (301) the old format (affiche_fiche.php) to the new format (fiche.php) using a .htaccess.

So far all I have achieved is a hatred of punctuation signs. What's the correct syntax to have a .htaccess that does the redirect ?

THE CONTEXT : The format change took place more than six months ago, but the Google Webmaster Tools still spits 450 problems a day with 404s on URLs using the old format. I had assumed that these would just fade away, but they don't. So I guess that 301'ing them is cleaner. Or would be, if I understood the syntax.

View 7 Replies View Related

Windows Hosting That Allows File/Image Write Through Script

Mar 21, 2009

I have a website built with asp .Net with MS SQL database. The website have some pages that uploads images and files in some folders.

I have tried GoDaddy shared Windows hosting. But they don't seem to allow file upload using a script.

Then I tried GoDaddy Virtual Dedicated. The tech guy told me MS SQL would be part of the hosting. Later I find he lied, there is no MS SQL as part of it.

I am trying to find an affordable hosting that has MS SQL and also allows file upload using script.

View 3 Replies View Related

MySQL Error: Can't Create/write To File '/dev/shm/MYxQT8lz'

May 19, 2008

one of my site shows this error

MySQL Error: Can't create/write to file '/dev/shm/MYxQT8lz'

I checked space on the server is still 25 GB free,

View 1 Replies View Related

Plesk 12.x / Linux :: PHP Message - Failed To Write Session Data

Jan 26, 2015

I just discovered there is seperate error log for php-fpm and since only 1 site is running fully nginx, the log is full with this error:

"NOTICE: PHP message: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0"

I've checked and the path is correct....

View 2 Replies View Related

Plesk 12.x / Linux :: Upgrade 10.4.4 - Postfix Queue File Write Error

Jan 29, 2015

I just upgraded our Plesk 10.4.4 to 12.0.18 (on Ubuntu 10.04, about to be upgraded to 12.04). Now I get the dreaded 'queue file write error' in postfix on message delivery.

It tries to open /usr/lib/plesk-9.0/postfix-queue (which is not there) in this block in master.cf:

Code:

plesk_virtual unix - n n - - pipe flags=DORhu user=popuser:popuser argv=/usr/lib/plesk-9.0/postfix-local -f ${sender} -d ${recipient} -p /var/qmail/mailnames
127.0.0.1:10025 inet n n n - - spawn user=mhandlers-user argv=/usr/lib/plesk-9.0/postfix-queue 127.0.0.1 10027 before-queue
127.0.0.1:10026 inet n - - - - smtpd -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_data_restrictions= -o receive_override_options=no_unknown_recipient_checks
127.0.0.1:10027 inet n n n - - spawn user=mhandlers-user argv=/usr/lib/plesk-9.0/postfix-queue 127.0.0.1 10026 before-remote
plesk_saslauthd unix y y y - 1 plesk_saslauthd status=5 listen=6 dbpath=/plesk/passwd.db

And on top of that, If disable all the milters/proxy and just try to deliver to plesk_virtual directly, the e-mail just disappears. Postfix thinks it was delivered, but it is not.

I also tried piping some text through /usr/lib/plesk-9.0/postfix-local with the same parameters postfix gives it, but also then nothing. No error, no exit code, no message in maildir.

There are a bunch of fixes around for the queue file write error, but nothing works because the nature of my problem is different. There is a KB article around for Plesk 9, which can hardly be useful.

I tried restoring postfix-queue from the backups, but if I try to use that, the mail.log eventually says:

Code:

Jan 30 01:20:00 ytechosting /usr/lib/plesk-9.0/psa-pc-remote[6621]: Message aborted.

I also used /usr/local/psa/admin/sbin/mchk to no avail: the only change it makes to my master.cf, is adding an empty line. And, I suspect it uninstalled my psa-courier, because it was gone at some point, and mchk was the only thing I did after knowing courier was still there.

How can the postfix config refer to that postfix-queue when it's not there? Is this even a valid master.cf file for Plesk 12?

View 13 Replies View Related

Can't Write To Data Socket. Socket Error = #10054.

Oct 2, 2007

"Can't write to data socket. Socket error = #10054. fix?"

search around a few websites couldn't find a fix.. just people chatting about there error

View 1 Replies View Related

Cookie Problem On My Server

Aug 25, 2007

I have a problem on obe of my servers. None of the forums and scirpts which have mysql databases dont accept usernames to login.

View 2 Replies View Related

Can Cookie's Be Set Manually To Bypass Security

Aug 24, 2007

I have put an Access database inside an access_db folder on Godaddy and written some .asp pages that query it. I am trying to make sure that I take necessary precautions against hackers reading or even writing to the database. Maybe someone can give some remarks about whether any of these concerns are realistic, and if so, why and what I could do about it?

1) Could someone somehow navigate directly to the database and read or write to it (the access_db folder seems to have no read/write permissions as set by default by Godaddy, but how secure is that?)

2) I permit entry through use of a a userid and password that are looked up in an mdb in the same folder (not listed in the html itself). If there’s a match, I store the userid as a session cookie. Then, to visit any other pages, each page first checks to see if the cookie is empty before proceeding. Is it possible for someone to set the cookie themselves and thus break through (can a cookie be set manually?) If so, would it help if I mandated that the cookie be set to something specific (right now it just has to be non-blank) or can they find out what the cookie should be set to as well?

View 3 Replies View Related

Apache :: Mod Balancer And Stickiness Without Cookie

Oct 15, 2014

I have a short question concerning Mod Balancer and Stickiness:

At the moment I am achieving stickiness with a cookie.

Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED

However, I am getting complaints by users which do not allow coockies in their browser settings that my page does not work properly.

Is there any way to achieve Stickiness with out cookies (e.g. add the information to the URL or something like that)?

View 1 Replies View Related

Apache :: Remove Cookie From Request Header

Dec 11, 2014

I am using 2.2.29 in Windows.Trying to remove one cookie in a request header before passing the request to the application, but having trouble. The cookie is in the middle of the request header.

View 1 Replies View Related

Apache :: Bad Flag Delimiter When Declaring Custom Cookie

Apr 24, 2014

I am trying to make sessions work across both my webservers which are load balanced.I have followed many tutorials that say to do this:

RewriteRule ^(.*)$ public_html/index.php - [co=JSESSIONID:balancer.view-a:.ea-hq.com]

However, when I put the extra code at the end of my redirect in .htaccess I get "Bad flag delimiters" and the internal server error page.I am using Apache 2.4 with PHP 5.4.11 on Windows.

View 1 Replies View Related

Collecting Data From A File On Another CPanel Account

Apr 12, 2007

I have a problem with a function on my cPanel server where one client is trying to collect informations from a file on another account on same server. And this suddenly stops to work. Once reboot of the server corrected the problem but it is back after just couple of days.

Here are details.
On account www.BLUEaccount.com there is a file index.html and within this file there is a code:

$fcontent= file_get_contents[url];

and the problem is that index.html file on BLUEaccount.com is not loading because it seems can not collect data from data.tmp file from REDaccount.com

But when we take this data.tmp file directly into directory of the index.html file on BLUEaccount, everything work OK.

View 1 Replies View Related

VPS Providers! What's Your Take On "write Back" & "write Through"

Oct 9, 2009

I recently worked on an issue involving a severe performance issue between "write back" and "write through" caching on the RAID/HD.

Long story short, we purchased 12 IBM x3550 M2s came with LSI SAS1068E/SR-BR10i (gimp redheaded stepchild of the MR series. No BBU, no onboard DIMM.) RAID controller and had very bad and inconsistent write throughput with it. Sometimes it writes out 300-400MB/s (dd test, I know... don't flame. I know dd is NOT a good test.), somethings as low as 30MB/s. The server is configured with 2.5" SATA 500GB on HW RAID-1.

From dmesg log it was default to "write through" on sda. I figured out via lsiutil, you can set the drives to "write back". Once we did that, the write performance is more consistent. NOTE, this enables write back on the SATA drives, NOT the controller itself.

I loop out lspci on all our VPS servers. Found out those with LSI (SAS 8344ELP) cards have sda set to "write through w/ FUA". Those are already all RAID-10s, and I have not heard a single complaint from any customer stating poor I/O performance.

I believe the 8344ELP do have a BBU, I can double-check with DC. The DC is on UPS as well. So that rules out the shortcomings of enabling write back caching.

I want to ask those of you using Xen (3.3 & 3.4). Do you guys have better I/O performance with "write back" or "write through" caching? I'm actually looking for real world results. Where you guys actually deployed production VPS server with clients on it.

View 0 Replies View Related

Apache :: Video File Download - Getting Different Figures When Interpret Data

Nov 12, 2013

Apache 2.2.22

I may be making something here too complicated but a friend downloaded a largish video file via my very basic web server.

Trying to interpret the data I am getting different figures, which one is correct or am I reading it wrongly.

carole [10/Nov/2013:17:55:21 +0000] "GET /cwgl/files/vidlink/videos/vid01.ts.mpg HTTP/1.1" 200 2879608
carole [10/Nov/2013:17:56:07 +0000] "GET /cwgl/files/vidlink/videos/vid01.ts.mpg HTTP/1.1" 200 1902255
carole [10/Nov/2013:18:11:41 +0000] "GET /cwgl/files/vidlink/videos/vid01.ts.mpg HTTP/1.1" 206 357
carole [10/Nov/2013:18:11:49 +0000] "GET /cwgl/files/vidlink/videos/vid01.ts.mpg HTTP/1.1" 206 5317289
carole [10/Nov/2013:18:16:38 +0000] "GET /cwgl/files/vidlink/videos/vid01.ts.mpg HTTP/1.1" 200 1834235652

200 totals = 1839017515

File properties on Ubuntu 2.0 GB (1,971,322,880 bytes)

server-status
1-0319210/3/3_ 82.6457740190482630.01880.001880.00 ip72-197-68-158.sd.sd.cox.net3lanesNULL

The other_vhost_access file says 1839017515
Ubuntu file properties says 2.0 GB (1,971,322,880 bytes)
Apache server-status says 1880.00

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved