0
votes
1answer
40 views

PHP error logging with AWS and EC2 [closed]

I'm setting up my site to run on AWS EC2. In some presentation for AWS services I saw that there are ways to store your PHP error logs in AWS S3 and analyze it with specific tools. Can't find this ...
1
vote
1answer
161 views

How do I get cURL errors to go into the correct log file?

I have a website running using Apache 2.2.22, PHP 5.3.10, and cURL 7.2.00. The relevant portions of the apache config is below, and you will notice that errors are sent to www.example.com_error.log. ...
0
votes
0answers
42 views

Some PHP application errors logged in Apache ssl_engine.log and not in error_log

We have a Linux server running Apache and some PHP application errors are logged as errors in /var/log/apache2/ssl_engine.log, but they don't appear in /var/log/apache2/error_log. They are not SSL ...
1
vote
1answer
55 views

LAMP does not save any php logs

I have a brand new vps server with Ubuntu 14.04, i686, Apache 2.4.7, php 5.5.9 here's my virtual host: <VirtualHost *:80> ServerName example.com DocumentRoot "/home/drake/www/" ...
0
votes
1answer
320 views

phppath/php as URL has strange behaviour and seems to be an attack

Warning: The following requests might harm your server. I got some strange things in the apache log: "POST ...
0
votes
2answers
285 views

Log PHP-script that take long time to render

I would like to find out, which pages on my server are really slow. Is it possible to log all pages that took longer than 2 seconds to render in a file? /var/log/php/php-slow.log Or could the ...
0
votes
1answer
55 views

Add causing php-script to mysql-slow.log

If you enable the line log_slow_queries = /var/log/mysql/mysql-slow.log in /etc/my.cnf or /etc/mysql/my.cnf then that will log all queries, that take longer than the setting in long_query_time. ...
0
votes
0answers
230 views

How can I enable error logging and where are the errors logs for IIS 8?

I would like to capture php errors and http errors. I've enabled error logging in PHP, but I do not see where in IIS 8 I can enable errors. Is this possible to do? Thank you for your guidance.
0
votes
1answer
36 views

aegir nginx logging

I'm a developer rather than a sysadmin by trade. I'm working on a drupal site that's been installed with aegir which is clearly dying part-way through loading several drupal pages. I reckon there's a ...
1
vote
1answer
989 views

PHP Script To Monitor Apache Access Log Files using TAIL [closed]

I wrote a PHP script to live monitor the apache access_log file. I am using the following commands; $path_to_tail = '/usr/bin/tail'; $path_to_access_file = '/var/log/httpd/access_log'; ...
3
votes
1answer
94 views

In Apache, if 403s aren't appearing in error.log, how can I get them to appear?

Apache2 under Ubuntu 12.04 I get a 403 error only sometimes when a URL is passed to a PHP script in WordPress via the PressThis button. e.g. ...
0
votes
1answer
475 views

Apache - How to log the file name and size of file uploads

I want to keep some statics about the files uploaded to my server, including the file name, size and response time. I use PHP to handle the uploads in the server side (client-side is a POST form) ...
2
votes
1answer
402 views

Sending output from php script called from bash script to syslog

Sending output from php script called from bash script to syslog Im trying to create a bash script (to be called by a cron job) which calls a php file (which I have not made). Calling the php file is ...
3
votes
1answer
2k views

Confirm that mysqli extension is not installed

Recently I discovered that mysqli extension is not installed in my server Centos version 2.6. I confirm it because I change the driver of db connection from mysqli to mysql and now works fine. So, is ...
2
votes
1answer
453 views

php5.4 + freebsd8.3+nginx can't get errors

I have a confusing behaviour. I can't get any error into log file or screen. I made a file index.php with content like this: "<?php a();".Normally, I will get message like this: "Call to ...
1
vote
1answer
67 views

Logging PHP (fcgid) requests separate from static

With a server running Apache and PHP via mod_fcgid, I'd like to log all requests handled by PHP into a separate file so that I can get a better idea of which requests are going through PHP versus ...
1
vote
1answer
176 views

scribe log analysis

I have decided to use scribe to log all the error and request details in my site for analysis. How can I use the scribe log data to analyze the data. Is there any tool for this or scribe server ...
1
vote
6answers
2k views

Free Web Based Server Log Viewer/Monitor [closed]

I'm not much of a server guy, but do need to monitor logs for my web server. Preferabbly, PHP, Apache and MySQL error logs. Could you guys offer any advice for free web-based solutions for monitoring ...
0
votes
3answers
531 views

Make Apache send a copy of requests to a script

Let's say we have a huge list of clients (~30) all running on the same server under different users (and other security settings). I need to write a "spy/logging" script which is able to handle all ...
-4
votes
2answers
447 views

