logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Loging all PHP requests
Author
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Sun 21 Jul '13 16:06    Post subject: Loging all PHP requests Reply with quote

It appears there is a.php script on my server which a former friend of mine has uploaded and which reads out a joomla config file and then deletes the tables of its database.

I've already changed the password and username numerous times without success...

I've also checked who has access to the config file with windows auditing and it appears that the php process is accessing it just before the tables get deleted.

So I will have to find the .php file responsible for this.
Does anyone know a way of loging all .php accessed files in Apache or php?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 22 Jul '13 12:13    Post subject: Reply with quote

Use a prepend file in php.ini that logs the requested url Wink
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Mon 22 Jul '13 14:35    Post subject: Reply with quote

James Blond wrote:
Use a prepend file in php.ini that logs the requested url Wink

Could you explain how to do this exactly?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 22 Jul '13 16:24    Post subject: Reply with quote

With that I mean http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file and in the script log to a text file $_SERVER['REQUEST_URI'] like with file_put_contents with the append option.
Back to top


Reply to topic   Topic: Loging all PHP requests View previous topic :: View next topic
Post new topic   Forum Index -> Other Software