Changing Access log file in Apache
Access log empty? Maybe the default access log file is changed??
Or, incase you want to change the default access log to somewhere else here is how you do it
To see the default Access log assuming you are on debian
1. Got to
2. Open file apache2.conf
3. Search for
CustomLog and see the location of the file. It will be in that location apache would put access log.
To change or create a new Access log
1. Go to
2. Open file default, here you can open respective default files that you have
3. On your virtual hosts, add
CustomeLog and provide appropriate file that you want to add.. like
CustomLog /var/log/apache2/access.log combined
This will change the default log file location in the web server
See Why apache is listing the directory even when I have index file
Configure LAMP on amazon EC2 with this guide
How to fix when apache is not reading php.ini
Whenever you got this error check the following:
1. Make sure the $this-> is used inside the object and referring to the class’s and inherited non-static members.
2. Make sure the called members of the object are properly addressed as static or member/function variables
Do you know the different different post types?
Here is an example for the second one.
Assume you have the following object
return "Example Text";
static function getStaticExampleText()
return "Static Example Text";
While accessing, if the code tries something like this one,
$example = new Example();
Example::getExampleText(); //Trying to access non-static as static
Then you would have the error