Web server crashes after RAM memory gets exhausted at 99%?

I'm running an ecommerce website and it's been running fine for a while now, but lately it keeps on crashing on me. It seems like the RAM gets exhausted on the server and then the server stops ...
0
votes
1answer
208 views

How to open/view log4php logs by Apache-Chainsaw logviewer?

Is there any way to open log4php logs by Chainsaw logviewer? If yes, can you explain it to me?
4
votes
3answers
5k views

Apache2: 400 Bad Request with Rewrite Rules, nothing in error log?

This is driving me nuts. Background: I'm using the built-in Apache2 & PHP that comes with Mac OS X 10.6 I have a vhost setup as follows: NameVirtualHost *:81 <Directory ...
2
votes
1answer
360 views

Managing logs for several dynamic instance on Amazon

I have this problem or rather an itch that I could really use help with. I use autoscale and several instances on Amazon. Problem is I have all these logs PHP, Apache, system but also my web app ...
0
votes
1answer
994 views

Why is this apache php piped log script not working properly?

i have a piped logging program like this: #!/usr/bin/php <?php $fd = fopen("php://stdin", "r"); while(true) { $l = fread($fd,8192); $l = trim($l); if($l =="") continue; ...
0
votes
1answer
76 views

Messages in PHP log missing normal information

I have PHP configured to use a log file directly (i.e. not using syslog). I'm noticing that I occasionally get very strange messages that lack the normal PHP logging information. Normally a PHP log ...
2
votes
1answer
766 views

PHP 5.3 Not Logging

I have set error_log = "/var/log/apache2/php_errors.log" and made sure errors were being logged. I have set the file to be owned by the www-data owner and group and even set the permissions to 777. I ...
1
vote
3answers
315 views

How to log the actual output in apache?

I am doing LAMP development for a mobile platform. However, the client browser does not allow me to view the source code of visited pages. I consider the source code to be of huge importance for ...
0
votes
1answer
293 views

Exclude pings from apache error logs (ran from PHP exec)

Now, for a number of reasons I need to ping several hosts on a regular basis for a dashboard display. I use this PHP function to do it: function PingHost($strIpAddr) { ...
3
votes
1answer
3k views

How to stop mod_deflate from logging to my php error log?

I have an environment setup on a system I am not in control of and mod_deflate is entering about 3 lines in the error log for every request. They are only the debug level but for some reason the ...
0
votes
1answer
70 views

distributed logging text files

I have generated a couple of logs across different machines. Each log representing an action performed by user. The log is a text file generated in php by appending using file_put_contents . A line in ...
5
votes
11answers
13k views

How to watch logs in real time via Terminal?

This is a basic question - in the movie "The Social Network" there are several scenes when the young Facebook staff is watching the PHP/Apache server logs on in their TERMINAL in real time. I'm ...
0
votes
3answers
562 views

What Happens When Apache Times Out?

I am a PHP developer and I just spent a good amount of time trying to track down a very strange problem the users of our web application were reporting. It turns out due to a slow API call over the ...
2
votes
1answer
149 views

What are some reasons why PHP would not log errors?

I'm running Apache2 on Ubuntu 10.04 LTS. I've configured /etc/php5/apache2/php.ini with the following: error_reporting = E_ALL & ~E_DEPRECATED display_errors = Off log_errors = On error_log = ...
0
votes
3answers
1k views

Finding outbound connections from Apache/PHP

A client website was recently compromised, and we're analyzing the damage and exposure from the attack. We've found a script that is "calling home" to a URL we can easily find in a log, but is this ...
2
votes
1answer
198 views

Logging all commands run by PHP

Somehow, one of our sites continues to be compromised. Is there a way that I can log every command that PHP runs, either via system(), exec(), etc?
4
votes
3answers
2k views

Centralizing PHP error logging with syslog

I have a PHP application that is running on 20 web servers. It's silly to check every servers' PHP error log. I'm planning to centralize the error logging on one (not a web server, a server just used ...
2
votes
1answer
370 views

Apache to log only requests generated by PHP

I'm not sure if this is possible, and haven't had any success yet. I'm trying to log page generation times at the web server level and currently have this working for all requests with mod_log_config ...
1
vote
3answers
116 views

Graphing/Reporting PHP Errors

Whats the best way to get reports on php errors? To give a bit of background, have some legacy PHP applications/websites that generate various errors/warnings etc, currently going to apache log. ...
3
votes
1answer
273 views

What is the URL_CHANGED Event on IIS7 Request Tracing Log?

I just enabled Failed Request Tracing for a site and I get a URL_CHANGED event as the third item on the log. 1. GENERAL_REQUEST_START SiteId="1", AppPoolId="DefaultAppPool", ConnId="1610613013", ...