top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between error_log() vs access_log() ?

+2 votes

I know what is error_log() in the apache server.But i couldn't able to find out what is use for access_log().

It will located in /var/log/apache

Please anyone tell me the actual use for access_log

posted Aug 14, 2014 by Ujjwal Mehra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
Best answer

Actual use of access_log()

Apache server (like other web-server) records all incoming request and all those processed request are kept into a file.The format of the access log is highly configurable. The location and content of the access log are controlled by the CustomLog directive

Debian / Ubuntu Linux Apache access log file location - /var/log/apache2/access.log

Server Log( WIKI) => is a log file automatically created and maintained by a server of activity performed by it. A typical example is a web server log which maintains a history of page requests

answer Aug 17, 2014 by anonymous
Similar Questions
+1 vote

I am working on a Ubuntu 10.04 server, on which I installed PHP 5.3, Apache 2 2.2.9. I followed the below steps to do the installation :

  1. I installed apache2 using SUDO APT-GET INSTALL APACHE2

  2. I also installed libapache2 and php using the below commands
    sudo apt-get install php5 libapache2-mod-php5
    sudo apt-get install php5-core

  3. I did redirection to port by configuring the DEFAULT file in /ETC/APACHE2/SITES-AVAILABLE. Redirection happened successfully.

  4. PHP5-curl was installed using

  5. Rewrite mod was enabled in apache2 using
    SUDO A2ENMOD REWRITE and apache2 was restarted.

Now, after following this if I try to access the URL, I get the following message -


But, the same URL is accessed from another system with the same configuration , it works fine.

+3 votes

I want to redirect a url to an application on same apache server. My development environment is Ubuntu. I enables the mod_proxy. But my url isnt redirecting to the desired application. Following is the code I put inside the /etc/apache2/sites-available/default file. I put this bottom of the file but before the "VirtualHost" tag.

ProxyRequests On 
ProxyVia On  
Order deny,allow 
Deny from all 
Allow from localhost  ProxyPass /application_directory/ http://localhost/application/directory ProxyPassReverse /application_directory/ http://localhost/application/directory